about summary refs log tree commit diff
path: root/compiler/rustc_infer/src/errors.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-10-01 16:11:48 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-10-07 09:50:50 +1100
commit7a9bbd05c42f1c6b0d920a4e741ea28452916c99 (patch)
treed149ca3f3cba6d9e45aef4bb4991de25d140db2d /compiler/rustc_infer/src/errors.rs
parentcfeee7bcbf182a6c22083c7dfb56c6034a65d0a0 (diff)
downloadrust-7a9bbd05c42f1c6b0d920a4e741ea28452916c99.tar.gz
rust-7a9bbd05c42f1c6b0d920a4e741ea28452916c99.zip
Rename `errors/mod.rs` as `errors.rs`.
It's simpler, for this tiny module.
Diffstat (limited to 'compiler/rustc_infer/src/errors.rs')
-rw-r--r--compiler/rustc_infer/src/errors.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/rustc_infer/src/errors.rs b/compiler/rustc_infer/src/errors.rs
new file mode 100644
index 00000000000..76ea9c3433d
--- /dev/null
+++ b/compiler/rustc_infer/src/errors.rs
@@ -0,0 +1,14 @@
+use rustc_macros::Diagnostic;
+use rustc_span::Span;
+
+#[derive(Diagnostic)]
+#[diag(infer_opaque_hidden_type)]
+pub(crate) struct OpaqueHiddenTypeDiag {
+    #[primary_span]
+    #[label]
+    pub span: Span,
+    #[note(infer_opaque_type)]
+    pub opaque_type: Span,
+    #[note(infer_hidden_type)]
+    pub hidden_type: Span,
+}