Don't export the Trivial* macros.

They're only used within the crate.
This commit is contained in:
Nicholas Nethercote
2025-01-31 10:09:18 +11:00
parent 140817380c
commit 4ced93ed35
2 changed files with 1 additions and 4 deletions

View File

@@ -41,7 +41,6 @@ macro_rules! span_bug {
// When possible, use one of these (relatively) convenient macros to write // When possible, use one of these (relatively) convenient macros to write
// the impls for you. // the impls for you.
#[macro_export]
macro_rules! TrivialLiftImpls { macro_rules! TrivialLiftImpls {
($($ty:ty),+ $(,)?) => { ($($ty:ty),+ $(,)?) => {
$( $(
@@ -57,7 +56,6 @@ macro_rules! TrivialLiftImpls {
/// Used for types that are `Copy` and which **do not care about arena /// Used for types that are `Copy` and which **do not care about arena
/// allocated data** (i.e., don't need to be folded). /// allocated data** (i.e., don't need to be folded).
#[macro_export]
macro_rules! TrivialTypeTraversalImpls { macro_rules! TrivialTypeTraversalImpls {
($($ty:ty),+ $(,)?) => { ($($ty:ty),+ $(,)?) => {
$( $(
@@ -92,7 +90,6 @@ macro_rules! TrivialTypeTraversalImpls {
}; };
} }
#[macro_export]
macro_rules! TrivialTypeTraversalAndLiftImpls { macro_rules! TrivialTypeTraversalAndLiftImpls {
($($t:tt)*) => { ($($t:tt)*) => {
TrivialTypeTraversalImpls! { $($t)* } TrivialTypeTraversalImpls! { $($t)* }

View File

@@ -428,7 +428,7 @@ pub enum IsConstable {
Ctor, Ctor,
} }
crate::TrivialTypeTraversalAndLiftImpls! { TrivialTypeTraversalAndLiftImpls! {
IsConstable, IsConstable,
} }