consistency rename: language item -> lang item
This commit is contained in:
parent
d101971ab1
commit
8b35be741f
32 changed files with 72 additions and 72 deletions
|
@ -160,7 +160,7 @@ pub fn deduced_param_attrs<'tcx>(
|
|||
return &[];
|
||||
}
|
||||
|
||||
// If the Freeze language item isn't present, then don't bother.
|
||||
// If the Freeze lang item isn't present, then don't bother.
|
||||
if tcx.lang_items().freeze_trait().is_none() {
|
||||
return &[];
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ impl<'tcx> MirPass<'tcx> for LowerSliceLenCalls {
|
|||
pub fn lower_slice_len_calls<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
|
||||
let language_items = tcx.lang_items();
|
||||
let Some(slice_len_fn_item_def_id) = language_items.slice_len_fn() else {
|
||||
// there is no language item to compare to :)
|
||||
// there is no lang item to compare to :)
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue