about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/lints.rs
diff options
context:
space:
mode:
authorDavid Mládek <david.mladek.cz@gmail.com>2025-07-12 16:44:34 +0200
committerDavid Mládek <david.mladek.cz@gmail.com>2025-07-15 15:44:25 +0200
commit8b868fa534a8b660a5b8051a5c883d4c15c5b70e (patch)
tree4d08723737ccb188c243207aef8ccdde1e28e493 /compiler/rustc_lint/src/lints.rs
parent4a77a62e5611890dd275e17de0fb1694e4ff9a28 (diff)
downloadrust-8b868fa534a8b660a5b8051a5c883d4c15c5b70e.tar.gz
rust-8b868fa534a8b660a5b8051a5c883d4c15c5b70e.zip
Implement resolver warnings about reexporting private dependencies
Diffstat (limited to 'compiler/rustc_lint/src/lints.rs')
-rw-r--r--compiler/rustc_lint/src/lints.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs
index 21148833eaf..fc3c1073259 100644
--- a/compiler/rustc_lint/src/lints.rs
+++ b/compiler/rustc_lint/src/lints.rs
@@ -3081,6 +3081,14 @@ pub(crate) struct HiddenGlobReexports {
 }
 
 #[derive(LintDiagnostic)]
+#[diag(lint_reexport_private_dependency)]
+pub(crate) struct ReexportPrivateDependency {
+    pub name: String,
+    pub kind: String,
+    pub krate: Symbol,
+}
+
+#[derive(LintDiagnostic)]
 #[diag(lint_unnecessary_qualification)]
 pub(crate) struct UnusedQualifications {
     #[suggestion(style = "verbose", code = "", applicability = "machine-applicable")]