about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-25 21:06:33 +0200
committerGitHub <noreply@github.com>2023-04-25 21:06:33 +0200
commit8d00a8d11ee0f0c08d1eff0a3fd33ca89ed6a535 (patch)
tree47c9cfb404b02aa9bbdc3b007c8302e717fdf983 /compiler/rustc_data_structures/src/lib.rs
parent297b2220667a6fb042abd412cdf51cf3fd9fce55 (diff)
parentbec7ce482458429471c1a4c1b50bcc3728297e5e (diff)
downloadrust-8d00a8d11ee0f0c08d1eff0a3fd33ca89ed6a535.tar.gz
rust-8d00a8d11ee0f0c08d1eff0a3fd33ca89ed6a535.zip
Rollup merge of #110615 - WaffleLapkin:impl_tag, r=cjgillot
Add `impl_tag!` macro to implement `Tag` for tagged pointer easily

r? `@Nilstrieb`

This should also lifts the need to think about safety from the callers (`impl_tag!` is robust (ish, see the macro issue)) and removes the possibility of making a "weird" `Tag` impl.
Diffstat (limited to 'compiler/rustc_data_structures/src/lib.rs')
-rw-r--r--compiler/rustc_data_structures/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/lib.rs b/compiler/rustc_data_structures/src/lib.rs
index 426d2c4034b..004017ec5f3 100644
--- a/compiler/rustc_data_structures/src/lib.rs
+++ b/compiler/rustc_data_structures/src/lib.rs
@@ -31,6 +31,7 @@
 #![feature(unwrap_infallible)]
 #![feature(strict_provenance)]
 #![feature(ptr_alignment_type)]
+#![feature(macro_metavar_expr)]
 #![allow(rustc::default_hash_types)]
 #![allow(rustc::potential_query_instability)]
 #![deny(rustc::untranslatable_diagnostic)]