Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove in_band_lifetimes from rustc_mir_transform #91638

Merged
merged 1 commit into from
Dec 8, 2021

Commits on Dec 8, 2021

  1. Remove in_band_lifetimes from rustc_mir_transform

    This one is a heavy `'tcx` user.
    
    Two interesting ones:
    
    This one had the `'tcx` declared on the function, despite the trait taking a `'tcx`:
    ```diff
    -impl Visitor<'_> for UsedLocals {
    +impl<'tcx> Visitor<'tcx> for UsedLocals {
         fn visit_statement(&mut self, statement: &Statement<'tcx>, location: Location) {
    ```
    
    This one use in-band for one, and underscore for the other:
    ```diff
    -pub fn remove_dead_blocks(tcx: TyCtxt<'tcx>, body: &mut Body<'_>) {
    +pub fn remove_dead_blocks<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
    ```
    scottmcm committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    a124924 View commit details
    Browse the repository at this point in the history