Skip to content

Commit 7bd01ed

Browse files
committed
Typo
1 parent a81784a commit 7bd01ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/intern.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ pub fn intern_const_alloc_recursive<M: CompileTimeMachine<'mir, 'tcx>>(
356356
// It is UB to mutate through a raw pointer obtained via an immutable reference.
357357
// Since all references and pointers inside a promoted must by their very definition
358358
// be created from an immutable reference (and promotion also excludes interior
359-
// mutability), mutating though them would be UB.
359+
// mutability), mutating through them would be UB.
360360
// There's no way we can check whether the user is using raw pointers correctly,
361361
// so all we can do is mark this as immutable here.
362362
InternKind::Promoted => {

0 commit comments

Comments
 (0)