We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0febe7 commit 11d758aCopy full SHA for 11d758a
src/librustc/session/mod.rs
@@ -776,7 +776,9 @@ pub fn build_session_(sopts: config::Options,
776
let print_fuel_crate = sopts.debugging_opts.print_fuel.clone();
777
let print_fuel = Cell::new(0);
778
779
- let working_dir = env::current_dir().unwrap().to_string_lossy().into_owned();
+ let working_dir = env::current_dir()
780
+ .expect("Could not find current working directory")
781
+ .to_string_lossy().into_owned();
782
let working_dir = file_path_mapping.map_prefix(working_dir);
783
784
let sess = Session {
0 commit comments