diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-01-15 11:33:49 +0100 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-01-15 11:33:49 +0100 |
| commit | 7bd01ed3c46183253dd0c28d9efa8678c426599e (patch) | |
| tree | 48e3635742b5941bc556ca75eed5f33d83119c44 | |
| parent | a81784a09a084e63add1e4618dd82e8a7035c4f5 (diff) | |
| download | rust-7bd01ed3c46183253dd0c28d9efa8678c426599e.tar.gz rust-7bd01ed3c46183253dd0c28d9efa8678c426599e.zip | |
Typo
| -rw-r--r-- | src/librustc_mir/interpret/intern.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/intern.rs b/src/librustc_mir/interpret/intern.rs index 68ac945ca89..cb028d286fa 100644 --- a/src/librustc_mir/interpret/intern.rs +++ b/src/librustc_mir/interpret/intern.rs @@ -356,7 +356,7 @@ pub fn intern_const_alloc_recursive<M: CompileTimeMachine<'mir, 'tcx>>( // It is UB to mutate through a raw pointer obtained via an immutable reference. // Since all references and pointers inside a promoted must by their very definition // be created from an immutable reference (and promotion also excludes interior - // mutability), mutating though them would be UB. + // mutability), mutating through them would be UB. // There's no way we can check whether the user is using raw pointers correctly, // so all we can do is mark this as immutable here. InternKind::Promoted => { |
