mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Fix test
This commit is contained in:
parent
9d24412929
commit
7054e89d18
@ -8,6 +8,7 @@ use hir_expand::{
|
|||||||
};
|
};
|
||||||
use ra_arena::{Arena, Idx, RawId};
|
use ra_arena::{Arena, Idx, RawId};
|
||||||
use ra_syntax::{ast, match_ast};
|
use ra_syntax::{ast, match_ast};
|
||||||
|
use test_utils::mark;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
attr::Attrs,
|
attr::Attrs,
|
||||||
@ -693,7 +694,10 @@ impl Ctx {
|
|||||||
.flat_map(|items| items.0)
|
.flat_map(|items| items.0)
|
||||||
.collect()
|
.collect()
|
||||||
})
|
})
|
||||||
.unwrap_or_default(),
|
.unwrap_or_else(|| {
|
||||||
|
mark::hit!(name_res_works_for_broken_modules);
|
||||||
|
Vec::new()
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let ast_id = self.source_ast_id_map.ast_id(module);
|
let ast_id = self.source_ast_id_map.ast_id(module);
|
||||||
|
@ -20,8 +20,11 @@ fn name_res_works_for_broken_modules() {
|
|||||||
",
|
",
|
||||||
);
|
);
|
||||||
assert_snapshot!(map, @r###"
|
assert_snapshot!(map, @r###"
|
||||||
⋮crate
|
crate
|
||||||
⋮Baz: _
|
Baz: _
|
||||||
|
foo: t
|
||||||
|
|
||||||
|
crate::foo
|
||||||
"###);
|
"###);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user