#[cfg(test)]
mod tests;
-// The proc macro code for this is in `src/librustc_macros/src/symbols.rs`.
+// The proc macro code for this is in `compiler/rustc_macros/src/symbols.rs`.
symbols! {
// After modifying this list adjust `is_special`, `is_used_keyword`/`is_unused_keyword`,
// this should be rarely necessary though if the keywords are kept in alphabetic order.
Argument,
ArgumentV1,
Arguments,
+ BTreeMap,
+ BTreeSet,
+ BinaryHeap,
+ Borrow,
C,
CString,
Center,
Decodable,
Decoder,
Default,
+ Deref,
Encodable,
Encoder,
Eq,
Iterator,
Layout,
Left,
+ LinkedList,
LintPass,
None,
Ok,
Option,
Ord,
Ordering,
+ OsStr,
+ OsString,
Output,
Param,
PartialEq,
PartialOrd,
+ Path,
+ PathBuf,
Pending,
Pin,
Poll,
RangeToInclusive,
Rc,
Ready,
+ Receiver,
Result,
Return,
Right,
StructuralPartialEq,
Sync,
Target,
+ ToOwned,
+ ToString,
Try,
Ty,
TyCtxt,
allow_fail,
allow_internal_unsafe,
allow_internal_unstable,
- allow_internal_unstable_backcompat_hack,
allowed,
always,
and,
bridge,
bswap,
c_str,
+ c_unwind,
c_variadic,
call,
call_mut,
cfg_attr,
cfg_attr_multi,
cfg_doctest,
+ cfg_eval,
cfg_panic,
cfg_sanitize,
cfg_target_feature,
dropck_eyepatch,
dropck_parametricity,
dylib,
+ dyn_metadata,
dyn_trait,
edition_macro_pats,
eh_catch_typeinfo,
format_args,
format_args_capture,
format_args_nl,
+ format_macro,
freeze,
freg,
frem_fast,
gt,
half_open_range_patterns,
hash,
+ hashmap_type,
+ hashset_type,
hexagon_target_feature,
hidden,
homogeneous_aggregate,
html_no_source,
html_playground_url,
html_root_url,
+ hwaddress,
i,
i128,
i128_type,
index_mut,
infer_outlives_requirements,
infer_static_outlives_requirements,
+ inherent_associated_types,
inlateout,
inline,
inline_const,
loop_break_value,
lt,
macro_at_most_once_rep,
+ macro_attributes_in_derive_output,
macro_escape,
macro_export,
macro_lifetime_matcher,
memory,
message,
meta,
+ metadata_type,
min_align_of,
min_align_of_val,
min_const_fn,
min_const_generics,
min_const_unsafe_fn,
min_specialization,
+ min_type_alias_impl_trait,
minnumf32,
minnumf64,
mips_target_feature,
none_error,
nontemporal_store,
nontrapping_dash_fptoint: "nontrapping-fptoint",
+ noop_method_borrow,
+ noop_method_clone,
+ noop_method_deref,
noreturn,
nostack,
not,
plugin,
plugin_registrar,
plugins,
+ pointee_trait,
pointer,
pointer_trait,
pointer_trait_fmt,
ptr_guaranteed_eq,
ptr_guaranteed_ne,
ptr_offset_from,
+ pub_macro_rules,
pub_restricted,
pure,
pushpop_unsafe,
rt,
rtm_target_feature,
rust,
+ rust_2015,
rust_2015_preview,
+ rust_2018,
rust_2018_preview,
+ rust_2021,
rust_2021_preview,
rust_begin_unwind,
rust_eh_catch_typeinfo,
rustc_layout,
rustc_layout_scalar_valid_range_end,
rustc_layout_scalar_valid_range_start,
+ rustc_legacy_const_generics,
rustc_macro_transparency,
rustc_mir,
rustc_nonnull_optimization_guaranteed,
rustc_then_this_would_need,
rustc_unsafe_specialization_marker,
rustc_variance,
+ rustdoc,
rustfmt,
rvalue_static_promotion,
sanitize,
simd_lt,
simd_mul,
simd_ne,
+ simd_neg,
simd_or,
simd_reduce_add_ordered,
simd_reduce_add_unordered,
size_of,
size_of_val,
sized,
+ skip,
slice,
slice_alloc,
slice_patterns,
variant_count,
vec,
vec_type,
+ vecdeque_type,
version,
vis,
visible_private_types,
use super::Symbol;
use std::convert::TryInto;
+ #[doc(inline)]
pub use super::sym_generated::*;
// Used from a macro in `librustc_feature/accepted.rs`