diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-05 19:53:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-05 19:53:20 +0100 |
| commit | 1b30268e5b7e78613bcb2c491e0b82ff1bae8b43 (patch) | |
| tree | 16c1e5211be73610e1adc8b4a12ddf0aa47b5ec5 /tests/rustdoc-js-std/parser-errors.js | |
| parent | 9153451a912b08a84ce313fcdcdcbda2ab92a600 (diff) | |
| parent | 9c963fc5bcc5915db1b3f01c60d08add08504968 (diff) | |
| download | rust-1b30268e5b7e78613bcb2c491e0b82ff1bae8b43.tar.gz rust-1b30268e5b7e78613bcb2c491e0b82ff1bae8b43.zip | |
Rollup merge of #121658 - jieyouxu:ice-outdated-nightly, r=oli-obk
Hint user to update nightly on ICEs produced from outdated nightly
This is a conservative best-effort approach to detect a potentially outdated nightly; it will fallback to the regular ICE-reporting if any of the following cases are true:
- Channel is not nightly
- Version information is not available
- Version date is not parseable as a YYYY-MM-DD or is missing
- System time is at least 36 hours ahead of the user's nightly release datetime.
- Any internal features are used.
Note that I'm not sure how to make a test for this: I tested this manually by `CFG_VER_DATE="2020-02-02" ./x build library --stage 1`, and also changing the channel detection in `rustc_driver_impl` from `Some("nightly")` to `Some("nightly" | "dev")`, and then running `rustc +stage1 test.rs -Ztreat-err-as-bug=1` with a non-existent `test.rs`.
<img width="1145" alt="Screenshot 2024-02-27 at 01 12 28" src="https://github.com/rust-lang/rust/assets/39484203/eff6af2e-4b19-4a70-af57-cd739ecf0e84">
Closes #118832.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
