1
- //! Defines language items.
1
+ //! Defines lang items.
2
2
//!
3
3
//! Language items are items that represent concepts intrinsic to the language
4
4
//! itself. Examples are:
@@ -16,7 +16,7 @@ use rustc_macros::HashStable_Generic;
16
16
use rustc_span:: symbol:: { kw, sym, Symbol } ;
17
17
use rustc_span:: Span ;
18
18
19
- /// All of the language items, defined or not.
19
+ /// All of the lang items, defined or not.
20
20
/// Defined lang items can come from the current crate or its dependencies.
21
21
#[ derive( HashStable_Generic , Debug ) ]
22
22
pub struct LanguageItems {
@@ -57,7 +57,7 @@ macro_rules! language_item_table {
57
57
) => {
58
58
59
59
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.
61
61
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash , Encodable , Decodable ) ]
62
62
pub enum LangItem {
63
63
$(
@@ -165,7 +165,7 @@ language_item_table! {
165
165
CoerceUnsized , sym:: coerce_unsized, coerce_unsized_trait, Target :: Trait , GenericRequirement :: Minimum ( 1 ) ;
166
166
DispatchFromDyn , sym:: dispatch_from_dyn, dispatch_from_dyn_trait, Target :: Trait , GenericRequirement :: Minimum ( 1 ) ;
167
167
168
- // language items relating to transmutability
168
+ // lang items relating to transmutability
169
169
TransmuteOpts , sym:: transmute_opts, transmute_opts, Target :: Struct , GenericRequirement :: Exact ( 0 ) ;
170
170
TransmuteTrait , sym:: transmute_trait, transmute_trait, Target :: Trait , GenericRequirement :: Exact ( 2 ) ;
171
171
@@ -291,7 +291,7 @@ language_item_table! {
291
291
OwnedBox , sym:: owned_box, owned_box, Target :: Struct , GenericRequirement :: Minimum ( 1 ) ;
292
292
GlobalAlloc , sym:: global_alloc_ty, global_alloc_ty, Target :: Struct , GenericRequirement :: None ;
293
293
294
- // Experimental language item for Miri
294
+ // Experimental lang item for Miri
295
295
PtrUnique , sym:: ptr_unique, ptr_unique, Target :: Struct , GenericRequirement :: Exact ( 1 ) ;
296
296
297
297
PhantomData , sym:: phantom_data, phantom_data, Target :: Struct , GenericRequirement :: Exact ( 1 ) ;
0 commit comments