We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 673640d commit 4a0c2b2Copy full SHA for 4a0c2b2
compiler/rustc_typeck/src/check/method/suggest.rs
@@ -1936,6 +1936,10 @@ pub fn all_traits(tcx: TyCtxt<'_>) -> Vec<TraitInfo> {
1936
}
1937
1938
fn find_use_placement<'tcx>(tcx: TyCtxt<'tcx>, target_module: LocalDefId) -> (Option<Span>, bool) {
1939
+ // FIXME(#94854): this code uses an out-of-date method for inferring a span
1940
+ // to suggest. It would be better to thread the ModSpans from the AST into
1941
+ // the HIR, and then use that to drive the suggestion here.
1942
+
1943
let mut span = None;
1944
let mut found_use = false;
1945
let (module, _, _) = tcx.hir().get_module(target_module);
0 commit comments