chore: Fix typos in 'compiler' (batch 2)
This commit is contained in:
parent
78d5c04d9c
commit
00de006f22
34 changed files with 54 additions and 54 deletions
|
@ -439,7 +439,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
|
|||
_ => intravisit::walk_item(self, item),
|
||||
},
|
||||
Node::TraitItem(trait_item) => {
|
||||
// mark corresponing ImplTerm live
|
||||
// mark corresponding ImplTerm live
|
||||
let trait_item_id = trait_item.owner_id.to_def_id();
|
||||
if let Some(trait_id) = self.tcx.trait_of_item(trait_item_id) {
|
||||
// mark the trait live
|
||||
|
@ -1035,7 +1035,7 @@ impl<'tcx> DeadVisitor<'tcx> {
|
|||
};
|
||||
|
||||
let encl_def_id = parent_item.unwrap_or(first_item.def_id);
|
||||
// If parent of encl_def_id is an enum, use the parent ID intead.
|
||||
// If parent of encl_def_id is an enum, use the parent ID instead.
|
||||
let encl_def_id = get_parent_if_enum_variant(tcx, encl_def_id);
|
||||
|
||||
let ignored_derived_impls =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue