]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_resolve/src/lib.rs
Rollup merge of #88838 - FabianWolff:issue-88472, r=estebank
[rust.git] / compiler / rustc_resolve / src / lib.rs
index 19b9e1dc460d658b38a7deaae142cb7c32c2438a..ff7f465dbc6d7769cde1e56e29c4686085810878 100644 (file)
@@ -2969,7 +2969,15 @@ fn report_with_use_injections(&mut self, krate: &Crate) {
                 (None, false)
             };
             if !candidates.is_empty() {
-                diagnostics::show_candidates(&mut err, span, &candidates, instead, found_use);
+                diagnostics::show_candidates(
+                    &self.definitions,
+                    self.session,
+                    &mut err,
+                    span,
+                    &candidates,
+                    instead,
+                    found_use,
+                );
             } else if let Some((span, msg, sugg, appl)) = suggestion {
                 err.span_suggestion(span, msg, sugg, appl);
             }