Do not expand macro in nonminimal_bool suggestions

This commit is contained in:
kraktus 2022-09-10 19:48:14 +02:00
parent da8afc9ecf
commit d50f366612
3 changed files with 14 additions and 2 deletions

View file

@ -237,7 +237,7 @@ impl<'a, 'tcx, 'v> SuggestContext<'a, 'tcx, 'v> {
}
},
&Term(n) => {
let snip = snippet_opt(self.cx, self.terminals[n as usize].span)?;
let snip = snippet_opt(self.cx, self.terminals[n as usize].span.source_callsite())?;
self.output.push_str(&snip);
},
}