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 8 pull requests #119557

Closed
wants to merge 19 commits into from

Commits on Dec 21, 2023

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

Commits on Dec 26, 2023

  1. Configuration menu
    Copy the full SHA
    0f9baa8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4bf2794 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2023

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

Commits on Dec 29, 2023

  1. bootstrap: Move -Clto= setting from Rustc::run to rustc_cargo

    It prevents a full rebuild of stage 1 compiler when issuing "x.py test"
    with rust.lto != thin-local in config.toml.
    xry111 committed Dec 29, 2023
    Configuration menu
    Copy the full SHA
    786e0bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a08ba6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    71dacdf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7eeaaa2 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2024

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

Commits on Jan 3, 2024

  1. Configuration menu
    Copy the full SHA
    695a02e View commit details
    Browse the repository at this point in the history
  2. Recover parentheses in range patterns

    Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
    ShE3py and fmease committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    4e0badd View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#119184 - Rajveer100:branch-for-issue-118752…

    …, r=davidtwco
    
    Switch from using `//~ERROR` annotations with `--error-format` to `error-pattern`
    
    Fixes rust-lang#118752
    
    As noticed by `@jyn514` while working on a patch, tests failed due to `//~ERROR` annotations used in combination with the older `--error-format` which is now `error-pattern`.
    matthiaskrgr committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    7aaa1eb View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#119325 - RalfJung:custom-mir, r=compiler-er…

    …rors
    
    custom mir: make it clear what the return block is
    
    Custom MIR recently got support for specifying the "unwind action", so now there's two things coming after the actual call part of `Call` terminators. That's not very self-explaining so I propose we change the syntax to imitate keyword arguments:
    ```
    Call(popped = Vec::pop(v), ReturnTo(drop), UnwindContinue())
    ```
    
    Also fix some outdated docs and add some docs to `Call` and `Drop`.
    matthiaskrgr committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    2d62db7 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#119391 - DaniPopes:catch-flatten, r=davidtwco

    Use Result::flatten in catch_with_exit_code
    matthiaskrgr committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    5903e6a View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#119397 - ShE3py:pat-range-paren-recovery, r…

    …=fmease
    
    Recover parentheses in range patterns
    
    Before:
    ```rs
    match n {
        (0).. => (),
        _ => ()
    }
    ```
    ```
    error: expected one of `=>`, `if`, or `|`, found `..`
     --> src/lib.rs:3:12
      |
    3 |         (0).. => (),
      |            ^^ expected one of `=>`, `if`, or `|`
      ```
     After:
    ```
    error: range pattern bounds cannot have parentheses
     --> main.rs:3:5
      |
    3 |     (0).. => (),
      |     ^ ^
      |
    help: remove these parentheses
      |
    3 -     (0).. => (),
    3 +     0.. => (),
      |
    ```
    
    This sets the groundwork for rust-lang#118625, which will extend the recovery to expressions like `(0 + 1)..` where users may tend to add parentheses to avoid dealing with precedence.
    
    ---
    
    `@rustbot` label +A-parser +A-patterns +A-diagnostics
    matthiaskrgr committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    39b4731 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#119414 - xry111:xry111/lto-test, r=Mark-Sim…

    …ulacrum
    
    bootstrap: Move -Clto= setting from Rustc::run to rustc_cargo
    
    It prevents a full rebuild of stage 1 compiler when issuing "x.py test" with rust.lto != thin-local in config.toml.
    matthiaskrgr committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    048081c View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#119417 - compiler-errors:closure-checking, …

    …r=davidtwco
    
    Uplift some miscellaneous coroutine-specific machinery into `check_closure`
    
    This PR uplifts some of the logic in `check_fn` that is specific to checking coroutines, which always flows through `check_closure`.
    
    This is just some miscellaneous clean up that I've wanted to do, especially because I'm poking around this code to make it work for async closures.
    matthiaskrgr committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    83a3441 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#119527 - klensy:ordering, r=compiler-errors

    don't reexport atomic::ordering via rustc_data_structures, use std import
    
    This looks simpler.
    matthiaskrgr committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    82ec223 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#119540 - fmease:no-effect-args-inside-dyn-t…

    …rait, r=compiler-errors
    
    Don't synthesize host effect args inside trait object types
    
    While we were indeed emitting an error for `~const` & `const` trait bounds in trait object types, we were still synthesizing host effect args for them.
    
    Since we don't record the original trait bound modifiers for dyn-Trait in `hir::TyKind::TraitObject` (unlike we do for let's say impl-Trait, `hir::TyKind::OpaqueTy`), AstConv just assumes `ty::BoundConstness::NotConst` in `conv_object_ty_poly_trait_ref` which given `<host> dyn ~const NonConstTrait` resulted in us not realizing that `~const` was used on a non-const trait which lead to a failed assertion in the end.
    
    Instead of updating `hir::TyKind::TraitObject` to track this kind of information, just strip the user-provided constness (similar to rust-lang#119505).
    
    Fixes rust-lang#119524.
    matthiaskrgr committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    c5e375c View commit details
    Browse the repository at this point in the history