We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a81784a commit 7bd01edCopy full SHA for 7bd01ed
src/librustc_mir/interpret/intern.rs
@@ -356,7 +356,7 @@ pub fn intern_const_alloc_recursive<M: CompileTimeMachine<'mir, 'tcx>>(
356
// It is UB to mutate through a raw pointer obtained via an immutable reference.
357
// Since all references and pointers inside a promoted must by their very definition
358
// be created from an immutable reference (and promotion also excludes interior
359
- // mutability), mutating though them would be UB.
+ // mutability), mutating through them would be UB.
360
// There's no way we can check whether the user is using raw pointers correctly,
361
// so all we can do is mark this as immutable here.
362
InternKind::Promoted => {
0 commit comments