Skip to content

Commit 5bb06b3

Browse files
committed
code review fixes
1 parent 9f8b099 commit 5bb06b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/const_eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ pub fn const_eval_raw_provider<'tcx>(
697697
// promoting runtime code is only allowed to error if it references broken constants
698698
// any other kind of error will be reported to the user as a deny-by-default lint
699699
_ => if let Some(p) = cid.promoted {
700-
use crate::interpret::InvalidProgramInfo::*;
700+
use crate::interpret::InvalidProgramInfo::ReferencedConstant;
701701
let span = tcx.promoted_mir(def_id)[p].span;
702702
if let InterpError::InvalidProgram(ReferencedConstant) = err.error {
703703
err.report_as_error(

0 commit comments

Comments
 (0)