about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/errors.rs
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2023-04-10 16:04:14 +0100
committerclubby789 <jamie@hill-daniel.co.uk>2023-04-25 18:59:55 +0100
commit01385136353ac35f16d10bf5890bf0efc80df761 (patch)
tree5832418294e182550a3f42b6ca462515ca0872da /compiler/rustc_resolve/src/errors.rs
parenteeb527602a0293337752f9dc0c63eca3990d8e4e (diff)
downloadrust-01385136353ac35f16d10bf5890bf0efc80df761.tar.gz
rust-01385136353ac35f16d10bf5890bf0efc80df761.zip
Fix static string lints
Diffstat (limited to 'compiler/rustc_resolve/src/errors.rs')
-rw-r--r--compiler/rustc_resolve/src/errors.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/errors.rs b/compiler/rustc_resolve/src/errors.rs
index 6197af105a9..4f9f1c7e856 100644
--- a/compiler/rustc_resolve/src/errors.rs
+++ b/compiler/rustc_resolve/src/errors.rs
@@ -517,3 +517,25 @@ pub(crate) struct ProcMacroSameCrate {
     #[help]
     pub(crate) is_test: bool,
 }
+
+#[derive(Diagnostic)]
+#[diag(resolve_imported_crate)]
+pub(crate) struct CrateImported {
+    #[primary_span]
+    pub(crate) span: Span,
+}
+
+#[derive(Diagnostic)]
+#[diag(resolve_macro_use_extern_crate_self)]
+pub(crate) struct MacroUseExternCrateSelf {
+    #[primary_span]
+    pub(crate) span: Span,
+}
+
+#[derive(Diagnostic)]
+#[diag(resolve_accessible_unsure)]
+#[note]
+pub(crate) struct CfgAccessibleUnsure {
+    #[primary_span]
+    pub(crate) span: Span,
+}