File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
crates/formality-prove/src Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 1
- use std:: fmt;
2
-
3
1
use formality_core:: { set, Set , Upcast } ;
4
2
use formality_macros:: term;
5
3
use formality_types:: grammar:: {
@@ -144,23 +142,13 @@ pub struct NegImplDeclBoundData {
144
142
145
143
/// Mark a trait or trait impl as `unsafe`.
146
144
#[ term]
147
- #[ customize( debug) ]
148
145
#[ derive( Default ) ]
149
146
pub enum Safety {
150
147
#[ default]
151
148
Safe ,
152
149
Unsafe ,
153
150
}
154
151
155
- impl fmt:: Debug for Safety {
156
- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
157
- match self {
158
- Safety :: Safe => write ! ( f, "safe" ) ,
159
- Safety :: Unsafe => write ! ( f, "unsafe" ) ,
160
- }
161
- }
162
- }
163
-
164
152
/// A "trait declaration" declares a trait that exists, its generics, and its where-clauses.
165
153
/// It doesn't capture the trait items, which will be transformed into other sorts of rules.
166
154
///
You can’t perform that action at this time.
0 commit comments