Skip to content

Commit

Permalink
Remove unnecessary qualifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Dec 1, 2023
1 parent 698e4a0 commit a3808d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_session/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ impl Session {
}

#[inline]
pub fn diagnostic(&self) -> &rustc_errors::Handler {
pub fn diagnostic(&self) -> &Handler {
&self.parse_sess.span_diagnostic
}

Expand Down Expand Up @@ -1411,7 +1411,7 @@ pub fn build_session(
);
let emitter = default_emitter(&sopts, registry, source_map.clone(), bundle, fallback_bundle);

let mut span_diagnostic = rustc_errors::Handler::with_emitter(emitter)
let mut span_diagnostic = Handler::with_emitter(emitter)
.with_flags(sopts.unstable_opts.diagnostic_handler_flags(can_emit_warnings));
if let Some(ice_file) = ice_file {
span_diagnostic = span_diagnostic.with_ice_file(ice_file);
Expand Down Expand Up @@ -1700,7 +1700,7 @@ pub struct EarlyErrorHandler {
impl EarlyErrorHandler {
pub fn new(output: ErrorOutputType) -> Self {
let emitter = mk_emitter(output);
Self { handler: rustc_errors::Handler::with_emitter(emitter) }
Self { handler: Handler::with_emitter(emitter) }
}

pub fn abort_if_errors(&self) {
Expand Down

0 comments on commit a3808d6

Please sign in to comment.