From 74c7f1267b2afe17332ba3aa6b00eb9452404cf3 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Tue, 31 Aug 2021 15:06:59 +0200 Subject: [PATCH] Add explanation for ctfe_backtrace lock --- compiler/rustc_session/src/session.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index f29275bffc4..0f7db69fefe 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -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, /// This tracks where `-Zunleash-the-miri-inside-of-you` was used to get around a