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 9 pull requests #122966

Merged
merged 38 commits into from
Mar 24, 2024
Merged

Rollup of 9 pull requests #122966

merged 38 commits into from
Mar 24, 2024

Commits on Mar 12, 2024

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

Commits on Mar 17, 2024

  1. Handle str literals written with ' lexed as lifetime

    Given `'hello world'` and `'1 str', provide a structured suggestion for a valid string literal:
    
    ```
    error[E0762]: unterminated character literal
      --> $DIR/lex-bad-str-literal-as-char-3.rs:2:26
       |
    LL |     println!('hello world');
       |                          ^^^^
       |
    help: if you meant to write a `str` literal, use double quotes
       |
    LL |     println!("hello world");
       |              ~           ~
    ```
    ```
    error[E0762]: unterminated character literal
      --> $DIR/lex-bad-str-literal-as-char-1.rs:2:20
       |
    LL |     println!('1 + 1');
       |                    ^^^^
       |
    help: if you meant to write a `str` literal, use double quotes
       |
    LL |     println!("1 + 1");
       |              ~     ~
    ```
    
    Fix rust-lang#119685.
    estebank committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    982918f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a10b01 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    999a0dc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6f388ef View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ea1883d View commit details
    Browse the repository at this point in the history
  6. fix rustdoc test

    estebank committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    f4d30b1 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

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

Commits on Mar 22, 2024

  1. Configuration menu
    Copy the full SHA
    1fcf2ea View commit details
    Browse the repository at this point in the history
  2. Failing test

    compiler-errors committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    da8a39a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    78ebb93 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2024

  1. add test for rust-lang#99945

    matthiaskrgr committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    12e3629 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2f9a240 View commit details
    Browse the repository at this point in the history
  3. add test for rust-lang#104779 opaque types, patterns and subtyping IC…

    …E: IndexMap: key not found
    
    Fixes rust-lang#104779
    matthiaskrgr committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    e54bff7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f1f287f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f8aeac8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cc422ce View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f2bc9c5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    368bfb2 View commit details
    Browse the repository at this point in the history
  9. rustdoc --test: Prevent reaching the maximum size of command-line b…

    …y using files for arguments if there are too many
    GuillaumeGomez committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    0d3ef80 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    33735d5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    86fe400 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    773084f View commit details
    Browse the repository at this point in the history
  13. address review feedback

    matthiaskrgr committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    9aea37d View commit details
    Browse the repository at this point in the history
  14. Add test in higher-ranked

    Luv-Ray committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    246f746 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    188c46a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5fab016 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    bc4f169 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e74b01e View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2024

  1. Rollup merge of rust-lang#121281 - kadiwa4:test_103626, r=estebank,lcnr

    regression test for rust-lang#103626
    
    I don't know what a descriptive filename for this would be.
    
    Fixes rust-lang#103626
    matthiaskrgr authored Mar 24, 2024
    Configuration menu
    Copy the full SHA
    5167581 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#122168 - compiler-errors:inline-coroutine-b…

    …ody-validation, r=cjgillot
    
    Fix validation on substituted callee bodies in MIR inliner
    
    When inlining a coroutine, we will substitute the MIR body with the args of the call. There is code in the MIR validator that attempts to prevent query cycles, and will use the coroutine body directly when it detects that's the body that's being validated. That means that when inlining a coroutine body that has been substituted, it may no longer be parameterized over the original args of the coroutine, which will lead to substitution ICEs.
    
    Fixes rust-lang#119064
    matthiaskrgr authored Mar 24, 2024
    Configuration menu
    Copy the full SHA
    3d9ee88 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#122217 - estebank:issue-119685, r=fmease

    Handle str literals written with `'` lexed as lifetime
    
    Given `'hello world'` and `'1 str', provide a structured suggestion for a valid string literal:
    
    ```
    error[E0762]: unterminated character literal
      --> $DIR/lex-bad-str-literal-as-char-3.rs:2:26
       |
    LL |     println!('hello world');
       |                          ^^^^
       |
    help: if you meant to write a `str` literal, use double quotes
       |
    LL |     println!("hello world");
       |              ~           ~
    ```
    ```
    error[E0762]: unterminated character literal
      --> $DIR/lex-bad-str-literal-as-char-1.rs:2:20
       |
    LL |     println!('1 + 1');
       |                    ^^^^
       |
    help: if you meant to write a `str` literal, use double quotes
       |
    LL |     println!("1 + 1");
       |              ~     ~
    ```
    
    Fix rust-lang#119685.
    matthiaskrgr authored Mar 24, 2024
    Configuration menu
    Copy the full SHA
    1164c27 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#122379 - RalfJung:int2ptr-transmute, r=m-ou-se

    transmute: caution against int2ptr transmutation
    
    This came up in rust-lang#121282.
    Cc ```@saethlin``` ```@scottmcm```
    
    Eventually we'll add a proper description of provenance that we can reference, but that's a bunch of work and it's unclear who will have the time to do that when. Meanwhile, let's at least do what we can without mentioning provenance explicitly.
    matthiaskrgr authored Mar 24, 2024
    Configuration menu
    Copy the full SHA
    2dcc968 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#122840 - GuillaumeGomez:rustdoc-test-too-ma…

    …ny-args, r=notriddle,Urgau,jieyouxu
    
    `rustdoc --test`: Prevent reaching the maximum size of command-line by using files for arguments if there are too many
    
    Fixes rust-lang#122722.
    
    Thanks to this I discovered that rust was using ``@`` to add arguments from a file, quite convenient.
    
    If there are too many `cfg` arguments given to `rustdoc --test`, it'll now put them into a temporary file and passing it as argument to the rustc command.
    
    I added a test with 100_000 `cfg` arguments to ensure it'll not break again.
    
    r? `@notrid`
    matthiaskrgr authored Mar 24, 2024
    Configuration menu
    Copy the full SHA
    73038c0 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#122907 - compiler-errors:uniquify-reerror, …

    …r=lcnr
    
    Uniquify `ReError` on input mode in canonicalizer
    
    See test descr
    
    Fixes rust-lang#122861
    
    r? lcnr
    matthiaskrgr authored Mar 24, 2024
    Configuration menu
    Copy the full SHA
    cb03714 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#122942 - Luv-Ray:master, r=lcnr

    Add test in higher ranked subtype
    
    I'm a beginner in this repository, and there are some things I'm not sure about:
    
    - Is it okay that there is a warning:
    ```
    rustc_infer::infer::relate::generalize may incompletely handle alias type: AliasTy { args: [?1t, '^0.Named(DefId(0:15 ~ structually_relate_aliases[de75]::{impl#1}::'a), "'a")], def_id: DefId(0:5 ~ structually_relate_aliases[de75]::ToUnit::Unit) }
    ```
    - Is it okay that there are two duplicate errors in the same line?
    - Did I put the test in the right place?
    
    Any suggestions would be appreciated.
    
    Fixes rust-lang#121649
    matthiaskrgr authored Mar 24, 2024
    Configuration menu
    Copy the full SHA
    d8c2242 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2463ad0 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#122963 - RalfJung:core-panicking, r=m-ou-se

    core/panicking: fix outdated comment
    
    Looks like this function got renamed/changed at some point and the comment did not get updated.
    
    r? `@m-ou-se`
    matthiaskrgr authored Mar 24, 2024
    Configuration menu
    Copy the full SHA
    6f16b41 View commit details
    Browse the repository at this point in the history