mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 03:27:44 +00:00
minor: Add a mbe test for parsing negative literals
This commit is contained in:
parent
b3e086ad10
commit
9d1364b730
2 changed files with 118 additions and 0 deletions
|
|
@ -483,6 +483,7 @@ impl DefMap {
|
|||
curr_per_ns = match curr.def {
|
||||
ModuleDefId::ModuleId(module) => {
|
||||
if module.krate != self.krate {
|
||||
// FIXME: Inefficient
|
||||
let path = ModPath::from_segments(
|
||||
PathKind::SELF,
|
||||
path.segments()[i..].iter().cloned(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue