Skip to content

Commit 3645810

Browse files
committed
Shorten some overlong comment lines.
It's annoying that these wrap in a 100-char terminal window.
1 parent 1065d87 commit 3645810

File tree

1 file changed

+7
-6
lines changed
  • compiler/rustc_mir_build/src/build

1 file changed

+7
-6
lines changed

compiler/rustc_mir_build/src/build/scope.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -760,12 +760,13 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
760760
) {
761761
let (current_root, parent_root) =
762762
if self.tcx.sess.opts.unstable_opts.maximal_hir_to_mir_coverage {
763-
// Some consumers of rustc need to map MIR locations back to HIR nodes. Currently the
764-
// the only part of rustc that tracks MIR -> HIR is the `SourceScopeLocalData::lint_root`
765-
// field that tracks lint levels for MIR locations. Normally the number of source scopes
766-
// is limited to the set of nodes with lint annotations. The -Zmaximal-hir-to-mir-coverage
767-
// flag changes this behavior to maximize the number of source scopes, increasing the
768-
// granularity of the MIR->HIR mapping.
763+
// Some consumers of rustc need to map MIR locations back to HIR nodes. Currently
764+
// the the only part of rustc that tracks MIR -> HIR is the
765+
// `SourceScopeLocalData::lint_root` field that tracks lint levels for MIR
766+
// locations. Normally the number of source scopes is limited to the set of nodes
767+
// with lint annotations. The -Zmaximal-hir-to-mir-coverage flag changes this
768+
// behavior to maximize the number of source scopes, increasing the granularity of
769+
// the MIR->HIR mapping.
769770
(current_id, parent_id)
770771
} else {
771772
// Use `maybe_lint_level_root_bounded` with `self.hir_id` as a bound

0 commit comments

Comments
 (0)