about summary refs log tree commit diff
path: root/compiler/rustc_session/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-10 00:02:43 +0000
committerbors <bors@rust-lang.org>2023-02-10 00:02:43 +0000
commita12d31d5a681d70f277b4fbf6cafe22bae876ea7 (patch)
treee91ce326e25a67155c2ebeb582a25656ebde3810 /compiler/rustc_session/src/errors.rs
parent8996ea93b6e554148c4286e62b613f12a3ee505c (diff)
parent54b26f49e6d30aefcbf206ee5cfcf6122503553c (diff)
downloadrust-a12d31d5a681d70f277b4fbf6cafe22bae876ea7.tar.gz
rust-a12d31d5a681d70f277b4fbf6cafe22bae876ea7.zip
Auto merge of #102963 - ilammy:xray-basic, r=estebank
Add `-Z instrument-xray` flag

Implement MCP https://github.com/rust-lang/compiler-team/issues/561, adding `-Z instrument-xray` flag which enables XRay instrumentation in LLVM.
Diffstat (limited to 'compiler/rustc_session/src/errors.rs')
-rw-r--r--compiler/rustc_session/src/errors.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/errors.rs b/compiler/rustc_session/src/errors.rs
index 8e8fba5e236..c851145440b 100644
--- a/compiler/rustc_session/src/errors.rs
+++ b/compiler/rustc_session/src/errors.rs
@@ -72,6 +72,12 @@ pub struct ProfileSampleUseFileDoesNotExist<'a> {
 pub struct TargetRequiresUnwindTables;
 
 #[derive(Diagnostic)]
+#[diag(session_instrumentation_not_supported)]
+pub struct InstrumentationNotSupported {
+    pub us: String,
+}
+
+#[derive(Diagnostic)]
 #[diag(session_sanitizer_not_supported)]
 pub struct SanitizerNotSupported {
     pub us: String,