From 79de56a14b320327e5077232809ed5f2067aeb40 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 3 May 2017 16:42:46 -0400 Subject: [PATCH] remove `pub` modifier (and last use thereof) --- src/librustc/ty/maps.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/librustc/ty/maps.rs b/src/librustc/ty/maps.rs index 3a2a6147345..1452a46ac01 100644 --- a/src/librustc/ty/maps.rs +++ b/src/librustc/ty/maps.rs @@ -541,18 +541,6 @@ macro_rules! define_map_struct { } }; - // Detect things with the `pub` modifier - (tcx: $tcx:tt, - input: (([pub $($other_modifiers:tt)*] $attrs:tt $name:tt) $($input:tt)*), - output: $output:tt) => { - define_map_struct! { - tcx: $tcx, - ready: ([pub] $attrs $name), - input: ($($input)*), - output: $output - } - }; - // No modifiers left? This is a private item. (tcx: $tcx:tt, input: (([] $attrs:tt $name:tt) $($input:tt)*), @@ -685,7 +673,7 @@ define_maps! { <'tcx> /// Maps from def-id of a type or region parameter to its /// (inferred) variance. - [pub] variances_of: ItemVariances(DefId) -> Rc>, + [] variances_of: ItemVariances(DefId) -> Rc>, /// Maps from an impl/trait def-id to a list of the def-ids of its items [] associated_item_def_ids: AssociatedItemDefIds(DefId) -> Rc>,