Add back missing comments
This commit is contained in:
parent
57c6ed0c07
commit
5339bd1ebe
3 changed files with 5 additions and 2 deletions
|
@ -1005,6 +1005,7 @@ impl<'a> Resolver<'a> {
|
|||
fn binding_description(&self, b: &NameBinding<'_>, ident: Ident, from_prelude: bool) -> String {
|
||||
let res = b.res();
|
||||
if b.span.is_dummy() {
|
||||
// These already contain the "built-in" prefix or look bad with it.
|
||||
let add_built_in =
|
||||
!matches!(b.res(), Res::NonMacroAttr(..) | Res::PrimTy(..) | Res::ToolMod);
|
||||
let (built_in, from) = if from_prelude {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue