File tree 1 file changed +3
-15
lines changed
compiler/rustc_ast_pretty/src/pprust/state
1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change 1
1
use rustc_ast:: Expr ;
2
2
use rustc_ast:: util:: { classify, parser} ;
3
3
4
- #[ derive( Copy , Clone , Debug ) ]
4
+ // The default amount of fixing is minimal fixing. Fixups should be turned on
5
+ // in a targeted fashion where needed.
6
+ #[ derive( Copy , Clone , Debug , Default ) ]
5
7
pub ( crate ) struct FixupContext {
6
8
/// Print expression such that it can be parsed back as a statement
7
9
/// consisting of the original expression.
@@ -93,20 +95,6 @@ pub(crate) struct FixupContext {
93
95
parenthesize_exterior_struct_lit : bool ,
94
96
}
95
97
96
- /// The default amount of fixing is minimal fixing. Fixups should be turned on
97
- /// in a targeted fashion where needed.
98
- impl Default for FixupContext {
99
- fn default ( ) -> Self {
100
- FixupContext {
101
- stmt : false ,
102
- leftmost_subexpression_in_stmt : false ,
103
- match_arm : false ,
104
- leftmost_subexpression_in_match_arm : false ,
105
- parenthesize_exterior_struct_lit : false ,
106
- }
107
- }
108
- }
109
-
110
98
impl FixupContext {
111
99
/// Create the initial fixup for printing an expression in statement
112
100
/// position.
You can’t perform that action at this time.
0 commit comments