Skip to content

Commit

Permalink
Update parser initialization to match rust-lang/rust#49387
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgf committed Mar 26, 2018
1 parent 374dba8 commit e1a37f9
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit e1a37f9

Please sign in to comment.