Skip to content

Commit 314a3ab

Browse files
committed
Merge branch 'port_on_unimplemented' of https://github.com/mejrs/rust into port_on_unimplemented
2 parents 17cef3d + f7e4803 commit 314a3ab

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

compiler/rustc_hir/src/attrs/data_structures.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,13 @@ pub enum AttributeKind {
947947
directive: Option<Box<OnUnimplementedDirective>>,
948948
},
949949

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+
950957
/// Represents `#[optimize(size|speed)]`
951958
Optimize(OptimizeAttr, Span),
952959

0 commit comments

Comments
 (0)