diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-10-27 10:55:26 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-10-30 10:13:41 -0400 |
| commit | 5339bd1ebeb76ea7304ff07dcf8e6c317ba0ced8 (patch) | |
| tree | dea8fd60ec5b2aa448b12e491cf8d23053a7892a /compiler/rustc_resolve/src | |
| parent | 57c6ed0c07aaea9c89a192e54b3274464ebe6fbf (diff) | |
| download | rust-5339bd1ebeb76ea7304ff07dcf8e6c317ba0ced8.tar.gz rust-5339bd1ebeb76ea7304ff07dcf8e6c317ba0ced8.zip | |
Add back missing comments
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/diagnostics.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs index 6a915727ef1..4e115c62c9e 100644 --- a/compiler/rustc_resolve/src/diagnostics.rs +++ b/compiler/rustc_resolve/src/diagnostics.rs @@ -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 { |
