diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-22 13:17:51 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-22 13:17:51 +0100 |
commit | dba534a103dc9fb374bc313ac96d54d331cbd54a (patch) | |
tree | e6be02ef8733e33ae9a9a316e2769dd6ccbab793 /crates/ra_hir_def/src/nameres.rs | |
parent | 2dd8ba2b21e3262f25e4245e37549206c8a3bc2d (diff) | |
parent | dce99874368e3e42402b4443c5eb39495c8c162a (diff) |
Merge #5475
5475: Support `Trait as _` imports r=matklad a=jonas-schievink
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/2736
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/nameres.rs')
-rw-r--r-- | crates/ra_hir_def/src/nameres.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs index 5a9de3d3e..3d9b55a73 100644 --- a/crates/ra_hir_def/src/nameres.rs +++ b/crates/ra_hir_def/src/nameres.rs | |||
@@ -239,7 +239,7 @@ impl CrateDefMap { | |||
239 | entries.sort_by_key(|(name, _)| name.clone()); | 239 | entries.sort_by_key(|(name, _)| name.clone()); |
240 | 240 | ||
241 | for (name, def) in entries { | 241 | for (name, def) in entries { |
242 | format_to!(buf, "{}:", name); | 242 | format_to!(buf, "{}:", name.map_or("_".to_string(), |name| name.to_string())); |
243 | 243 | ||
244 | if def.types.is_some() { | 244 | if def.types.is_some() { |
245 | buf.push_str(" t"); | 245 | buf.push_str(" t"); |