minor: Add a mbe test for parsing negative literals

This commit is contained in:
Lukas Wirth 2025-05-05 12:09:49 +02:00
parent b3e086ad10
commit 9d1364b730
2 changed files with 118 additions and 0 deletions

View file

@ -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(),