File tree 2 files changed +13
-9
lines changed
2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -152,15 +152,13 @@ fn default_handler(
152
152
TerminalUrl :: No ,
153
153
) )
154
154
} ;
155
- Handler :: with_emitter (
156
- Box :: new ( SilentOnIgnoredFilesEmitter {
157
- has_non_ignorable_parser_errors : false ,
158
- source_map,
159
- emitter,
160
- ignore_path_set,
161
- can_reset,
162
- } ) ,
163
- )
155
+ Handler :: with_emitter ( Box :: new ( SilentOnIgnoredFilesEmitter {
156
+ has_non_ignorable_parser_errors : false ,
157
+ source_map,
158
+ emitter,
159
+ ignore_path_set,
160
+ can_reset,
161
+ } ) )
164
162
}
165
163
166
164
impl ParseSess {
Original file line number Diff line number Diff line change @@ -838,6 +838,12 @@ fn handle_result(
838
838
839
839
// Ignore LF and CRLF difference for Windows.
840
840
if !string_eq_ignore_newline_repr ( & fmt_text, & text) {
841
+ if let Some ( bless) = std:: env:: var_os ( "BLESS" ) {
842
+ if bless != "0" {
843
+ std:: fs:: write ( file_name, fmt_text) . unwrap ( ) ;
844
+ continue ;
845
+ }
846
+ }
841
847
let diff = make_diff ( & text, & fmt_text, DIFF_CONTEXT_SIZE ) ;
842
848
assert ! (
843
849
!diff. is_empty( ) ,
You can’t perform that action at this time.
0 commit comments