consistency rename: language item -> lang item
This commit is contained in:
parent
d101971ab1
commit
8b35be741f
32 changed files with 72 additions and 72 deletions
|
@ -621,7 +621,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
|||
) -> bool {
|
||||
match target {
|
||||
Target::Fn => {
|
||||
// `#[target_feature]` is not allowed in language items.
|
||||
// `#[target_feature]` is not allowed in lang items.
|
||||
if let Some((lang_item, _)) = hir::lang_items::extract(attrs)
|
||||
// Calling functions with `#[target_feature]` is
|
||||
// not unsafe on WASM, see #84988
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//! Detecting language items.
|
||||
//! Detecting lang items.
|
||||
//!
|
||||
//! Language items are items that represent concepts intrinsic to the language
|
||||
//! itself. Examples are:
|
||||
|
|
|
@ -14,7 +14,7 @@ use crate::errors::{
|
|||
};
|
||||
|
||||
/// Checks the crate for usage of weak lang items, returning a vector of all the
|
||||
/// language items required by this crate, but not defined yet.
|
||||
/// lang items required by this crate, but not defined yet.
|
||||
pub fn check_crate(tcx: TyCtxt<'_>, items: &mut lang_items::LanguageItems, krate: &ast::Crate) {
|
||||
// These are never called by user code, they're generated by the compiler.
|
||||
// They will never implicitly be added to the `missing` array unless we do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue