mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Evaluate consts in path_to_const
This commit is contained in:
parent
c9510933a5
commit
cf47c15821
2 changed files with 15 additions and 0 deletions
|
@ -100,6 +100,7 @@ pub(crate) fn path_to_const(
|
|||
};
|
||||
Some(ConstData { ty, value }.intern(Interner))
|
||||
}
|
||||
Some(ValueNs::ConstId(c)) => db.const_eval(c).ok(),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue