Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,8 @@ fn format_input_inner<T: Write>(
};
Handler::with_tty_emitter(color_cfg, true, false, Some(codemap.clone()))
};
let mut parse_session = ParseSess::with_span_handler(tty_handler, codemap.clone());
let env_sb = Lrc::new(EnvSandbox::default());
let mut parse_session = ParseSess::with_span_handler(tty_handler, codemap.clone(), env_sb);

let main_file = match input {
Input::File(ref file) => FileName::Real(file.clone()),
Expand Down