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 11 pull requests #96087

Merged
merged 26 commits into from
Apr 15, 2022
Merged

Rollup of 11 pull requests #96087

merged 26 commits into from
Apr 15, 2022

Commits on Mar 31, 2022

  1. remove find_use_placement

    A more robust solution to finding where to place use suggestions was added.
    The algorithm uses the AST to find the span for the suggestion so we pass this span
    down to the HIR during lowering and use it.
    
    Signed-off-by: Miguel Guarniz <[email protected]>
    kckeiks committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    8c2353b View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2022

  1. Create 2024 edition

    jhpratt committed Apr 2, 2022
    Configuration menu
    Copy the full SHA
    6b75406 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

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

Commits on Apr 8, 2022

  1. Configuration menu
    Copy the full SHA
    abf2b4c View commit details
    Browse the repository at this point in the history
  2. Add documentation

    jhpratt committed Apr 8, 2022
    Configuration menu
    Copy the full SHA
    a3dd654 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

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

Commits on Apr 14, 2022

  1. Configuration menu
    Copy the full SHA
    21d3f84 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50c339e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7a35c0f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    75287dd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    15abc81 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6511976 View commit details
    Browse the repository at this point in the history
  7. Update issue-92893.stderr

    ouz-a committed Apr 14, 2022
    Configuration menu
    Copy the full SHA
    c20bb1d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5459e66 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2022

  1. Configuration menu
    Copy the full SHA
    f9188cc View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#94457 - jhpratt:stabilize-derive_default_en…

    …um, r=davidtwco
    
    Stabilize `derive_default_enum`
    
    This stabilizes `#![feature(derive_default_enum)]`, as proposed in [RFC 3107](rust-lang/rfcs#3107) and tracked in rust-lang#87517. In short, it permits you to `#[derive(Default)]` on `enum`s, indicating what the default should be by placing a `#[default]` attribute on the desired variant (which must be a unit variant in the interest of forward compatibility).
    
    ```````@rustbot``````` label +S-waiting-on-review +T-lang
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    27e2d81 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#94461 - jhpratt:2024-edition, r=pnkfelix

    Create (unstable) 2024 edition
    
    [On Zulip](https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/Deprecating.20macro.20scoping.20shenanigans/near/272860652), there was a small aside regarding creating the 2024 edition now as opposed to later. There was a reasonable amount of support and no stated opposition.
    
    This change creates the 2024 edition in the compiler and creates a prelude for the 2024 edition. There is no current difference between the 2021 and 2024 editions. Cargo and other tools will need to be updated separately, as it's not in the same repository. This change permits the vast majority of work towards the next edition to proceed _now_ instead of waiting until 2024.
    
    For sanity purposes, I've merged the "hello" UI tests into a single file with multiple revisions. Otherwise we'd end up with a file per edition, despite them being essentially identical.
    
    ````@rustbot```` label +T-lang +S-waiting-on-review
    
    Not sure on the relevant team, to be honest.
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    20bf34f View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#94849 - ouz-a:master4, r=oli-obk

    Check var scope if it exist
    
    Fixes rust-lang#92893.
    
    Added helper function to check the scope of a variable, if it doesn't have a scope call delay_span_bug, which avoids us trying to get a block/scope that doesn't exist.
    
    Had to increase `ROOT_ENTRY_LIMIT` was getting tidy error
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    a32e0f3 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#95194 - kckeiks:update-algo-in-find-use-pla…

    …cement, r=pnkfelix
    
    remove find_use_placement
    
    A more robust solution to finding where to place use suggestions was added in rust-lang#94584.
    The algorithm uses the AST to find the span for the suggestion so we pass this span
    down to the HIR during lowering and use it instead of calling `find_use_placement`
    
    Fixes rust-lang#94941
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    bdbf099 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#95749 - compiler-errors:ambig, r=oli-obk

    only downgrade selection Error -> Ambiguous if type error is in predicate
    
    That is, we don't care if there's a TypeError type in the ParamEnv.
    
    Fixes rust-lang#95408
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    7478294 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#96026 - matthiaskrgr:clippy_compl_1304, r=D…

    …ylan-DPC
    
    couple of clippy::complexity fixes
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    ba9c3a1 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#96027 - matthiaskrgr:clippy_rec, r=fee1-dead

    remove function parameters only used in recursion
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    937b0a0 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#96034 - Gumichocopengin8:test/btree-set, r=…

    …Dylan-DPC
    
    [test] Add test cases of untested functions for BTreeSet
    
    - add [`is_superset()`](https://doc.rust-lang.org/std/collections/struct.BTreeSet.html#method.is_superset) and [`remove()`](https://doc.rust-lang.org/std/collections/struct.BTreeSet.html#method.remove) test cases for BTreeSet since these functions has no test cases.
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    224afad View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#96040 - m-ou-se:futex-u32, r=Amanieu

    Use u32 instead of i32 for futexes.
    
    This changes futexes from i32 to u32. The [Linux man page](https://man7.org/linux/man-pages/man2/futex.2.html) uses `uint32_t` for them, so I'm not sure why I used i32 for them. Maybe because I first used them for thread parkers, where I used -1, 0, and 1 as the states.
    
    (Wasm's `memory.atomic.wait32` does use `i32`, because wasm doesn't support `u32`.)
    
    It doesn't matter much, but using the unsigned type probably results in fewer surprises when shifting bits around or using comparison operators.
    
    r? ```@Amanieu```
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    aa978ad View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#96062 - ehuss:test-termination, r=Dylan-DPC

    docs: Update tests chapter for Termination stabilization
    
    A small update for the docs of `#[test]` functions as a result of the `Termination` stabilization in rust-lang#93840.
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    18a7ce3 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#96065 - TaKO8Ki:use-format-args-capture-a…

    …nd-remove-unnecessary-nested-blocks, r=compiler-errors
    
    Refactor: Use `format-args-capture` and remove unnecessary nested blocks in rustc_typeck
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    fa281fd View commit details
    Browse the repository at this point in the history