We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f1fb52 commit d5e079bCopy full SHA for d5e079b
benches/rust.rs
@@ -81,7 +81,7 @@ mod librustc_parse {
81
rustc_span::create_session_if_not_set_then(Edition::Edition2018, |_| {
82
let source_map = Lrc::new(SourceMap::new(FilePathMapping::empty()));
83
let emitter = Box::new(SilentEmitter);
84
- let handler = DiagCtxt::with_emitter(emitter);
+ let handler = DiagCtxt::new(emitter);
85
let sess = ParseSess::with_dcx(handler, source_map);
86
if let Err(diagnostic) = rustc_parse::parse_crate_from_source_str(
87
FileName::Custom("bench".to_owned()),
0 commit comments