about summary refs log tree commit diff
path: root/compiler/rustc_infer/src/errors/mod.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 14:47:56 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 14:47:56 +1000
commit688792715bb1e3c420e896b62ee3e825dce4c174 (patch)
tree3453416688c1547da39c95e23141e93f2b8ed99c /compiler/rustc_infer/src/errors/mod.rs
parent46fe09f3f3dd724a9a9f1af50f3408a4f8dea25a (diff)
downloadrust-688792715bb1e3c420e896b62ee3e825dce4c174.tar.gz
rust-688792715bb1e3c420e896b62ee3e825dce4c174.zip
Add `warn(unreachable_pub)` to `rustc_infer`.
Diffstat (limited to 'compiler/rustc_infer/src/errors/mod.rs')
-rw-r--r--compiler/rustc_infer/src/errors/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/errors/mod.rs b/compiler/rustc_infer/src/errors/mod.rs
index 1a5c0137219..76ea9c3433d 100644
--- a/compiler/rustc_infer/src/errors/mod.rs
+++ b/compiler/rustc_infer/src/errors/mod.rs
@@ -3,7 +3,7 @@ use rustc_span::Span;
 
 #[derive(Diagnostic)]
 #[diag(infer_opaque_hidden_type)]
-pub struct OpaqueHiddenTypeDiag {
+pub(crate) struct OpaqueHiddenTypeDiag {
     #[primary_span]
     #[label]
     pub span: Span,