1
Fork 0

Add back missing comments

This commit is contained in:
Joshua Nelson 2020-10-27 10:55:26 -04:00
parent 57c6ed0c07
commit 5339bd1ebe
3 changed files with 5 additions and 2 deletions

View file

@ -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 {