File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ pub fn check(
45
45
let fallback_bundle =
46
46
rustc_errors:: fallback_fluent_bundle ( rustc_driver:: DEFAULT_LOCALE_RESOURCES . to_vec ( ) , false ) ;
47
47
let emitter = EmitterWriter :: new ( Box :: new ( io:: sink ( ) ) , fallback_bundle) ;
48
- let handler = DiagCtxt :: with_emitter ( Box :: new ( emitter) ) . disable_warnings ( ) ;
48
+ let dcx = DiagCtxt :: with_emitter ( Box :: new ( emitter) ) . disable_warnings ( ) ;
49
49
#[ expect( clippy:: arc_with_non_send_sync) ] // `Lrc` is expected by with_dcx
50
50
let sm = Lrc :: new ( SourceMap :: new ( FilePathMapping :: empty ( ) ) ) ;
51
- let sess = ParseSess :: with_dcx ( handler , sm) ;
51
+ let sess = ParseSess :: with_dcx ( dcx , sm) ;
52
52
53
53
let mut parser = match maybe_new_parser_from_source_str ( & sess, filename, code) {
54
54
Ok ( p) => p,
Original file line number Diff line number Diff line change @@ -174,9 +174,9 @@ const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust-clippy/issues/ne
174
174
#[ allow( clippy:: too_many_lines) ]
175
175
#[ allow( clippy:: ignored_unit_patterns) ]
176
176
pub fn main ( ) {
177
- let handler = EarlyDiagCtxt :: new ( ErrorOutputType :: default ( ) ) ;
177
+ let early_dcx = EarlyDiagCtxt :: new ( ErrorOutputType :: default ( ) ) ;
178
178
179
- rustc_driver:: init_rustc_env_logger ( & handler ) ;
179
+ rustc_driver:: init_rustc_env_logger ( & early_dcx ) ;
180
180
181
181
let using_internal_features = rustc_driver:: install_ice_hook ( BUG_REPORT_URL , |handler| {
182
182
// FIXME: this macro calls unwrap internally but is called in a panicking context! It's not
You can’t perform that action at this time.
0 commit comments