parent
dc6121ca68
commit
edeac1778c
27 changed files with 46 additions and 46 deletions
|
@ -160,7 +160,7 @@ impl<'a> ResolverExpand for Resolver<'a> {
|
|||
hygiene::update_dollar_crate_names(|ctxt| {
|
||||
let ident = Ident::new(kw::DollarCrate, DUMMY_SP.with_ctxt(ctxt));
|
||||
match self.resolve_crate_root(ident).kind {
|
||||
ModuleKind::Def(.., name) if name != kw::Invalid => name,
|
||||
ModuleKind::Def(.., name) if name != kw::Empty => name,
|
||||
_ => kw::Crate,
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue