Skip to content

Commit 79de56a

Browse files
committed
remove pub modifier (and last use thereof)
1 parent 50df5f8 commit 79de56a

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/librustc/ty/maps.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -541,18 +541,6 @@ macro_rules! define_map_struct {
541541
}
542542
};
543543

544-
// Detect things with the `pub` modifier
545-
(tcx: $tcx:tt,
546-
input: (([pub $($other_modifiers:tt)*] $attrs:tt $name:tt) $($input:tt)*),
547-
output: $output:tt) => {
548-
define_map_struct! {
549-
tcx: $tcx,
550-
ready: ([pub] $attrs $name),
551-
input: ($($input)*),
552-
output: $output
553-
}
554-
};
555-
556544
// No modifiers left? This is a private item.
557545
(tcx: $tcx:tt,
558546
input: (([] $attrs:tt $name:tt) $($input:tt)*),
@@ -685,7 +673,7 @@ define_maps! { <'tcx>
685673

686674
/// Maps from def-id of a type or region parameter to its
687675
/// (inferred) variance.
688-
[pub] variances_of: ItemVariances(DefId) -> Rc<Vec<ty::Variance>>,
676+
[] variances_of: ItemVariances(DefId) -> Rc<Vec<ty::Variance>>,
689677

690678
/// Maps from an impl/trait def-id to a list of the def-ids of its items
691679
[] associated_item_def_ids: AssociatedItemDefIds(DefId) -> Rc<Vec<DefId>>,

0 commit comments

Comments
 (0)