@@ -287,7 +287,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for EmbargoVisitor<'a, 'tcx> {
287287 // undefined symbols at linkage time if this case is not handled.
288288 //
289289 // * 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) => {
291291 let public_ty = match ty. node {
292292 ast:: TyPath ( _, id) => {
293293 match self . tcx . def_map . borrow ( ) [ id] . clone ( ) {
@@ -657,7 +657,7 @@ impl<'a, 'tcx> PrivacyVisitor<'a, 'tcx> {
657657 // invoked, and the struct/enum itself is private. Crawl
658658 // back up the chains to find the relevant struct/enum that
659659 // was private.
660- ast:: ItemImpl ( _, _, _, ref ty, _) => {
660+ ast:: ItemImpl ( _, _, _, _ , ref ty, _) => {
661661 let id = match ty. node {
662662 ast:: TyPath ( _, id) => id,
663663 _ => return Some ( ( err_span, err_msg, None ) ) ,
@@ -1137,7 +1137,7 @@ impl<'a, 'tcx> SanePrivacyVisitor<'a, 'tcx> {
11371137 match item. node {
11381138 // implementations of traits don't need visibility qualifiers because
11391139 // that's controlled by having the trait in scope.
1140- ast:: ItemImpl ( _, _, Some ( ..) , _, ref impl_items) => {
1140+ ast:: ItemImpl ( _, _, _ , Some ( ..) , _, ref impl_items) => {
11411141 check_inherited ( item. span , item. vis ,
11421142 "visibility qualifiers have no effect on trait \
11431143 impls") ;
@@ -1216,7 +1216,7 @@ impl<'a, 'tcx> SanePrivacyVisitor<'a, 'tcx> {
12161216 } ;
12171217 check_inherited ( tcx, item. span , item. vis ) ;
12181218 match item. node {
1219- ast:: ItemImpl ( _, _, _, _, ref impl_items) => {
1219+ ast:: ItemImpl ( _, _, _, _, _ , ref impl_items) => {
12201220 for impl_item in impl_items. iter ( ) {
12211221 match * impl_item {
12221222 ast:: MethodImplItem ( ref m) => {
@@ -1361,7 +1361,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for VisiblePrivateTypesVisitor<'a, 'tcx> {
13611361 // (i.e. we could just return here to not check them at
13621362 // all, or some worse estimation of whether an impl is
13631363 // 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) => {
13651365 // `impl [... for] Private` is never visible.
13661366 let self_contains_private;
13671367 // impl [... for] Public<...>, but not `impl [... for]
0 commit comments