summary refs log tree commit diff
path: root/compiler/rustc_expand/src/errors.rs
diff options
context:
space:
mode:
authorAndrew Zhogin <andrew.zhogin@gmail.com>2024-01-11 01:36:05 +0700
committerAndrew Zhogin <andrew.zhogin@gmail.com>2024-01-17 23:18:14 +0700
commit8507f5105bb5294d802c38918b0b21916b376c16 (patch)
treee8237b1fce01892985eb6418b9d9d766de765984 /compiler/rustc_expand/src/errors.rs
parentbf2637f4e89aab364d7ab28deb09820363bef86d (diff)
downloadrust-8507f5105bb5294d802c38918b0b21916b376c16.tar.gz
rust-8507f5105bb5294d802c38918b0b21916b376c16.zip
Improved collapse_debuginfo attribute, added command-line flag (no|external|yes)
Diffstat (limited to 'compiler/rustc_expand/src/errors.rs')
-rw-r--r--compiler/rustc_expand/src/errors.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/errors.rs b/compiler/rustc_expand/src/errors.rs
index 2b43fae6852..4a1c00f0104 100644
--- a/compiler/rustc_expand/src/errors.rs
+++ b/compiler/rustc_expand/src/errors.rs
@@ -59,6 +59,13 @@ pub(crate) struct ResolveRelativePath {
 }
 
 #[derive(Diagnostic)]
+#[diag(expand_collapse_debuginfo_illegal)]
+pub(crate) struct CollapseMacroDebuginfoIllegal {
+    #[primary_span]
+    pub span: Span,
+}
+
+#[derive(Diagnostic)]
 #[diag(expand_macro_const_stability)]
 pub(crate) struct MacroConstStability {
     #[primary_span]