You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#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">
Closesrust-lang#118832.
Copy file name to clipboardexpand all lines: compiler/rustc_driver_impl/messages.ftl
+4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
driver_impl_ice = the compiler unexpectedly panicked. this is a bug.
2
2
driver_impl_ice_bug_report = we would appreciate a bug report: {$bug_report_url}
3
3
driver_impl_ice_bug_report_internal_feature = using internal features is not supported and expected to cause internal compiler errors when used incorrectly
4
+
driver_impl_ice_bug_report_outdated =
5
+
it seems that this compiler `{$version}` is outdated, a newer nightly should have been released in the mean time
6
+
.update = please consider running `rustup update nightly` to update the nightly channel and check if this problem still persists
7
+
.url = if the problem still persists, we would appreciate a bug report: {$bug_report_url}
4
8
driver_impl_ice_exclude_cargo_defaults = some of the compiler flags provided by cargo are hidden
0 commit comments