mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Remove unnecessary qualifiers.
This commit is contained in:
parent
31ac4efb31
commit
8be1d253d2
@ -677,7 +677,7 @@ impl Session {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn diagnostic(&self) -> &rustc_errors::Handler {
|
||||
pub fn diagnostic(&self) -> &Handler {
|
||||
&self.parse_sess.span_diagnostic
|
||||
}
|
||||
|
||||
@ -1407,7 +1407,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);
|
||||
@ -1720,7 +1720,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user