|
1 | 1 | #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")] |
2 | | -#![feature(in_band_lifetimes)] |
3 | 2 | #![feature(nll)] |
4 | 3 | #![feature(control_flow_enum)] |
5 | 4 | #![feature(try_blocks)] |
@@ -310,7 +309,7 @@ struct PubRestrictedVisitor<'tcx> { |
310 | 309 | has_pub_restricted: bool, |
311 | 310 | } |
312 | 311 |
|
313 | | -impl Visitor<'tcx> for PubRestrictedVisitor<'tcx> { |
| 312 | +impl<'tcx> Visitor<'tcx> for PubRestrictedVisitor<'tcx> { |
314 | 313 | type Map = Map<'tcx>; |
315 | 314 |
|
316 | 315 | fn nested_visit_map(&mut self) -> NestedVisitorMap<Self::Map> { |
@@ -432,7 +431,7 @@ struct ReachEverythingInTheInterfaceVisitor<'a, 'tcx> { |
432 | 431 | ev: &'a mut EmbargoVisitor<'tcx>, |
433 | 432 | } |
434 | 433 |
|
435 | | -impl EmbargoVisitor<'tcx> { |
| 434 | +impl<'tcx> EmbargoVisitor<'tcx> { |
436 | 435 | fn get(&self, def_id: LocalDefId) -> Option<AccessLevel> { |
437 | 436 | self.access_levels.map.get(&def_id).copied() |
438 | 437 | } |
@@ -674,7 +673,7 @@ impl EmbargoVisitor<'tcx> { |
674 | 673 | } |
675 | 674 | } |
676 | 675 |
|
677 | | -impl Visitor<'tcx> for EmbargoVisitor<'tcx> { |
| 676 | +impl<'tcx> Visitor<'tcx> for EmbargoVisitor<'tcx> { |
678 | 677 | type Map = Map<'tcx>; |
679 | 678 |
|
680 | 679 | /// We want to visit items in the context of their containing |
@@ -944,7 +943,7 @@ impl Visitor<'tcx> for EmbargoVisitor<'tcx> { |
944 | 943 | } |
945 | 944 | } |
946 | 945 |
|
947 | | -impl ReachEverythingInTheInterfaceVisitor<'_, 'tcx> { |
| 946 | +impl ReachEverythingInTheInterfaceVisitor<'_, '_> { |
948 | 947 | fn generics(&mut self) -> &mut Self { |
949 | 948 | for param in &self.ev.tcx.generics_of(self.item_def_id).params { |
950 | 949 | match param.kind { |
@@ -983,7 +982,7 @@ impl ReachEverythingInTheInterfaceVisitor<'_, 'tcx> { |
983 | 982 | } |
984 | 983 | } |
985 | 984 |
|
986 | | -impl DefIdVisitor<'tcx> for ReachEverythingInTheInterfaceVisitor<'_, 'tcx> { |
| 985 | +impl<'tcx> DefIdVisitor<'tcx> for ReachEverythingInTheInterfaceVisitor<'_, 'tcx> { |
987 | 986 | fn tcx(&self) -> TyCtxt<'tcx> { |
988 | 987 | self.ev.tcx |
989 | 988 | } |
@@ -1413,7 +1412,7 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> { |
1413 | 1412 | } |
1414 | 1413 | } |
1415 | 1414 |
|
1416 | | -impl DefIdVisitor<'tcx> for TypePrivacyVisitor<'tcx> { |
| 1415 | +impl<'tcx> DefIdVisitor<'tcx> for TypePrivacyVisitor<'tcx> { |
1417 | 1416 | fn tcx(&self) -> TyCtxt<'tcx> { |
1418 | 1417 | self.tcx |
1419 | 1418 | } |
@@ -1800,7 +1799,7 @@ struct SearchInterfaceForPrivateItemsVisitor<'tcx> { |
1800 | 1799 | in_assoc_ty: bool, |
1801 | 1800 | } |
1802 | 1801 |
|
1803 | | -impl SearchInterfaceForPrivateItemsVisitor<'tcx> { |
| 1802 | +impl SearchInterfaceForPrivateItemsVisitor<'_> { |
1804 | 1803 | fn generics(&mut self) -> &mut Self { |
1805 | 1804 | for param in &self.tcx.generics_of(self.item_def_id).params { |
1806 | 1805 | match param.kind { |
@@ -1921,7 +1920,7 @@ impl SearchInterfaceForPrivateItemsVisitor<'tcx> { |
1921 | 1920 | } |
1922 | 1921 | } |
1923 | 1922 |
|
1924 | | -impl DefIdVisitor<'tcx> for SearchInterfaceForPrivateItemsVisitor<'tcx> { |
| 1923 | +impl<'tcx> DefIdVisitor<'tcx> for SearchInterfaceForPrivateItemsVisitor<'tcx> { |
1925 | 1924 | fn tcx(&self) -> TyCtxt<'tcx> { |
1926 | 1925 | self.tcx |
1927 | 1926 | } |
|
0 commit comments