We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 17cef3d + f7e4803 commit 314a3abCopy full SHA for 314a3ab
1 file changed
compiler/rustc_hir/src/attrs/data_structures.rs
@@ -947,6 +947,13 @@ pub enum AttributeKind {
947
directive: Option<Box<OnUnimplementedDirective>>,
948
},
949
950
+ /// Represents `#[rustc_on_unimplemented]` and `#[diagnostic::on_unimplemented]`.
951
+ OnUnimplemented {
952
+ span: Span,
953
+ /// None if the directive was malformed in some way.
954
+ directive: Option<Box<OnUnimplementedDirective>>,
955
+ },
956
+
957
/// Represents `#[optimize(size|speed)]`
958
Optimize(OptimizeAttr, Span),
959
0 commit comments