Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1584b0e

Browse files
committed
Add comment.
1 parent e8221ef commit 1584b0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎compiler/rustc_resolve/src/late.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,8 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
15661566
self.with_rib(ValueNS, RibKind::Module(module), |this| {
15671567
this.with_rib(TypeNS, RibKind::Module(module), |this| {
15681568
let ret = f(this);
1569+
// Make sure there is an entry in these maps, so metadata encoder does not need to
1570+
// understand in which case they are populated.
15691571
this.r.doc_link_resolutions.entry(def_id).or_default();
15701572
this.r.doc_link_traits_in_scope.entry(def_id).or_default();
15711573
this.parent_scope.module = orig_module;
@@ -5250,6 +5252,8 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
52505252
BuiltinLintDiag::UnusedLabel,
52515253
);
52525254
}
5255+
// Make sure there is an entry in these maps, so metadata encoder does not need to
5256+
// understand in which case they are populated.
52535257
self.doc_link_resolutions.entry(CRATE_DEF_ID).or_default();
52545258
self.doc_link_traits_in_scope.entry(CRATE_DEF_ID).or_default();
52555259
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /