Remove in_band_lifetimes from rustc_typeck#91882
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @jackh726 (or someone else) soon. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
jackh726
left a comment
There was a problem hiding this comment.
A few comments. This needs a fmt, but otherwise it's really just nits.
r=me after fmt at least
| } | ||
|
|
||
| fn e0307(fcx: &FnCtxt<'fcx, 'tcx>, span: Span, receiver_ty: Ty<'_>) { | ||
| fn e0307<'fcx, 'tcx> (fcx: &FnCtxt<'fcx, 'tcx>, span: Span, receiver_ty: Ty<'_>) { |
There was a problem hiding this comment.
I think reciver_ty should be Ty<'tcx> and then fcx be FnCtxt<'_, 'tcx>
| impl CheckTypeWellFormedVisitor<'tcx> { | ||
| pub fn new(tcx: TyCtxt<'tcx>) -> CheckTypeWellFormedVisitor<'tcx> { | ||
| impl CheckTypeWellFormedVisitor<'_> { | ||
| pub fn new(tcx: TyCtxt<'_>) -> CheckTypeWellFormedVisitor<'_> { |
There was a problem hiding this comment.
I don't think this change is better
| } | ||
|
|
||
| impl ItemLikeVisitor<'v> for CheckVisitor<'tcx> { | ||
| impl <'v, 'tcx> ItemLikeVisitor<'v> for CheckVisitor<'tcx> { |
There was a problem hiding this comment.
Can probably do ItemLikeVisitor<'_> instead
| } | ||
|
|
||
| fn visit_implementation_of_coerce_unsized(tcx: TyCtxt<'tcx>, impl_did: LocalDefId) { | ||
| fn visit_implementation_of_coerce_unsized(tcx: TyCtxt<'_>, impl_did: LocalDefId) { |
There was a problem hiding this comment.
I tried to mostly follow the conventions of surrounding functions, but the rest of the file, other than this function and the one who follows use 'tcx', so I've changed both to follow the rest of the file.
| } | ||
|
|
||
| impl ItemLikeVisitor<'v> for InherentCollect<'tcx> { | ||
| impl<'v, 'tcx> ItemLikeVisitor<'v> for InherentCollect<'tcx> { |
| } | ||
|
|
||
| impl ItemLikeVisitor<'v> for InherentOverlapChecker<'tcx> { | ||
| impl<'v, 'tcx> ItemLikeVisitor<'v> for InherentOverlapChecker<'tcx> { |
| impl<'tcx> UnsafetyChecker<'tcx> { | ||
| fn check_unsafety_coherence<'v>( | ||
| &mut self, | ||
| item: &'v hir::Item<'v>, |
| } | ||
|
|
||
| impl ItemLikeVisitor<'v> for UnsafetyChecker<'tcx> { | ||
| impl<'v, 'tcx> ItemLikeVisitor<'v> for UnsafetyChecker<'tcx> { |
|
@Patrick-Poitras You can run |
|
@bors r+ |
|
📌 Commit a586e7d has been approved by |
…times-from-rustc-typeck, r=jackh726 Remove `in_band_lifetimes` from `rustc_typeck` Joining in on the effort to remove the `in_band_lifetimes` features, as described in issue rust-lang#91867.
…times-from-rustc-typeck, r=jackh726 Remove `in_band_lifetimes` from `rustc_typeck` Joining in on the effort to remove the `in_band_lifetimes` features, as described in issue rust-lang#91867.
…times-from-rustc-typeck, r=jackh726 Remove `in_band_lifetimes` from `rustc_typeck` Joining in on the effort to remove the `in_band_lifetimes` features, as described in issue rust-lang#91867.
…times-from-rustc-typeck, r=jackh726 Remove `in_band_lifetimes` from `rustc_typeck` Joining in on the effort to remove the `in_band_lifetimes` features, as described in issue rust-lang#91867.
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#90939 (Tweak errors coming from `for`-loop, `?` and `.await` desugaring) - rust-lang#91859 (Iterator::cycle() — document empty iterator special case) - rust-lang#91868 (Use `OutputFilenames` to generate output file for `-Zllvm-time-trace`) - rust-lang#91870 (Revert setting a default for the MACOSX_DEPLOYMENT_TARGET env var for linking) - rust-lang#91881 (Stabilize `iter::zip`) - rust-lang#91882 (Remove `in_band_lifetimes` from `rustc_typeck`) - rust-lang#91940 (Update cargo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Joining in on the effort to remove the
in_band_lifetimesfeatures, as described in issue #91867.