1- //! Defines language items.
1+ //! Defines lang items.
22//!
33//! Language items are items that represent concepts intrinsic to the language
44//! itself. Examples are:
@@ -16,7 +16,7 @@ use rustc_macros::HashStable_Generic;
1616use rustc_span:: symbol:: { kw, sym, Symbol } ;
1717use rustc_span:: Span ;
1818
19- /// All of the language items, defined or not.
19+ /// All of the lang items, defined or not.
2020/// Defined lang items can come from the current crate or its dependencies.
2121#[ derive( HashStable_Generic , Debug ) ]
2222pub struct LanguageItems {
@@ -57,7 +57,7 @@ macro_rules! language_item_table {
5757 ) => {
5858
5959 enum_from_u32! {
60- /// A representation of all the valid language items in Rust.
60+ /// A representation of all the valid lang items in Rust.
6161 #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash , Encodable , Decodable ) ]
6262 pub enum LangItem {
6363 $(
@@ -165,7 +165,7 @@ language_item_table! {
165165 CoerceUnsized , sym:: coerce_unsized, coerce_unsized_trait, Target :: Trait , GenericRequirement :: Minimum ( 1 ) ;
166166 DispatchFromDyn , sym:: dispatch_from_dyn, dispatch_from_dyn_trait, Target :: Trait , GenericRequirement :: Minimum ( 1 ) ;
167167
168- // language items relating to transmutability
168+ // lang items relating to transmutability
169169 TransmuteOpts , sym:: transmute_opts, transmute_opts, Target :: Struct , GenericRequirement :: Exact ( 0 ) ;
170170 TransmuteTrait , sym:: transmute_trait, transmute_trait, Target :: Trait , GenericRequirement :: Exact ( 2 ) ;
171171
@@ -291,7 +291,7 @@ language_item_table! {
291291 OwnedBox , sym:: owned_box, owned_box, Target :: Struct , GenericRequirement :: Minimum ( 1 ) ;
292292 GlobalAlloc , sym:: global_alloc_ty, global_alloc_ty, Target :: Struct , GenericRequirement :: None ;
293293
294- // Experimental language item for Miri
294+ // Experimental lang item for Miri
295295 PtrUnique , sym:: ptr_unique, ptr_unique, Target :: Struct , GenericRequirement :: Exact ( 1 ) ;
296296
297297 PhantomData , sym:: phantom_data, phantom_data, Target :: Struct , GenericRequirement :: Exact ( 1 ) ;
0 commit comments