@@ -287,7 +287,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for EmbargoVisitor<'a, 'tcx> {
287
287
// undefined symbols at linkage time if this case is not handled.
288
288
//
289
289
// * Private trait impls for private types can be completely ignored
290
- ast:: ItemImpl ( _, _, _, ref ty, ref impl_items) => {
290
+ ast:: ItemImpl ( _, _, _, _ , ref ty, ref impl_items) => {
291
291
let public_ty = match ty. node {
292
292
ast:: TyPath ( _, id) => {
293
293
match self . tcx . def_map . borrow ( ) [ id] . clone ( ) {
@@ -657,7 +657,7 @@ impl<'a, 'tcx> PrivacyVisitor<'a, 'tcx> {
657
657
// invoked, and the struct/enum itself is private. Crawl
658
658
// back up the chains to find the relevant struct/enum that
659
659
// was private.
660
- ast:: ItemImpl ( _, _, _, ref ty, _) => {
660
+ ast:: ItemImpl ( _, _, _, _ , ref ty, _) => {
661
661
let id = match ty. node {
662
662
ast:: TyPath ( _, id) => id,
663
663
_ => return Some ( ( err_span, err_msg, None ) ) ,
@@ -1137,7 +1137,7 @@ impl<'a, 'tcx> SanePrivacyVisitor<'a, 'tcx> {
1137
1137
match item. node {
1138
1138
// implementations of traits don't need visibility qualifiers because
1139
1139
// that's controlled by having the trait in scope.
1140
- ast:: ItemImpl ( _, _, Some ( ..) , _, ref impl_items) => {
1140
+ ast:: ItemImpl ( _, _, _ , Some ( ..) , _, ref impl_items) => {
1141
1141
check_inherited ( item. span , item. vis ,
1142
1142
"visibility qualifiers have no effect on trait \
1143
1143
impls") ;
@@ -1216,7 +1216,7 @@ impl<'a, 'tcx> SanePrivacyVisitor<'a, 'tcx> {
1216
1216
} ;
1217
1217
check_inherited ( tcx, item. span , item. vis ) ;
1218
1218
match item. node {
1219
- ast:: ItemImpl ( _, _, _, _, ref impl_items) => {
1219
+ ast:: ItemImpl ( _, _, _, _, _ , ref impl_items) => {
1220
1220
for impl_item in impl_items. iter ( ) {
1221
1221
match * impl_item {
1222
1222
ast:: MethodImplItem ( ref m) => {
@@ -1361,7 +1361,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for VisiblePrivateTypesVisitor<'a, 'tcx> {
1361
1361
// (i.e. we could just return here to not check them at
1362
1362
// all, or some worse estimation of whether an impl is
1363
1363
// publicly visible.
1364
- ast:: ItemImpl ( _, ref g, ref trait_ref, ref self_, ref impl_items) => {
1364
+ ast:: ItemImpl ( _, _ , ref g, ref trait_ref, ref self_, ref impl_items) => {
1365
1365
// `impl [... for] Private` is never visible.
1366
1366
let self_contains_private;
1367
1367
// impl [... for] Public<...>, but not `impl [... for]
0 commit comments