-
Notifications
You must be signed in to change notification settings - Fork 32
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
Automated pull from upstream master
#78
Commits on Oct 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 51e22be - Browse repository at this point
Copy the full SHA 51e22beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 40556b9 - Browse repository at this point
Copy the full SHA 40556b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a119158 - Browse repository at this point
Copy the full SHA a119158View commit details
Commits on Oct 30, 2023
-
When encountering unclosed delimiters during parsing, check for diff …
…markers Fix #116252.
Configuration menu - View commit details
-
Copy full SHA for 50ca5ef - Browse repository at this point
Copy the full SHA 50ca5efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e5b2da - Browse repository at this point
Copy the full SHA 1e5b2daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c7cf83 - Browse repository at this point
Copy the full SHA 5c7cf83View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fe7d17 - Browse repository at this point
Copy the full SHA 2fe7d17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8afb40b - Browse repository at this point
Copy the full SHA 8afb40bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e10fe9 - Browse repository at this point
Copy the full SHA 1e10fe9View commit details -
Add a few utility functions as well and extend most `mir` and `ty` ADTs to implement `PartialEq` and `Eq`.
Configuration menu - View commit details
-
Copy full SHA for af7472e - Browse repository at this point
Copy the full SHA af7472eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48491c1 - Browse repository at this point
Copy the full SHA 48491c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b106167 - Browse repository at this point
Copy the full SHA b106167View commit details -
Configuration menu - View commit details
-
Copy full SHA for c523672 - Browse repository at this point
Copy the full SHA c523672View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8868af - Browse repository at this point
Copy the full SHA e8868afView commit details -
Configuration menu - View commit details
-
Copy full SHA for add09e6 - Browse repository at this point
Copy the full SHA add09e6View commit details
Commits on Oct 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for dccf10e - Browse repository at this point
Copy the full SHA dccf10eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b8906b - Browse repository at this point
Copy the full SHA 8b8906bView commit details -
Auto merge of #117419 - compiler-errors:gen, r=oli-obk
Some more coroutine renamings a few places where `gen_` names leaked through but should be coroutine. r? oli-obk
Configuration menu - View commit details
-
Copy full SHA for ffb7ed9 - Browse repository at this point
Copy the full SHA ffb7ed9View commit details -
Auto merge of #117377 - dtolnay:deprecatedsince, r=cjgillot
Store #[deprecated] attribute's `since` value in parsed form This PR implements the first followup bullet listed in rust-lang/rust#117148 (comment). We centralize error handling to the attribute parsing code in `compiler/rustc_attr/src/builtin.rs`, and thereby remove some awkward error codepaths from later phases of compilation that had to make sense of these #\[deprecated\] attributes, namely `compiler/rustc_passes/src/stability.rs` and `compiler/rustc_middle/src/middle/stability.rs`.
Configuration menu - View commit details
-
Copy full SHA for 22b2712 - Browse repository at this point
Copy the full SHA 22b2712View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b7cc9d - Browse repository at this point
Copy the full SHA 5b7cc9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 078144e - Browse repository at this point
Copy the full SHA 078144eView commit details -
coverage: Promote some debug-only checks to always run
These checks should be cheap, so there's little reason for them to be debug-only.
Configuration menu - View commit details
-
Copy full SHA for 8ef67d0 - Browse repository at this point
Copy the full SHA 8ef67d0View commit details -
coverage: Replace impossible
coverage::Error
with assertionsHistorically, these errors existed so that the coverage debug code could dump additional information before reporting a compiler bug. That debug code was removed by #115962, so we can now simplify these methods by making them panic when they detect a bug.
Configuration menu - View commit details
-
Copy full SHA for 6d956a2 - Browse repository at this point
Copy the full SHA 6d956a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c673db - Browse repository at this point
Copy the full SHA 7c673dbView commit details -
Simplify all
require_simd
invocations by moving all of the shared i……nvocation arguments into the macro
Configuration menu - View commit details
-
Copy full SHA for 9a49ef3 - Browse repository at this point
Copy the full SHA 9a49ef3View commit details -
Merge simd size and type extraction into checking whether a type is s…
…imd, as these always go together.
Configuration menu - View commit details
-
Copy full SHA for f8372df - Browse repository at this point
Copy the full SHA f8372dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed27cb0 - Browse repository at this point
Copy the full SHA ed27cb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c748ac1 - Browse repository at this point
Copy the full SHA c748ac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b13e63 - Browse repository at this point
Copy the full SHA 0b13e63View commit details -
Configuration menu - View commit details
-
Copy full SHA for 096196d - Browse repository at this point
Copy the full SHA 096196dView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb91890 - Browse repository at this point
Copy the full SHA cb91890View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae2e211 - Browse repository at this point
Copy the full SHA ae2e211View commit details -
Rollup merge of #116267 - oli-obk:simd_cleanups, r=petrochenkov
Some codegen cleanups around SIMD checks See rust-lang/rust#115933 (comment) for the reason. This PR essentially just deduplicates code by moving it into a macro
Configuration menu - View commit details
-
Copy full SHA for d0833c4 - Browse repository at this point
Copy the full SHA d0833c4View commit details -
Rollup merge of #116712 - estebank:issue-116252, r=petrochenkov
When encountering unclosed delimiters during lexing, check for diff markers Fix #116252.
Configuration menu - View commit details
-
Copy full SHA for 7035c3d - Browse repository at this point
Copy the full SHA 7035c3dView commit details -
Rollup merge of #117416 - compiler-errors:tait-in-bad-body, r=oli-obk
Also consider TAIT to be uncomputable if the MIR body is tainted Not totally sure if this is the best solution. We could, alternatively, look at the hir typeck results and try to take a type from there instead of just falling back to type error, inferring `u8` instead of `{type error}`. Not certain it really matters, though. Happy to iterate on this. Fixes #117413 r? ``@oli-obk`` cc ``@Nadrieril``
Configuration menu - View commit details
-
Copy full SHA for 8daa317 - Browse repository at this point
Copy the full SHA 8daa317View commit details -
Rollup merge of #117421 - Zalathar:error, r=oli-obk,Swatinem
coverage: Replace impossible `coverage::Error` with assertions Historically, these errors existed so that the coverage debug code could dump additional information before reporting a compiler bug. That debug code was removed by #115962, so we can now simplify these methods by making them panic immediately when they detect a bug.
Configuration menu - View commit details
-
Copy full SHA for 793776f - Browse repository at this point
Copy the full SHA 793776fView commit details -
Rollup merge of #117438 - cjgillot:deterministic-error, r=oli-obk
Do not ICE on constant evaluation failure in GVN. Fixes rust-lang/rust#117362
Configuration menu - View commit details
-
Copy full SHA for f623530 - Browse repository at this point
Copy the full SHA f623530View commit details -
Auto merge of #117444 - matthiaskrgr:rollup-43s0spc, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #116267 (Some codegen cleanups around SIMD checks) - #116712 (When encountering unclosed delimiters during lexing, check for diff markers) - #117416 (Also consider TAIT to be uncomputable if the MIR body is tainted) - #117421 (coverage: Replace impossible `coverage::Error` with assertions) - #117438 (Do not ICE on constant evaluation failure in GVN.) r? `@ghost` `@rustbot` modify labels: rollup
Configuration menu - View commit details
-
Copy full SHA for 045f158 - Browse repository at this point
Copy the full SHA 045f158View commit details -
Configuration menu - View commit details
-
Copy full SHA for de83057 - Browse repository at this point
Copy the full SHA de83057View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8eb932d - Browse repository at this point
Copy the full SHA 8eb932dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b4fa0f - Browse repository at this point
Copy the full SHA 8b4fa0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4512f21 - Browse repository at this point
Copy the full SHA 4512f21View commit details -
Auto merge of #117407 - compiler-errors:derive-clone, r=oli-obk
Use derivative for `Clone`/`PartialOrd`/`Ord`/`Hash` in `rustc_type_ir` This uses `derivative` to derive `Clone`/`PartialOrd`/`Ord`/`Hash` for types in `rustc_type_ir`. This doesn't derive `PartialEq`/`Eq` yet, because I have no idea why those are generating slower implementations from derivative.
Configuration menu - View commit details
-
Copy full SHA for d7d9f15 - Browse repository at this point
Copy the full SHA d7d9f15View commit details -
Add support for pre-unix-epoch file dates on Apple platforms (#108277)
Time in UNIX system calls counts from the epoch, 1970-01-01. The timespec struct used in various system calls represents this as a number of seconds and a number of nanoseconds. Nanoseconds are required to be between 0 and 999_999_999, because the portion outside that range should be represented in the seconds field; if nanoseconds were larger than 999_999_999, the seconds field should go up instead. Suppose you ask for the time 1969-12-31, what time is that? On UNIX systems that support times before the epoch, that's seconds=-86400, one day before the epoch. But now, suppose you ask for the time 1969-12-31 23:59:00.1. In other words, a tenth of a second after one minute before the epoch. On most UNIX systems, that's represented as seconds=-60, nanoseconds=100_000_000. The macOS bug is that it returns seconds=-59, nanoseconds=-900_000_000. While that's in some sense an accurate description of the time (59.9 seconds before the epoch), that violates the invariant of the timespec data structure: nanoseconds must be between 0 and 999999999. This causes this assertion in the Rust standard library. So, on macOS, if we get a Timespec value with seconds less than or equal to zero, and nanoseconds between -999_999_999 and -1 (inclusive), we can add 1_000_000_000 to the nanoseconds and subtract 1 from the seconds, and then convert. The resulting timespec value is still accepted by macOS, and when fed back into the OS, produces the same results. (If you set a file's mtime with that timestamp, then read it back, you get back the one with negative nanoseconds again.) Co-authored-by: Josh Triplett <josh@joshtriplett.org>
Configuration menu - View commit details
-
Copy full SHA for a8ece11 - Browse repository at this point
Copy the full SHA a8ece11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77174d3 - Browse repository at this point
Copy the full SHA 77174d3View commit details -
Auto merge of #117450 - oli-obk:rustdoc_verify, r=estebank
Accept less invalid Rust in rustdoc pulled out of rust-lang/rust#117213 where this change was already approved This only affects rustdoc, and has up to [20% perf regressions in rustdoc](rust-lang/rust#117213 (comment)). These are unavoidable, as we are simply doing more checks now, but it's part of the longer term plan of making rustdoc more resistant to ICEs by only accepting valid Rust code.
Configuration menu - View commit details
-
Copy full SHA for 50be229 - Browse repository at this point
Copy the full SHA 50be229View commit details -
Rollup merge of #113241 - poliorcetics:85138-doc-object-safety, r=Gui…
…llaumeGomez rustdoc: Document lack of object safety on affected traits Closes #85138 I saw the issue didn't have any recent activity, if there is another MR for it I missed it. I want the issue to move forward so here is my proposition. It takes some space just before the "Implementors" section and only if the trait is **not** object safe since it is the only case where special care must be taken in some cases and this has the benefit of avoiding generation of HTML in (I hope) the common case.
Configuration menu - View commit details
-
Copy full SHA for 51b275b - Browse repository at this point
Copy the full SHA 51b275bView commit details -
Rollup merge of #117388 - oli-obk:dequerification, r=RalfJung
Turn const_caller_location from a query to a hook blocked on rust-lang/rust#117317 cc `@RalfJung`
Configuration menu - View commit details
-
Copy full SHA for 83990ba - Browse repository at this point
Copy the full SHA 83990baView commit details -
Rollup merge of #117417 - celinval:smir-visitor, r=oli-obk
Add a stable MIR visitor This change also adds a few utility functions as well and extend most `mir` and `ty` ADTs to implement `PartialEq` and `Eq`. Fixes rust-lang/project-stable-mir#32 r? `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for 290daf9 - Browse repository at this point
Copy the full SHA 290daf9View commit details -
Rollup merge of #117439 - lcnr:prepopulate-earlier, r=compiler-errors
prepopulate opaque ty storage before using it doesn't have any significant impact rn afaict, as we freely define new opaque types during MIR typeck. It will be relevant with #117278 and once we stop allowing the definition of new opaques in MIR typeck r? `@compiler-errors`
Configuration menu - View commit details
-
Copy full SHA for 86d69f9 - Browse repository at this point
Copy the full SHA 86d69f9View commit details -
Rollup merge of #117451 - Byron:issue-108277-apple-fix, r=joshtriplett
Add support for pre-unix-epoch file dates on Apple platforms (#108277) Please note that even though the assertion being hit is the same on MacOS and thus similar to what's described in #108277, on MacOS it's possible to convert the numbers such that they are valid, don't hit the assertion and are round-trippable. Doing so effectively fixes the issue on Apple platforms. This PR does not attempt to harden other platforms against negative nanoseconds, which can happen for many reasons including mild filesystem corruption. ---- Time in UNIX system calls counts from the epoch, 1970-01-01. The timespec struct used in various system calls represents this as a number of seconds and a number of nanoseconds. Nanoseconds are required to be between 0 and 999_999_999, because the portion outside that range should be represented in the seconds field; if nanoseconds were larger than 999_999_999, the seconds field should go up instead. Suppose you ask for the time 1969-12-31, what time is that? On UNIX systems that support times before the epoch, that's seconds=-86400, one day before the epoch. But now, suppose you ask for the time 1969-12-31 23:59:00.1. In other words, a tenth of a second after one minute before the epoch. On most UNIX systems, that's represented as seconds=-60, nanoseconds=100_000_000. The macOS bug is that it returns seconds=-59, nanoseconds=-900_000_000. While that's in some sense an accurate description of the time (59.9 seconds before the epoch), that violates the invariant of the timespec data structure: nanoseconds must be between 0 and 999999999. This causes this assertion in the Rust standard library. So, on macOS, if we get a Timespec value with seconds less than or equal to zero, and nanoseconds between -999_999_999 and -1 (inclusive), we can add 1_000_000_000 to the nanoseconds and subtract 1 from the seconds, and then convert. The resulting timespec value is still accepted by macOS, and when fed back into the OS, produces the same results. (If you set a file's mtime with that timestamp, then read it back, you get back the one with negative nanoseconds again.) Co-authored-by: Josh Triplett <josh@joshtriplett.org>
Configuration menu - View commit details
-
Copy full SHA for d06200b - Browse repository at this point
Copy the full SHA d06200bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ea6977 - Browse repository at this point
Copy the full SHA 7ea6977View commit details -
Auto merge of #117462 - weihanglo:update-cargo, r=weihanglo
Update cargo 7 commits in 708383d620e183a9ece69b8fe930c411d83dee27..b4d18d4bd3db6d872892f6c87c51a02999b80802 2023-10-27 21:09:26 +0000 to 2023-10-31 18:19:10 +0000 - refactor(toml): Cleanup noticed on the way to rust-lang/cargo#12801 (rust-lang/cargo#12902) - feat(trim-paths): set env `CARGO_TRIM_PATHS` for build scripts (rust-lang/cargo#12900) - feat: implement RFC 3127 `-Ztrim-paths` (rust-lang/cargo#12625) - docs: clarify config to use vendored source is printed to stdout (rust-lang/cargo#12893) - Improve the margin calculation for the search command's UI (rust-lang/cargo#12890) - Add new packages to [workspace.members] automatically (rust-lang/cargo#12779) - refactor(toml): Decouple parsing from interning system (rust-lang/cargo#12881) r? ghost
Configuration menu - View commit details
-
Copy full SHA for 9d83ac2 - Browse repository at this point
Copy the full SHA 9d83ac2View commit details -
Auto merge of #117459 - matthiaskrgr:rollup-t3osb3c, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #113241 (rustdoc: Document lack of object safety on affected traits) - #117388 (Turn const_caller_location from a query to a hook) - #117417 (Add a stable MIR visitor) - #117439 (prepopulate opaque ty storage before using it) - #117451 (Add support for pre-unix-epoch file dates on Apple platforms (#108277)) r? `@ghost` `@rustbot` modify labels: rollup
Configuration menu - View commit details
-
Copy full SHA for 09ac6e4 - Browse repository at this point
Copy the full SHA 09ac6e4View commit details
Commits on Nov 1, 2023
-
Auto merge of #113970 - cjgillot:assume-all-the-things, r=nikic
Replace switch to unreachable by assume statements `UnreachablePropagation` currently keeps some switch terminators alive in order to ensure codegen can infer the inequalities on the discriminants. This PR proposes to encode those inequalities as `Assume` statements. This allows to simplify MIR further by removing some useless terminators.
Configuration menu - View commit details
-
Copy full SHA for 98f5ebb - Browse repository at this point
Copy the full SHA 98f5ebbView commit details -
remove excluded files from upstream
This commit is generated by `ferrocene/tools/pull-upstream/pull.sh`. The list of excluded files is defined in `.gitattributes`.
Configuration menu - View commit details
-
Copy full SHA for 18168b8 - Browse repository at this point
Copy the full SHA 18168b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0df4dc9 - Browse repository at this point
Copy the full SHA 0df4dc9View commit details -
add newly-added tests to conflict marker allowlist
There were added in 50ca5ef
Configuration menu - View commit details
-
Copy full SHA for d549a5c - Browse repository at this point
Copy the full SHA d549a5cView commit details