mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Add a missing span
This commit is contained in:
parent
10a243ea55
commit
d1fc9d727b
1 changed files with 2 additions and 0 deletions
|
@ -24,8 +24,10 @@ pub fn autoderef<'a>(
|
||||||
krate: Option<CrateId>,
|
krate: Option<CrateId>,
|
||||||
ty: InEnvironment<Canonical<Ty>>,
|
ty: InEnvironment<Canonical<Ty>>,
|
||||||
) -> impl Iterator<Item = Canonical<Ty>> + 'a {
|
) -> impl Iterator<Item = Canonical<Ty>> + 'a {
|
||||||
|
let _p = profile::span("autoderef");
|
||||||
let InEnvironment { goal: ty, environment } = ty;
|
let InEnvironment { goal: ty, environment } = ty;
|
||||||
successors(Some(ty), move |ty| {
|
successors(Some(ty), move |ty| {
|
||||||
|
let _p = profile::span("autoderef.step");
|
||||||
deref(db, krate?, InEnvironment { goal: ty, environment: environment.clone() })
|
deref(db, krate?, InEnvironment { goal: ty, environment: environment.clone() })
|
||||||
})
|
})
|
||||||
.take(AUTODEREF_RECURSION_LIMIT)
|
.take(AUTODEREF_RECURSION_LIMIT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue