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 #96073

Closed
wants to merge 19 commits into from
Closed

Commits on Mar 16, 2022

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

Commits on Mar 24, 2022

  1. Configuration menu
    Copy the full SHA
    9cfdb89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c681a88 View commit details
    Browse the repository at this point in the history
  3. Add test

    bjorn3 committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    147e5da View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2022

  1. Stablize const_extern_fn for "Rust" and "C"

    All other ABIs are left unstable for now.
    
    cc rust-lang#64926
    Aaron1011 committed Mar 26, 2022
    Configuration menu
    Copy the full SHA
    8035796 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. Fix x test --doc --stage 0 library/std

    I managed to break this in rust-lang#95449.
    I am not quite sure why this is the correct fix, but it doesn't break `doc --stage 0`
    and is strictly closer to the previous behavior.
    
    Previously, rustdoc would error with strange issues because of the mismatched sysroot:
    ```
    error[E0460]: found possibly newer version of crate `std` which `rustc_span` depends on
      --> /home/jnelson/rust-lang/rust/compiler/rustc_lint_defs/src/lib.rs:14:5
       |
    14 | use rustc_span::{sym, symbol::Ident, Span, Symbol};
       |     ^^^^^^^^^^
       |
       = note: perhaps that crate needs to be recompiled?
       = note: the following crate versions were found:
               crate `std`: /home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ff9290e971253a38.rlib
               crate `std`: /home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ff9290e971253a38.so
               crate `rustc_span`: /home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_span-ed11dce30c1766f9.rlib
    ```
    jyn514 committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    69de213 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2022

  1. 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

Commits on Apr 15, 2022

  1. Rollup merge of rust-lang#93969 - bjorn3:codegen_backend_dep_info, r=…

    …pnkfelix
    
    Only add codegen backend to dep info if -Zbinary-dep-depinfo is used
    
    I am currently migrating the cg_clif build system from using a binary linked to the codegen backend as rustc replacement to passing `-Zcodegen-backend` instead. Without this PR this would force cargo to rebuild the sysroot on any change to the codegen backend even if I explicitly specify that I want it to be preserved, which would make development of cg_clif a lot slower. If you still want to have changes to the codegen backend invalidate the cargo build cache you can explicitly specify `-Zbinary-dep-depinfo`.
    
    cc ``@eddyb`` as the codegen backend was initially added to the depinfo for rust-gpu.
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    81c26e4 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
    32a66fc 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
    405766d 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
    9ff6d66 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#94985 - dtolnay:constattr, r=pnkfelix

    Parse inner attributes on inline const block
    
    According to rust-lang#84414 (comment), inner attributes are intended to be supported *"in all containers for statements (or some subset of statements)"*.
    
    This PR adds inner attribute parsing and pretty-printing for inline const blocks (rust-lang#76001), which contain statements just like an unsafe block or a loop body.
    
    ```rust
    let _ = const {
        #![allow(...)]
    
        let x = ();
        x
    };
    ```
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    dda2112 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#95346 - Aaron1011:stablize-const-extern-fn,…

    … r=pnkfelix
    
    Stablize `const_extern_fn` for "Rust" and "C"
    
    All other ABIs are left unstable for now.
    
    cc rust-lang#64926
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    0190a68 View commit details
    Browse the repository at this point in the history
  7. 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
    33e7edc View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#95993 - jyn514:fix-stage0-doctests, r=Mark-…

    …Simulacrum
    
    Fix `x test --doc --stage 0 library/std`
    
    I managed to break this in rust-lang#95449.
    I am not quite sure why this is the correct fix, but it doesn't break `doc --stage 0`
    and is strictly closer to the previous behavior.
    
    Previously, rustdoc would error with strange issues because of the mismatched sysroot:
    ```
    error[E0460]: found possibly newer version of crate `std` which `rustc_span` depends on
      --> /home/jnelson/rust-lang/rust/compiler/rustc_lint_defs/src/lib.rs:14:5
       |
    14 | use rustc_span::{sym, symbol::Ident, Span, Symbol};
       |     ^^^^^^^^^^
       |
       = note: perhaps that crate needs to be recompiled?
       = note: the following crate versions were found:
               crate `std`: /home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ff9290e971253a38.rlib
               crate `std`: /home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ff9290e971253a38.so
               crate `rustc_span`: /home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_span-ed11dce30c1766f9.rlib
    ```
    Dylan-DPC authored Apr 15, 2022
    Configuration menu
    Copy the full SHA
    ced4156 View commit details
    Browse the repository at this point in the history