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

Rollup of 6 pull requests #99044

Closed
wants to merge 15 commits into from
Closed

Commits on Jun 30, 2022

  1. Stabilize into_future

    yoshuawuyts committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    992cfc1 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2022

  1. sess: stabilize --terminal-width

    Formerly `-Zterminal-width`, `--terminal-width` allows the user or build
    tool to inform rustc of the width of the terminal so that diagnostics
    can be truncated.
    
    Signed-off-by: David Wood <[email protected]>
    davidtwco committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    e528884 View commit details
    Browse the repository at this point in the history
  2. session: terminal-width -> output-width

    Rename the `--terminal-width` flag to `--output-width` as the behaviour
    doesn't just apply to terminals (and so is slightly less accurate).
    
    Signed-off-by: David Wood <[email protected]>
    davidtwco committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    cd23af6 View commit details
    Browse the repository at this point in the history
  3. session: output-width -> diagnostic-width

    Rename the `--output-width` flag to `--diagnostic-width` as this appears
    to be the preferred name within the compiler team.
    
    Signed-off-by: David Wood <[email protected]>
    davidtwco committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    44c1fcc View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2022

  1. Fix last let_chains blocker

    c410-f3r committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    9d2a9d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    933a994 View commit details
    Browse the repository at this point in the history
  3. Add test for and fix rust-lang/rust-clippy#9131

    This lint seems to have been broken by rust-lang#98446
    anall committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    98b8419 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2022

  1. Move is_free and is_free_or_static to Region, change resolve_var to r…

    …esolve_region, and remove RootEmptyRegion
    jackh726 committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    2471431 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    31e1a77 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#95635 - davidtwco:terminal-width-stabilizat…

    …ion, r=oli-obk
    
    sess: stabilize `--terminal-width` as `--diagnostic-width`
    
    Formerly `-Zterminal-width`, `--terminal-width` allows the user or build
    tool to inform rustc of the width of the terminal so that diagnostics
    can be truncated.
    
    Pending agreement to stabilize, see tracking issue at rust-lang#84673.
    
    r? ``@oli-obk``
    Dylan-DPC authored Jul 8, 2022
    Configuration menu
    Copy the full SHA
    8082a5b View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#98633 - c410-f3r:yet-another-let-chain, r=e…

    …stebank
    
    Fix last `let_chains` blocker
    
    In order to forbid things like `let x = (let y = 1);` or `if let a = 1 && { let x = let y = 1; } {}`, the parser **HAS** to know the context of `let`.
    
    This context thing is not a surprise in the parser because you can see **a lot** of ad hoc fixes mixing parsing logic with validation logic creating code that looks more like spaghetti with tomato sauce.
    
    To make things even greater, a new ad hoc fix was added to only allow `let`s in a valid `let_chains` context by checking the previously processed token. This was the only solution I could think of and believe me, I thought about it for a long time 👍
    
    In the long term, it should be preferable to segregate different responsibilities or create a more robust and cleaner parser framework.
    
    cc rust-lang#94927
    cc rust-lang#53667
    Dylan-DPC authored Jul 8, 2022
    Configuration menu
    Copy the full SHA
    1916f84 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#98718 - yoshuawuyts:stabilize-into-future, …

    …r=yaahc
    
    Stabilize `into_future`
    
    rust-lang#67644 has been labeled with [S-tracking-ready-to-stabilize](https://github.com/rust-lang/rust/labels/S-tracking-ready-to-stabilize) - which mentions someone needs to file a stabilization PR. So hence this PR! ✨ Thanks!
    
    Closes rust-lang#67644
    
    r? `@joshtriplett`
    Dylan-DPC authored Jul 8, 2022
    Configuration menu
    Copy the full SHA
    1da9c94 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#98795 - jackh726:lexical_region_resolve_cle…

    …anup, r=compiler-errors
    
    A few cleanups
    
    Each commit is (mostly) self-explanatory. These changes have come as I try to remove `ReEmpty` (rust-lang#98559).
    Dylan-DPC authored Jul 8, 2022
    Configuration menu
    Copy the full SHA
    897062f View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#99019 - pierwill:doc-mir-statement, r=cjgillot

    Add doc comments in `rustc_middle::mir`
    Dylan-DPC authored Jul 8, 2022
    Configuration menu
    Copy the full SHA
    fea7e45 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#99026 - anall:buffix/clippy-9131, r=xFrednet

    Add test for and fix rust-lang/rust-clippy#9131
    
    This lint seems to have been broken by rust-lang#98446 -- but of course, there was no clippy test for this case at the time.
    
    `expr.span.ctxt().outer_expn_data()` now has `MacroKind::Derive` instead of `MacroKind::Attr` for something like:
    
    ```
    #[derive(Clone, Debug)]
    pub struct UnderscoreInStruct {
        _foo: u32,
    }
    ```
    
    ---
    
    changelog: none
    
    closes: rust-lang/rust-clippy#9131
    Dylan-DPC authored Jul 8, 2022
    Configuration menu
    Copy the full SHA
    e7c69bf View commit details
    Browse the repository at this point in the history