diff options
| author | Jonathan Turner <jturner@mozilla.com> | 2016-08-05 15:58:31 -0700 |
|---|---|---|
| committer | Jonathan Turner <jturner@mozilla.com> | 2016-08-07 07:46:49 -0700 |
| commit | fad4f32c3147cca9f2b107d0440065b9e3d6c10f (patch) | |
| tree | d37019a13a053ff6a7224a195f5237521646d6ba /src/librustc_errors/lib.rs | |
| parent | 42903d9a8f0f471f5e0eb453e49fe44a65a746c5 (diff) | |
| download | rust-fad4f32c3147cca9f2b107d0440065b9e3d6c10f.tar.gz rust-fad4f32c3147cca9f2b107d0440065b9e3d6c10f.zip | |
Turn on new errors, json mode. Remove duplicate unicode test
Diffstat (limited to 'src/librustc_errors/lib.rs')
| -rw-r--r-- | src/librustc_errors/lib.rs | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs index 610e5647d6d..172e27d56d4 100644 --- a/src/librustc_errors/lib.rs +++ b/src/librustc_errors/lib.rs @@ -420,13 +420,11 @@ pub struct Handler { impl Handler { pub fn with_tty_emitter(color_config: ColorConfig, - registry: Option<registry::Registry>, can_emit_warnings: bool, treat_err_as_bug: bool, cm: Option<Rc<CodeMapper>>) -> Handler { - let emitter = Box::new(EmitterWriter::stderr(color_config, registry, cm, - snippet::FormatMode::EnvironmentSelected)); + let emitter = Box::new(EmitterWriter::stderr(color_config, cm)); Handler::with_emitter(can_emit_warnings, treat_err_as_bug, emitter) } @@ -750,21 +748,4 @@ pub fn expect<T, M>(diag: &Handler, opt: Option<T>, msg: M) -> T where Some(t) => t, None => diag.bug(&msg()), } -} - -/// True if we should use the old-skool error format style. This is -/// the default setting until the new errors are deemed stable enough -/// for general use. -/// -/// FIXME(#33240) -#[cfg(not(test))] -pub fn check_old_school() -> bool { - use std::env; - env::var("RUST_NEW_ERROR_FORMAT").is_err() -} - -/// For unit tests, use the new format. -#[cfg(test)] -pub fn check_old_school() -> bool { - false -} +} \ No newline at end of file |
