Rename some name
variables as ident
.
It bugs me when variables of type `Ident` are called `name`. It leads to silly things like `name.name`. `Ident` variables should be called `ident`, and `name` should be used for variables of type `Symbol`. This commit improves things by by doing `s/name/ident/` on a bunch of `Ident` variables. Not all of them, but a decent chunk.
This commit is contained in:
parent
d4f880f8ce
commit
1b3fc585cb
52 changed files with 238 additions and 229 deletions
|
@ -104,7 +104,7 @@ pub(crate) fn maybe_create_entry_wrapper(
|
|||
let termination_trait = tcx.require_lang_item(LangItem::Termination, None);
|
||||
let report = tcx
|
||||
.associated_items(termination_trait)
|
||||
.find_by_name_and_kind(
|
||||
.find_by_ident_and_kind(
|
||||
tcx,
|
||||
Ident::from_str("report"),
|
||||
AssocKind::Fn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue