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 5 pull requests #97860

Merged
merged 10 commits into from
Jun 8, 2022
Merged

Rollup of 5 pull requests #97860

merged 10 commits into from
Jun 8, 2022

Commits on Jun 5, 2022

  1. Configuration menu
    Copy the full SHA
    8f1fff0 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. Configuration menu
    Copy the full SHA
    b13eb61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6277c3a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5dd5244 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2022

  1. Configuration menu
    Copy the full SHA
    b7ed860 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#97595 - ouz-a:issue-97381, r=compiler-errors

    Remove unwrap from get_vtable
    
    This avoids ICE on issue rust-lang#97381 I think the bug is a bit deeper though, it compiles fine when `v` is `&v` which makes me think `Deref` is causing some issue with borrowck but it's fine I guess since this thing crashes since `nightly-2020-09-17` 😅
    Dylan-DPC authored Jun 8, 2022
    Configuration menu
    Copy the full SHA
    148a44a View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#97597 - tmiasko:simplify-locals-side-effect…

    …s, r=RalfJung,JakobDegen
    
    Preserve unused pointer to address casts
    
    Fixes rust-lang#97421.
    
    cc `@RalfJung`
    Dylan-DPC authored Jun 8, 2022
    Configuration menu
    Copy the full SHA
    d380b45 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#97819 - compiler-errors:use-import, r=wesle…

    …ywiser
    
    Recover `import` instead of `use` in item
    
    When we definitely don't have a macro invocation (i.e. when we don't have `import ::`), then it's more productive to parse `import` as if it was incorrectly mistaken for `use`.
    
    Not sure if this needs to be a verbose suggestion, but it renders strangely when it's not verbose:
    ```
    error: expected item, found `import`
     --> /home/michael/test.rs:1:1
      |
    1 | import std::{io::{self, Write}, rc::Rc};
      | ^^^^^^ help: items are imported using the `use` keyword: `use`
    ```
    
    Happy to change it to `span_suggestion` instead of `span_suggestion_verbose` though.
    
    Fixes rust-lang#97788
    Dylan-DPC authored Jun 8, 2022
    Configuration menu
    Copy the full SHA
    a64a982 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#97823 - compiler-errors:missing-comma-match…

    …-arm, r=estebank
    
    Recover missing comma after match arm
    
    If we're missing a comma after a match arm expression, try parsing another pattern and a following `=>`. If we find both of those, then recover by suggesting to insert a `,`.
    
    Fixes rust-lang#80112
    Dylan-DPC authored Jun 8, 2022
    Configuration menu
    Copy the full SHA
    a90c5a3 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#97851 - saethlin:use-repr-c, r=thomcc

    Use repr(C) when depending on struct layout in ptr tests
    
    The test depends on the layout of this struct `Pair`, so it should use `repr(C)` instead of the default `repr(Rust)`.
    Dylan-DPC authored Jun 8, 2022
    Configuration menu
    Copy the full SHA
    1660b4b View commit details
    Browse the repository at this point in the history