Skip to content

Commit 6f49f85

Browse files
committed
Oh, right, tidy got even more persnickety
1 parent 3fbdbcc commit 6f49f85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_const_eval/src/transform/validate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
623623
if let MirPhase::Runtime(..) = self.mir_phase {
624624
// `mem::transmute` currently requires types concrete enough
625625
// to *know* that their sizes are the same, and we repeat
626-
// that check here. This restriction may be lifted in future,
626+
// that check here. This restriction may be lifted in future,
627627
// should some optimizations need to it be more general.
628628
// (It might just end up being UB if they don't match, say.)
629629

compiler/rustc_middle/src/mir/syntax.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub enum MirPhase {
8484
/// because they eg may be aliased in surprising ways. Runtime MIR has no such special locals -
8585
/// all generator bodies are lowered and so all places that look like locals really are locals.
8686
/// - Intrinsics: In analysis MIR, intrinsics are typically represented as [`TerminatorKind::Call`]s
87-
/// to their `extern "rust-intrinsic"` declarations. In runtime MIR, some intrinsics are lowered
87+
/// to their `extern "rust-intrinsic"` declarations. In runtime MIR, some intrinsics are lowered
8888
/// to MIR constructs not used earlier, such as `mem::transmute` → [`CastKind::Transmute`].
8989
///
9090
/// Also note that the lint pass which reports eg `200_u8 + 200_u8` as an error is run as a part

0 commit comments

Comments
 (0)