Skip to content

Commit d361dae

Browse files
committed
---
yaml --- r: 276015 b: refs/heads/auto c: 9d7ed99 h: refs/heads/master i: 276013: a637063 276011: 10a2f62 276007: 738fdd0 275999: eef12d8
1 parent 21bfa6a commit d361dae

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 89d1046503b2721e7a372f24eb7ef5998d9dd176
11+
refs/heads/auto: 9d7ed99c06bbce263c4de56e269b62b135c5a6e1
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/librustc_passes/consts.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ use rustc::dep_graph::DepNode;
2828
use rustc::ty::cast::{CastKind};
2929
use rustc_const_eval::{ConstEvalErr, lookup_const_fn_by_id, compare_lit_exprs};
3030
use rustc_const_eval::{eval_const_expr_partial, lookup_const_by_id};
31-
use rustc_const_eval::ErrKind::{ErroneousReferencedConstant, MiscBinaryOp};
3231
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;
3334
use rustc_const_eval::EvalHint::ExprTypeChecked;
3435
use rustc_const_math::{ConstMathErr, Op};
3536
use rustc::hir::def::Def;
@@ -490,6 +491,8 @@ impl<'a, 'tcx, 'v> Visitor<'v> for CheckCrateVisitor<'a, 'tcx> {
490491
Err(ConstEvalErr { kind: UnimplementedConstVal(_), ..}) |
491492
Err(ConstEvalErr { kind: MiscCatchAll, ..}) |
492493
Err(ConstEvalErr { kind: MiscBinaryOp, ..}) |
494+
Err(ConstEvalErr { kind: NonConstPath, ..}) |
495+
Err(ConstEvalErr { kind: UnresolvedPath, ..}) |
493496
Err(ConstEvalErr { kind: ErroneousReferencedConstant(_), ..}) |
494497
Err(ConstEvalErr { kind: Math(ConstMathErr::Overflow(Op::Shr)), ..}) |
495498
Err(ConstEvalErr { kind: Math(ConstMathErr::Overflow(Op::Shl)), ..}) |

0 commit comments

Comments
 (0)