]> git.lizzy.rs Git - rust.git/commitdiff
Comment style fixes
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 22 Apr 2019 18:35:00 +0000 (20:35 +0200)
committerMatthew Jasper <mjjasper1@gmail.com>
Tue, 21 May 2019 18:37:39 +0000 (19:37 +0100)
Co-Authored-By: matthewjasper <mjjasper1@gmail.com>
src/librustc_mir/build/expr/as_temp.rs
src/librustc_mir/build/scope.rs

index ac70bf30e457ba34c33824cf0a4636416bec591e..cffd8fb2892f5ce987d1946a431f998a1669dade 100644 (file)
@@ -75,8 +75,8 @@ fn expr_as_temp(
                 },
             );
 
-            // In constants, temp_lifetime is None for temporaries that live for the
-            // 'static lifetime. Thus we do not drop these temporaries and simply leak them.
+            // In constants, `temp_lifetime` is `None` for temporaries that live for the
+            // `'static` lifetime. Thus we do not drop these temporaries and simply leak them.
             // This is equivalent to what `let x = &foo();` does in functions. The temporary
             // is lifted to their surrounding scope. In a function that means the temporary lives
             // until just before the function returns. In constants that means it outlives the
index 0d1d40a8af6333b42d3f9c73cebacf8c88e8ac7d..34df40ae180afe604bbaf8324c6e91ad47f7c768 100644 (file)
@@ -900,7 +900,7 @@ pub fn clear_top_scope(&mut self, region_scope: region::Scope) {
     /// * The variable must be in that scope.
     /// * The variable must be at the top of that scope: it's the next thing
     ///   scheduled to drop.
-    /// * The drop must be of DropKind::Storage.
+    /// * The drop must be of `DropKind::Storage`.
     ///
     /// This is used for the boolean holding the result of the match guard. We
     /// do this because: