summaryrefslogtreecommitdiffstats
path: root/src/librustc_mir/const_eval/eval_queries.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_mir/const_eval/eval_queries.rs')
-rw-r--r--src/librustc_mir/const_eval/eval_queries.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc_mir/const_eval/eval_queries.rs b/src/librustc_mir/const_eval/eval_queries.rs
index 2e8e4da..4fdabed 100644
--- a/src/librustc_mir/const_eval/eval_queries.rs
+++ b/src/librustc_mir/const_eval/eval_queries.rs
@@ -288,7 +288,10 @@ pub fn const_eval_raw_provider<'tcx>(
288 let cid = key.value; 288 let cid = key.value;
289 let def_id = cid.instance.def.def_id(); 289 let def_id = cid.instance.def.def_id();
290 290
291 if def_id.is_local() && tcx.typeck_tables_of(def_id).tainted_by_errors { 291 if def_id.is_local()
292 && tcx.has_typeck_tables(def_id)
293 && tcx.typeck_tables_of(def_id).tainted_by_errors
294 {
292 return Err(ErrorHandled::Reported); 295 return Err(ErrorHandled::Reported);
293 } 296 }
294 297