Skip to content

Commit 8094d6e

Browse files
Comment style fixes
Co-Authored-By: matthewjasper <mjjasper1@gmail.com>
1 parent 47c4e8c commit 8094d6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_mir/build/expr/as_temp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
7575
},
7676
);
7777

78-
// In constants, temp_lifetime is None for temporaries that live for the
79-
// 'static lifetime. Thus we do not drop these temporaries and simply leak them.
78+
// In constants, `temp_lifetime` is `None` for temporaries that live for the
79+
// `'static` lifetime. Thus we do not drop these temporaries and simply leak them.
8080
// This is equivalent to what `let x = &foo();` does in functions. The temporary
8181
// is lifted to their surrounding scope. In a function that means the temporary lives
8282
// until just before the function returns. In constants that means it outlives the

src/librustc_mir/build/scope.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
900900
/// * The variable must be in that scope.
901901
/// * The variable must be at the top of that scope: it's the next thing
902902
/// scheduled to drop.
903-
/// * The drop must be of DropKind::Storage.
903+
/// * The drop must be of `DropKind::Storage`.
904904
///
905905
/// This is used for the boolean holding the result of the match guard. We
906906
/// do this because:

0 commit comments

Comments
 (0)