about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-07-12 09:15:54 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-07-12 09:16:31 +1000
commit36458109ae6e030b04b4b40e9ca5980a5348f5e3 (patch)
treeb71cffe5a59065e7225c11ae3426ba67ea6f5cca
parent1065d876cdbc34a872b9e17c78caaa59ea0c94d4 (diff)
downloadrust-36458109ae6e030b04b4b40e9ca5980a5348f5e3.tar.gz
rust-36458109ae6e030b04b4b40e9ca5980a5348f5e3.zip
Shorten some overlong comment lines.
It's annoying that these wrap in a 100-char terminal window.
-rw-r--r--compiler/rustc_mir_build/src/build/scope.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/compiler/rustc_mir_build/src/build/scope.rs b/compiler/rustc_mir_build/src/build/scope.rs
index 72374102c8c..5bbf3347837 100644
--- a/compiler/rustc_mir_build/src/build/scope.rs
+++ b/compiler/rustc_mir_build/src/build/scope.rs
@@ -760,12 +760,13 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
     ) {
         let (current_root, parent_root) =
             if self.tcx.sess.opts.unstable_opts.maximal_hir_to_mir_coverage {
-                // Some consumers of rustc need to map MIR locations back to HIR nodes. Currently the
-                // the only part of rustc that tracks MIR -> HIR is the `SourceScopeLocalData::lint_root`
-                // field that tracks lint levels for MIR locations. Normally the number of source scopes
-                // is limited to the set of nodes with lint annotations. The -Zmaximal-hir-to-mir-coverage
-                // flag changes this behavior to maximize the number of source scopes, increasing the
-                // granularity of the MIR->HIR mapping.
+                // Some consumers of rustc need to map MIR locations back to HIR nodes. Currently
+                // the the only part of rustc that tracks MIR -> HIR is the
+                // `SourceScopeLocalData::lint_root` field that tracks lint levels for MIR
+                // locations. Normally the number of source scopes is limited to the set of nodes
+                // with lint annotations. The -Zmaximal-hir-to-mir-coverage flag changes this
+                // behavior to maximize the number of source scopes, increasing the granularity of
+                // the MIR->HIR mapping.
                 (current_id, parent_id)
             } else {
                 // Use `maybe_lint_level_root_bounded` with `self.hir_id` as a bound