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 #141480 - jyn514:treat-err-as-bug, r=jieyouxu
document some -Z flags as living in the rustc-dev-guide
i was looking for these but didn't find them at first; add a breadcrumb so people know where to look
This feature is perma-unstable and has no tracking issue.
4
+
5
+
------------------------
6
+
7
+
This flag converts all [`span_delayed_bug()`] calls to [`bug!`] calls, exiting the compiler immediately and allowing you to generate a backtrace of where the delayed bug occurred.
8
+
For full documentation, see [the rustc-dev-guide][dev-guide-delayed].
This feature is perma-unstable and has no tracking issue.
4
+
5
+
------------------------
6
+
7
+
This flag prints the source code span in the compiler where a diagnostic was generated, respecting [`#[track_caller]`][track_caller]. Note that this may be different from the place it was emitted.
8
+
For full documentation, see [the rustc-dev-guide][dev-guide-track-diagnostics].
This feature is perma-unstable and has no tracking issue.
4
+
5
+
------------------------
6
+
7
+
This flag converts the selected error to a [`bug!`] call, exiting the compiler immediately and allowing you to generate a backtrace of where the error occurred.
8
+
For full documentation, see [the rustc-dev-guide][dev-guide-backtrace].
9
+
10
+
Note that the compiler automatically sets `RUST_BACKTRACE=1` for itself, and so you do not need to set it yourself when using this flag.
0 commit comments