diff options
| author | Jonathan Turner <jturner@mozilla.com> | 2016-06-23 15:19:40 -0400 |
|---|---|---|
| committer | Jonathan Turner <jturner@mozilla.com> | 2016-06-23 15:19:40 -0400 |
| commit | 80f1c7875278b4dde63d5a523fe773e61d0f754e (patch) | |
| tree | 27e086b40da848f4cb6371ead7b14b48d115338d /src/librustc_errors/lib.rs | |
| parent | d4e79dec92e2f478add8423decf728cdae147860 (diff) | |
| download | rust-80f1c7875278b4dde63d5a523fe773e61d0f754e.tar.gz rust-80f1c7875278b4dde63d5a523fe773e61d0f754e.zip | |
make old school mode a bit more configurable
Diffstat (limited to 'src/librustc_errors/lib.rs')
| -rw-r--r-- | src/librustc_errors/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs index 47047769d31..18fc826f9aa 100644 --- a/src/librustc_errors/lib.rs +++ b/src/librustc_errors/lib.rs @@ -425,7 +425,8 @@ impl Handler { treat_err_as_bug: bool, cm: Rc<CodeMapper>) -> Handler { - let emitter = Box::new(EmitterWriter::stderr(color_config, registry, cm)); + let emitter = Box::new(EmitterWriter::stderr(color_config, registry, cm, + snippet::FormatMode::EnvironmentSelected)); Handler::with_emitter(can_emit_warnings, treat_err_as_bug, emitter) } |
