Rename kw::Invalid -> kw::Empty
See https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Is.20there.20a.20symbol.20for.20the.20empty.20string.3F/near/220054471 for context.
This commit is contained in:
parent
dc6121ca68
commit
edeac1778c
27 changed files with 46 additions and 46 deletions
|
@ -959,7 +959,7 @@ impl<'tcx> NamePrivacyVisitor<'tcx> {
|
|||
in_update_syntax: bool,
|
||||
) {
|
||||
// definition of the field
|
||||
let ident = Ident::new(kw::Invalid, use_ctxt);
|
||||
let ident = Ident::new(kw::Empty, use_ctxt);
|
||||
let current_hir = self.current_item.unwrap();
|
||||
let def_id = self.tcx.adjust_ident_and_get_scope(ident, def.did, current_hir).1;
|
||||
if !def.is_enum() && !field.vis.is_accessible_from(def_id, self.tcx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue