@@ -28,8 +28,9 @@ use rustc::dep_graph::DepNode;
28
28
use rustc:: ty:: cast:: { CastKind } ;
29
29
use rustc_const_eval:: { ConstEvalErr , lookup_const_fn_by_id, compare_lit_exprs} ;
30
30
use rustc_const_eval:: { eval_const_expr_partial, lookup_const_by_id} ;
31
- use rustc_const_eval:: ErrKind :: { ErroneousReferencedConstant , MiscBinaryOp } ;
32
31
use rustc_const_eval:: ErrKind :: { IndexOpFeatureGated , UnimplementedConstVal , MiscCatchAll , Math } ;
32
+ use rustc_const_eval:: ErrKind :: { ErroneousReferencedConstant , MiscBinaryOp , NonConstPath } ;
33
+ use rustc_const_eval:: ErrKind :: UnresolvedPath ;
33
34
use rustc_const_eval:: EvalHint :: ExprTypeChecked ;
34
35
use rustc_const_math:: { ConstMathErr , Op } ;
35
36
use rustc:: hir:: def:: Def ;
@@ -490,6 +491,8 @@ impl<'a, 'tcx, 'v> Visitor<'v> for CheckCrateVisitor<'a, 'tcx> {
490
491
Err ( ConstEvalErr { kind : UnimplementedConstVal ( _) , ..} ) |
491
492
Err ( ConstEvalErr { kind : MiscCatchAll , ..} ) |
492
493
Err ( ConstEvalErr { kind : MiscBinaryOp , ..} ) |
494
+ Err ( ConstEvalErr { kind : NonConstPath , ..} ) |
495
+ Err ( ConstEvalErr { kind : UnresolvedPath , ..} ) |
493
496
Err ( ConstEvalErr { kind : ErroneousReferencedConstant ( _) , ..} ) |
494
497
Err ( ConstEvalErr { kind : Math ( ConstMathErr :: Overflow ( Op :: Shr ) ) , ..} ) |
495
498
Err ( ConstEvalErr { kind : Math ( ConstMathErr :: Overflow ( Op :: Shl ) ) , ..} ) |
0 commit comments