1
Fork 0

consistency rename: language item -> lang item

This commit is contained in:
Ralf Jung 2024-04-17 12:30:45 +02:00
parent d101971ab1
commit 8b35be741f
32 changed files with 72 additions and 72 deletions

View file

@ -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 &[];
}

View file

@ -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;
};