Skip to content

Commit

Permalink
Use ErrorReported
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Mar 28, 2019
1 parent 6c8e3a5 commit 0778847
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_mir/const_eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use rustc::ty::{self, TyCtxt, query::TyCtxtAt};
use rustc::ty::layout::{self, LayoutOf, VariantIdx};
use rustc::ty::subst::Subst;
use rustc::traits::Reveal;
use rustc::util::common::ErrorReported;
use rustc_data_structures::fx::FxHashMap;

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

0 comments on commit 0778847

Please sign in to comment.