-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 16 pull requests #96069
Rollup of 16 pull requests #96069
Commits on Mar 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f427698 - Browse repository at this point
Copy the full SHA f427698View commit details
Commits on Mar 23, 2022
-
Optimize RcInnerPtr::inc_strong instruction count
Inspired by this internals thread: https://internals.rust-lang.org/t/rc-optimization-on-64-bit-targets/16362 [The generated assembly is a bit smaller](https://rust.godbolt.org/z/TeTnf6144) and is a more efficient usage of the CPU's instruction cache. `unlikely` doesn't impact any of the small artificial tests I've done, but I've included it in case it might help more complex scenarios when this is inlined.
Configuration menu - View commit details
-
Copy full SHA for 3f7f5e8 - Browse repository at this point
Copy the full SHA 3f7f5e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5dd42b - Browse repository at this point
Copy the full SHA f5dd42bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d14c03 - Browse repository at this point
Copy the full SHA 8d14c03View commit details
Commits on Mar 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9cfdb89 - Browse repository at this point
Copy the full SHA 9cfdb89View commit details -
Configuration menu - View commit details
-
Copy full SHA for c681a88 - Browse repository at this point
Copy the full SHA c681a88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 147e5da - Browse repository at this point
Copy the full SHA 147e5daView commit details
Commits on Mar 26, 2022
-
Stablize
const_extern_fn
for "Rust" and "C"All other ABIs are left unstable for now. cc rust-lang#64926
Configuration menu - View commit details
-
Copy full SHA for 8035796 - Browse repository at this point
Copy the full SHA 8035796View commit details
Commits on Apr 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6b75406 - Browse repository at this point
Copy the full SHA 6b75406View commit details
Commits on Apr 5, 2022
-
Revert "Work around invalid DWARF bugs for fat LTO"
Since September, the toolchain has not been generating reliable DWARF information for static variables when LTO is on. This has affected projects in the embedded space where the use of LTO is typical. In our case, it has kept us from bumping past the 2021-09-22 nightly toolchain lest our debugger break. This has been a pretty dramatic regression for people using debuggers and static variables. See rust-lang#90357 for more info and a repro case. This commit is a mechanical revert of d5de680 from PR rust-lang#89041, which caused the issue. (Note on that PR that the commit's author has requested it be reverted.) I have locally verified that this fixes rust-lang#90357 by restoring the functionality of both the repro case I posted on that bug, and debugger behavior on real programs. There do not appear to be test cases for this in the toolchain; if I've missed them, point me at 'em and I'll update them.
Configuration menu - View commit details
-
Copy full SHA for 98190b7 - Browse repository at this point
Copy the full SHA 98190b7View commit details -
Improve debuginfo test coverage for simple statics.
- Re-enabled basic-types-globals which has been disabled since 2018 - Updated its now-rotted assertions about GDB's output to pass - Rewrote header comment describing some previous state of GDB behavior that didn't match either the checked-in assertions _or_ the current behavior, and so I assume has just been wrong for some time. - Copy-pasta'd the test into a version that uses LTO to check for regression on rust-lang#90357, because I don't see a way to matrix the same test into several build configurations.
Configuration menu - View commit details
-
Copy full SHA for 42af197 - Browse repository at this point
Copy the full SHA 42af197View commit details
Commits on Apr 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7bd22e2 - Browse repository at this point
Copy the full SHA 7bd22e2View commit details
Commits on Apr 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for edeb826 - Browse repository at this point
Copy the full SHA edeb826View commit details
Commits on Apr 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7f945b2 - Browse repository at this point
Copy the full SHA 7f945b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e886dc5 - Browse repository at this point
Copy the full SHA e886dc5View commit details
Commits on Apr 13, 2022
-
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 ```
Configuration menu - View commit details
-
Copy full SHA for 69de213 - Browse repository at this point
Copy the full SHA 69de213View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb905c0 - Browse repository at this point
Copy the full SHA eb905c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c2d57e - Browse repository at this point
Copy the full SHA 7c2d57eView commit details
Commits on Apr 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 21d3f84 - Browse repository at this point
Copy the full SHA 21d3f84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50c339e - Browse repository at this point
Copy the full SHA 50c339eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e78a47 - Browse repository at this point
Copy the full SHA 1e78a47View commit details -
update: actions/checkout@v2 to actions/checkout@v3
update: actions/checkout@v2 to actions/checkout@v3 for all yaml files Revert "update: actions/checkout@v2 to actions/checkout@v3 for all yaml files" This reverts commit 7445e582b900f0f56f5f2bd9036aacab97ef28e9. change GitHub Actions version v2 to v3 change GitHub Actions
Configuration menu - View commit details
-
Copy full SHA for 9d319f3 - Browse repository at this point
Copy the full SHA 9d319f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c20bb1d - Browse repository at this point
Copy the full SHA c20bb1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5459e66 - Browse repository at this point
Copy the full SHA 5459e66View commit details
Commits on Apr 15, 2022
-
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.
Configuration menu - View commit details
-
Copy full SHA for 8f5fd4c - Browse repository at this point
Copy the full SHA 8f5fd4cView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 9646009 - Browse repository at this point
Copy the full SHA 9646009View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a0e3d80 - Browse repository at this point
Copy the full SHA a0e3d80View commit details -
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 }; ```
Configuration menu - View commit details
-
Copy full SHA for 851cb4b - Browse repository at this point
Copy the full SHA 851cb4bView commit details -
Rollup merge of rust-lang#95224 - mjbshaw:patch-1, r=yaahc
Optimize RcInnerPtr::inc_strong()/inc_weak() instruction count Inspired by this internals thread: https://internals.rust-lang.org/t/rc-optimization-on-64-bit-targets/16362 [The generated assembly is a bit smaller](https://rust.godbolt.org/z/TeTnf6144) and is a more efficient usage of the CPU's instruction cache. `unlikely` doesn't impact any of the small artificial tests I've done, but I've included it in case it might help more complex scenarios when this is inlined.
Configuration menu - View commit details
-
Copy full SHA for 3b9b3fb - Browse repository at this point
Copy the full SHA 3b9b3fbView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 4d3e076 - Browse repository at this point
Copy the full SHA 4d3e076View commit details -
Rollup merge of rust-lang#95685 - oxidecomputer:restore-static-dwarf,…
… r=pnkfelix Revert "Work around invalid DWARF bugs for fat LTO" Since September, the toolchain has not been generating reliable DWARF information for static variables when LTO is on. This has affected projects in the embedded space where the use of LTO is typical. In our case, it has kept us from bumping past the 2021-09-22 nightly toolchain lest our debugger break. This has been a pretty dramatic regression for people using debuggers and static variables. See rust-lang#90357 for more info and a repro case. This commit is a mechanical revert of d5de680 from PR rust-lang#89041, which caused the issue. (Note on that PR that the commit's author has requested it be reverted.) I have locally verified that this fixes rust-lang#90357 by restoring the functionality of both the repro case I posted on that bug, and debugger behavior on real programs. There do not appear to be test cases for this in the toolchain; if I've missed them, point me at 'em and I'll update them.
Configuration menu - View commit details
-
Copy full SHA for 7a815c7 - Browse repository at this point
Copy the full SHA 7a815c7View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for ef8cf01 - Browse repository at this point
Copy the full SHA ef8cf01View commit details -
Rollup merge of rust-lang#95908 - compiler-errors:shallow_resolve_ty-…
…inline, r=oli-obk Inline `shallow_resolve_ty` into `ShallowResolver` addresses fixme I found in infcx
Configuration menu - View commit details
-
Copy full SHA for b82ae65 - Browse repository at this point
Copy the full SHA b82ae65View commit details -
Rollup merge of rust-lang#95961 - RalfJung:gather-scatter, r=workingj…
…ubilee implement SIMD gather/scatter via vector getelementptr Fixes rust-lang/portable-simd#271 However, I don't *really* know what I am doing here... Cc `@workingjubilee` `@calebzulawski` I didn't do anything for cranelift -- `@bjorn3` not sure if it's okay for that backend to temporarily break. I'm happy to cherry-pick a patch that adds cranelift support. :)
Configuration menu - View commit details
-
Copy full SHA for 95ec29e - Browse repository at this point
Copy the full SHA 95ec29eView commit details -
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 ```
Configuration menu - View commit details
-
Copy full SHA for df2f5f0 - Browse repository at this point
Copy the full SHA df2f5f0View commit details -
Rollup merge of rust-lang#96026 - matthiaskrgr:clippy_compl_1304, r=D…
…ylan-DPC couple of clippy::complexity fixes
Configuration menu - View commit details
-
Copy full SHA for c2137f3 - Browse repository at this point
Copy the full SHA c2137f3View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for ffe46cd - Browse repository at this point
Copy the full SHA ffe46cdView commit details -
Rollup merge of rust-lang#96035 - Gumichocopengin8:feature/update-git…
…hub-action-version, r=pietroalbini Update GitHub Actions actions/checkout Version v2 -> v3 Update `actions/checkout@v2` to `actions/checkout@v3` because of Node12 will be out of life after Aril 30, 2022 [[Reference](https://nodejs.org/en/about/releases/)]. `actions/xxxx@v3` use Node16 whose support lasts until April 30, 2024.
Configuration menu - View commit details
-
Copy full SHA for 0bde871 - Browse repository at this point
Copy the full SHA 0bde871View commit details -
Rollup merge of rust-lang#96047 - lnicola:rust-analyzer-2022-04-14, r…
…=lnicola ⬆️ rust-analyzer r? `@ghost`
Configuration menu - View commit details
-
Copy full SHA for 0caff27 - Browse repository at this point
Copy the full SHA 0caff27View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 21b45bf - Browse repository at this point
Copy the full SHA 21b45bfView commit details