Skip to content

Commit 74c7f12

Browse files
committed
Add explanation for ctfe_backtrace lock
1 parent b86a2ee commit 74c7f12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_session/src/session.rs

+3
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ pub struct Session {
190190
/// Tracks the current behavior of the CTFE engine when an error occurs.
191191
/// Options range from returning the error without a backtrace to returning an error
192192
/// and immediately printing the backtrace to stderr.
193+
/// The `Lock` is only used by miri to allow setting `ctfe_backtrace` after analysis when
194+
/// `MIRI_BACKTRACE` is set. This makes it only apply to miri's errors and not to all CTFE
195+
/// errors.
193196
pub ctfe_backtrace: Lock<CtfeBacktrace>,
194197

195198
/// This tracks where `-Zunleash-the-miri-inside-of-you` was used to get around a

0 commit comments

Comments
 (0)