Skip to content

Commit 0778847

Browse files
committed
Use ErrorReported
1 parent 6c8e3a5 commit 0778847

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_mir/const_eval.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use rustc::ty::{self, TyCtxt, query::TyCtxtAt};
1414
use rustc::ty::layout::{self, LayoutOf, VariantIdx};
1515
use rustc::ty::subst::Subst;
1616
use rustc::traits::Reveal;
17+
use rustc::util::common::ErrorReported;
1718
use rustc_data_structures::fx::FxHashMap;
1819

1920
use syntax::ast::Mutability;
@@ -654,7 +655,7 @@ pub fn const_eval_raw_provider<'a, 'tcx>(
654655
v));
655656
v
656657
},
657-
Err(_) => ErrorHandled::Reported,
658+
Err(ErrorReported) => ErrorHandled::Reported,
658659
}
659660
} else if def_id.is_local() {
660661
// constant defined in this crate, we can figure out a lint level!

0 commit comments

Comments
 (0)