remove find_use_placement

A more robust solution to finding where to place use suggestions was added.
The algorithm uses the AST to find the span for the suggestion so we pass this span
down to the HIR during lowering and use it.

Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
Fausto 2022-03-18 17:13:38 -04:00 committed by Miguel Guarniz
parent 0677edc86e
commit 8c2353b6c1
12 changed files with 57 additions and 148 deletions

View file

@ -282,7 +282,7 @@ impl<'tcx> SaveContext<'tcx> {
let qualname = format!("::{}", self.tcx.def_path_str(def_id));
let sm = self.tcx.sess.source_map();
let filename = sm.span_to_filename(m.inner);
let filename = sm.span_to_filename(m.spans.inner_span);
filter!(self.span_utils, item.ident.span);