Skip to content

Commit 4ced93e

Browse files
committed
Don't export the Trivial* macros.
They're only used within the crate.
1 parent 1408173 commit 4ced93e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Diff for: compiler/rustc_middle/src/macros.rs

-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ macro_rules! span_bug {
4141
// When possible, use one of these (relatively) convenient macros to write
4242
// the impls for you.
4343

44-
#[macro_export]
4544
macro_rules! TrivialLiftImpls {
4645
($($ty:ty),+ $(,)?) => {
4746
$(
@@ -57,7 +56,6 @@ macro_rules! TrivialLiftImpls {
5756

5857
/// Used for types that are `Copy` and which **do not care about arena
5958
/// allocated data** (i.e., don't need to be folded).
60-
#[macro_export]
6159
macro_rules! TrivialTypeTraversalImpls {
6260
($($ty:ty),+ $(,)?) => {
6361
$(
@@ -92,7 +90,6 @@ macro_rules! TrivialTypeTraversalImpls {
9290
};
9391
}
9492

95-
#[macro_export]
9693
macro_rules! TrivialTypeTraversalAndLiftImpls {
9794
($($t:tt)*) => {
9895
TrivialTypeTraversalImpls! { $($t)* }

Diff for: compiler/rustc_middle/src/traits/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ pub enum IsConstable {
428428
Ctor,
429429
}
430430

431-
crate::TrivialTypeTraversalAndLiftImpls! {
431+
TrivialTypeTraversalAndLiftImpls! {
432432
IsConstable,
433433
}
434434

0 commit comments

Comments
 (0)