1
Fork 0

review comments

This commit is contained in:
Vishnunarayan K I 2020-11-10 14:59:44 +05:30
parent 5029a19313
commit 8119c4beee
4 changed files with 11 additions and 11 deletions

View file

@ -282,9 +282,8 @@ pub fn eval_to_allocation_raw_provider<'tcx>(
);
return Err(ErrorHandled::Reported(ErrorReported {}));
}
let qualif = tcx.mir_const_qualif_opt_const_arg(def);
if qualif.error_occured {
return Err(ErrorHandled::Reported(ErrorReported {}));
if let Some(error_reported) = tcx.mir_const_qualif_opt_const_arg(def).error_occured {
return Err(ErrorHandled::Reported(error_reported));
}
}