Rename EarlyErrorHandler
as EarlyDiagCtxt
.
This commit is contained in:
parent
22e769c032
commit
42729d6b9a
@ -18,7 +18,7 @@
|
|||||||
use rustc_interface::interface;
|
use rustc_interface::interface;
|
||||||
use rustc_session::config::ErrorOutputType;
|
use rustc_session::config::ErrorOutputType;
|
||||||
use rustc_session::parse::ParseSess;
|
use rustc_session::parse::ParseSess;
|
||||||
use rustc_session::EarlyErrorHandler;
|
use rustc_session::EarlyDiagCtxt;
|
||||||
use rustc_span::symbol::Symbol;
|
use rustc_span::symbol::Symbol;
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
@ -174,7 +174,7 @@ fn display_help() {
|
|||||||
#[allow(clippy::too_many_lines)]
|
#[allow(clippy::too_many_lines)]
|
||||||
#[allow(clippy::ignored_unit_patterns)]
|
#[allow(clippy::ignored_unit_patterns)]
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
let handler = EarlyErrorHandler::new(ErrorOutputType::default());
|
let handler = EarlyDiagCtxt::new(ErrorOutputType::default());
|
||||||
|
|
||||||
rustc_driver::init_rustc_env_logger(&handler);
|
rustc_driver::init_rustc_env_logger(&handler);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user