mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Global TypeRef/TraitRef interning
This commit is contained in:
parent
25201b2dad
commit
b00266b79f
11 changed files with 205 additions and 120 deletions
|
@ -91,7 +91,7 @@ impl HirDisplay for Function {
|
|||
let ret_type = if !qual.is_async {
|
||||
&data.ret_type
|
||||
} else {
|
||||
match &data.ret_type {
|
||||
match &*data.ret_type {
|
||||
TypeRef::ImplTrait(bounds) => match &bounds[0] {
|
||||
TypeBound::Path(path) => {
|
||||
path.segments().iter().last().unwrap().args_and_bindings.unwrap().bindings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue