]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_build/src/build/scope.rs
Auto merge of #104160 - Ayush1325:windows-args, r=m-ou-se
[rust.git] / compiler / rustc_mir_build / src / build / scope.rs
index 3cebd5ebed660dac13d99c560af352e708170ddb..5ddae5f5300f664e5190d5ebfbf1286228274d7f 100644 (file)
@@ -443,8 +443,9 @@ fn topmost(&self) -> region::Scope {
 impl<'a, 'tcx> Builder<'a, 'tcx> {
     // Adding and removing scopes
     // ==========================
-    //  Start a breakable scope, which tracks where `continue`, `break` and
-    //  `return` should branch to.
+
+    ///  Start a breakable scope, which tracks where `continue`, `break` and
+    ///  `return` should branch to.
     pub(crate) fn in_breakable_scope<F>(
         &mut self,
         loop_block: Option<BasicBlock>,
@@ -799,6 +800,7 @@ pub(crate) fn source_info(&self, span: Span) -> SourceInfo {
 
     // Finding scopes
     // ==============
+
     /// Returns the scope that we should use as the lifetime of an
     /// operand. Basically, an operand must live until it is consumed.
     /// This is similar to, but not quite the same as, the temporary
@@ -824,6 +826,7 @@ pub(crate) fn local_scope(&self) -> region::Scope {
 
     // Scheduling drops
     // ================
+
     pub(crate) fn schedule_drop_storage_and_value(
         &mut self,
         span: Span,
@@ -996,6 +999,7 @@ pub(crate) fn record_operands_moved(&mut self, operands: &[Operand<'tcx>]) {
 
     // Other
     // =====
+
     /// Returns the [DropIdx] for the innermost drop if the function unwound at
     /// this point. The `DropIdx` will be created if it doesn't already exist.
     fn diverge_cleanup(&mut self) -> DropIdx {