Skip to content

Commit

Permalink
Add explanation for ctfe_backtrace lock
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Aug 31, 2021
1 parent d988278 commit b88ad42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/rustc_session/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ pub struct Session {
/// Tracks the current behavior of the CTFE engine when an error occurs.
/// Options range from returning the error without a backtrace to returning an error
/// and immediately printing the backtrace to stderr.
/// The `Lock` is only used by miri to allow setting `ctfe_backtrace` after analysis when
/// `MIRI_BACKTRACE` is set. This makes it only apply to miri's errors and not to all CTFE
/// errors.
pub ctfe_backtrace: Lock<CtfeBacktrace>,

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

0 comments on commit b88ad42

Please sign in to comment.