File tree 3 files changed +7
-28
lines changed
compiler/rustc_driver_impl
3 files changed +7
-28
lines changed Original file line number Diff line number Diff line change 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_internal_feature_outdated =
5
- using internal features is not supported and expected to cause internal compiler errors when used incorrectly
6
- .outdated = it seems this '{ $version } ' is outdated, a newer nightly should have been released in the mean time
7
- .update = please consider running `rustup update nightly` to update the nightly channel and check if this problem still persists
8
4
driver_impl_ice_bug_report_outdated =
9
5
it seems this '{ $version } ' is outdated, a newer nightly should have been released in the mean time
10
6
.update = please consider running `rustup update nightly` to update the nightly channel and check if this problem still persists
Original file line number Diff line number Diff line change @@ -1415,21 +1415,14 @@ fn report_ice(
1415
1415
&& let ver_datetime = OffsetDateTime :: new_utc( ver_date, Time :: MIDNIGHT )
1416
1416
&& let system_datetime = OffsetDateTime :: from( SystemTime :: now( ) )
1417
1417
&& system_datetime. checked_sub( 36 . hours( ) ) . is_some_and( |d| d > ver_datetime)
1418
+ && !using_internal_features. load( std:: sync:: atomic:: Ordering :: Relaxed )
1418
1419
{
1419
- if using_internal_features. load( std:: sync:: atomic:: Ordering :: Relaxed ) {
1420
- dcx. emit_note( session_diagnostics:: IceBugReportInternalFeatureOutdated {
1421
- version,
1422
- note_update: ( ) ,
1423
- note_outdated: ( ) ,
1424
- } ) ;
1425
- } else {
1426
- dcx. emit_note( session_diagnostics:: IceBugReportOutdated {
1427
- version,
1428
- bug_report_url,
1429
- note_update: ( ) ,
1430
- note_url: ( ) ,
1431
- } ) ;
1432
- }
1420
+ dcx. emit_note( session_diagnostics:: IceBugReportOutdated {
1421
+ version,
1422
+ bug_report_url,
1423
+ note_update: ( ) ,
1424
+ note_url: ( ) ,
1425
+ } ) ;
1433
1426
} else {
1434
1427
if using_internal_features. load( std:: sync:: atomic:: Ordering :: Relaxed ) {
1435
1428
dcx. emit_note( session_diagnostics:: IceBugReportInternalFeature ) ;
Original file line number Diff line number Diff line change @@ -57,16 +57,6 @@ pub(crate) struct IceBugReportOutdated<'a> {
57
57
pub note_url : ( ) ,
58
58
}
59
59
60
- #[ derive( Diagnostic ) ]
61
- #[ diag( driver_impl_ice_bug_report_internal_feature_outdated) ]
62
- pub ( crate ) struct IceBugReportInternalFeatureOutdated < ' a > {
63
- pub version : & ' a str ,
64
- #[ note( driver_impl_outdated) ]
65
- pub note_outdated : ( ) ,
66
- #[ note( driver_impl_update) ]
67
- pub note_update : ( ) ,
68
- }
69
-
70
60
#[ derive( Diagnostic ) ]
71
61
#[ diag( driver_impl_ice_version) ]
72
62
pub ( crate ) struct IceVersion < ' a > {
You can’t perform that action at this time.
0 commit comments