summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_span/src/symbol.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /compiler/rustc_span/src/symbol.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'compiler/rustc_span/src/symbol.rs')
-rw-r--r--compiler/rustc_span/src/symbol.rs29
1 files changed, 25 insertions, 4 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 6bfae3771..874d578fe 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -95,6 +95,7 @@ symbols! {
// Weak keywords, have special meaning only in specific contexts.
Auto: "auto",
+ Builtin: "builtin",
Catch: "catch",
Default: "default",
MacroRules: "macro_rules",
@@ -129,8 +130,7 @@ symbols! {
Any,
Arc,
Argument,
- ArgumentV1,
- ArgumentV1Methods,
+ ArgumentMethods,
Arguments,
AsMut,
AsRef,
@@ -164,6 +164,7 @@ symbols! {
Capture,
Center,
Clone,
+ ConstParamTy,
Context,
Continue,
Copy,
@@ -204,9 +205,11 @@ symbols! {
HashSet,
Hasher,
Implied,
+ IndexOutput,
Input,
Into,
IntoDiagnostic,
+ IntoFuture,
IntoIterator,
IoRead,
IoWrite,
@@ -439,9 +442,12 @@ symbols! {
breakpoint,
bridge,
bswap,
+ builtin_syntax,
c_str,
+ c_str_literals,
c_unwind,
c_variadic,
+ c_void,
call,
call_mut,
call_once,
@@ -458,6 +464,7 @@ symbols! {
cfg_doctest,
cfg_eval,
cfg_hide,
+ cfg_overflow_checks,
cfg_panic,
cfg_sanitize,
cfg_target_abi,
@@ -469,6 +476,7 @@ symbols! {
cfg_target_vendor,
cfg_version,
cfi,
+ cfi_encoding,
char,
client,
clippy,
@@ -530,6 +538,7 @@ symbols! {
const_mut_refs,
const_panic,
const_panic_fmt,
+ const_param_ty,
const_precise_live_drops,
const_raw_ptr_deref,
const_raw_ptr_to_usize_cast,
@@ -650,6 +659,7 @@ symbols! {
edition_panic,
eh_catch_typeinfo,
eh_personality,
+ emit,
emit_enum,
emit_enum_variant,
emit_enum_variant_arg,
@@ -981,6 +991,7 @@ symbols! {
needs_panic_runtime,
neg,
negate_unsigned,
+ negative_bounds,
negative_impls,
neon,
never,
@@ -1024,6 +1035,7 @@ symbols! {
non_exhaustive_omitted_patterns_lint,
non_lifetime_binders,
non_modrs_mods,
+ none,
nontemporal_store,
noop_method_borrow,
noop_method_clone,
@@ -1036,6 +1048,7 @@ symbols! {
object_safe_for_dispatch,
of,
offset,
+ offset_of,
omit_gdb_pretty_printer_section,
on,
on_unimplemented,
@@ -1054,6 +1067,7 @@ symbols! {
or_patterns,
other,
out,
+ overflow_checks,
overlapping_marker_traits,
owned_box,
packed,
@@ -1199,6 +1213,7 @@ symbols! {
require,
residual,
result,
+ resume,
return_position_impl_trait_in_trait,
return_type_notation,
rhs,
@@ -1318,6 +1333,8 @@ symbols! {
s,
safety,
sanitize,
+ sanitizer_cfi_generalize_pointers,
+ sanitizer_cfi_normalize_integers,
sanitizer_runtime,
saturating_add,
saturating_sub,
@@ -1503,6 +1520,7 @@ symbols! {
transmute_generic_consts,
transmute_opts,
transmute_trait,
+ transmute_unchecked,
transparent,
transparent_enums,
transparent_unions,
@@ -1566,6 +1584,7 @@ symbols! {
unrestricted_attribute_tokens,
unsafe_block_in_unsafe_fn,
unsafe_cell,
+ unsafe_cell_from_mut,
unsafe_no_drop_flag,
unsafe_pin_internals,
unsize,
@@ -1632,6 +1651,7 @@ symbols! {
write_bytes,
write_macro,
write_str,
+ write_via_move,
writeln_macro,
x87_reg,
xer,
@@ -1986,8 +2006,9 @@ impl Interner {
name
}
- // Get the symbol as a string. `Symbol::as_str()` should be used in
- // preference to this function.
+ /// Get the symbol as a string.
+ ///
+ /// [`Symbol::as_str()`] should be used in preference to this function.
fn get(&self, symbol: Symbol) -> &str {
self.0.lock().strings[symbol.0.as_usize()]
}