Skip to content

Commit

Permalink
Update benchmark to nightly-2024-06-06
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 6, 2024
1 parent b1e9aba commit cc7c06b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions benches/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ mod librustc_parse {
let emitter = Box::new(SilentEmitter);
let handler = DiagCtxt::new(emitter);
let sess = ParseSess::with_dcx(handler, source_map);
if let Err(diagnostic) = rustc_parse::parse_crate_from_source_str(
FileName::Custom("bench".to_owned()),
content.to_owned(),
&sess,
) {
let name = FileName::Custom("bench".to_owned());
let mut parser =
rustc_parse::new_parser_from_source_str(&sess, name, content.to_owned()).unwrap();
if let Err(diagnostic) = parser.parse_crate_mod() {
diagnostic.cancel();
return Err(());
};
Expand Down

0 comments on commit cc7c06b

Please sign in to comment.