cleanup leftovers of const_err lint

This commit is contained in:
Ralf Jung
2023-09-12 13:41:42 +02:00
parent deb708af12
commit fd91dfb494
5 changed files with 16 additions and 31 deletions

View File

@@ -372,7 +372,7 @@ pub fn eval_to_allocation_raw_provider<'tcx>(
};
let alloc_id = mplace.ptr().provenance.unwrap();
// Validation failed, report an error. This is always a hard error.
// Validation failed, report an error.
if let Err(error) = validation {
let (error, backtrace) = error.into_parts();
backtrace.print_backtrace();