Skip to content

Commit 6ed8bcc

Browse files
authored
Unrolled build for rust-lang#124024
Rollup merge of rust-lang#124024 - RalfJung:interpret-comment, r=oli-obk interpret: remove outdated comment In rust-lang#107756, allocation became generally fallible, so the "only panic if there is provenance" no longer applies. r? ``@oli-obk``
2 parents 1dea922 + 5b8b9cf commit 6ed8bcc

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

compiler/rustc_const_eval/src/interpret/machine.rs

-2
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,6 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
347347
/// allocation (because a copy had to be done to adjust things), machine memory will
348348
/// cache the result. (This relies on `AllocMap::get_or` being able to add the
349349
/// owned allocation to the map even when the map is shared.)
350-
///
351-
/// This must only fail if `alloc` contains provenance.
352350
fn adjust_allocation<'b>(
353351
ecx: &InterpCx<'mir, 'tcx, Self>,
354352
id: AllocId,

compiler/rustc_const_eval/src/interpret/memory.rs

-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
227227
self.allocate_raw_ptr(alloc, kind)
228228
}
229229

230-
/// This can fail only if `alloc` contains provenance.
231230
pub fn allocate_raw_ptr(
232231
&mut self,
233232
alloc: Allocation,

0 commit comments

Comments
 (0)