diff options
| author | Ralf Jung <post@ralfj.de> | 2024-11-09 11:13:44 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-11-09 11:13:44 +0100 |
| commit | 30a2ae6f05ff9e0abbaa9cd308bbceb6ddeede32 (patch) | |
| tree | c2fb10ab7625c5c43d3d9f455760657dc1360620 /compiler/rustc_const_eval/src/const_eval | |
| parent | 62bb2ac03e775110d2c889f5d4a01a71e7334ff0 (diff) | |
| download | rust-30a2ae6f05ff9e0abbaa9cd308bbceb6ddeede32.tar.gz rust-30a2ae6f05ff9e0abbaa9cd308bbceb6ddeede32.zip | |
interpret: get_alloc_info: also return mutability
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/const_eval/eval_queries.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs index 81b9d73b952..4055e3f0d50 100644 --- a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs +++ b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs @@ -472,7 +472,7 @@ fn report_validation_error<'tcx>( backtrace.print_backtrace(); let bytes = ecx.print_alloc_bytes_for_diagnostics(alloc_id); - let (size, align, _) = ecx.get_alloc_info(alloc_id); + let (size, align, ..) = ecx.get_alloc_info(alloc_id); let raw_bytes = errors::RawBytesNote { size: size.bytes(), align: align.bytes(), bytes }; crate::const_eval::report( |
