Don't export the Trivial* macros.
They're only used within the crate.
This commit is contained in:
@@ -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)* }
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ pub enum IsConstable {
|
|||||||
Ctor,
|
Ctor,
|
||||||
}
|
}
|
||||||
|
|
||||||
crate::TrivialTypeTraversalAndLiftImpls! {
|
TrivialTypeTraversalAndLiftImpls! {
|
||||||
IsConstable,
|
IsConstable,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user