Skip to content

Commit

Permalink
Update test suite to nightly-2024-03-06
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 6, 2024
1 parent d54ac46 commit 2b6085f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/update/update-examples.rs
Expand Up @@ -10,7 +10,6 @@ use anyhow::Result;
use quote::quote;
use rustc_session::parse::ParseSess;
use rustc_span::edition::Edition::Edition2021;
use rustc_span::source_map::FilePathMapping;
use std::fs::{self, File};
use std::path::Path;
use std::process::{Command, Stdio};
Expand Down Expand Up @@ -38,8 +37,7 @@ fn main() -> Result<()> {
let output_path = manifest_dir.join("..").join("output.rustc.rs");
let mut string = rustc_span::create_session_globals_then(Edition2021, || {
let locale_resources = rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec();
let file_path_mapping = FilePathMapping::empty();
let sess = ParseSess::new(locale_resources, file_path_mapping);
let sess = ParseSess::new(locale_resources);
let krate = rustc_parse::parse_crate_from_file(&input_path, &sess).unwrap();
rustc_ast_pretty::pprust::crate_to_string_for_macros(&krate)
});
Expand Down

0 comments on commit 2b6085f

Please sign in to comment.