diff options
| author | Jonathan Turner <jturner@mozilla.com> | 2016-05-16 18:40:50 -0400 |
|---|---|---|
| committer | Jonathan Turner <jturner@mozilla.com> | 2016-05-17 06:46:08 -0400 |
| commit | 175ecfefd50932c0ae8fa328579e26baadd6a110 (patch) | |
| tree | cb01c5880bdb348749ab44b1966b44c95f2d9bac /src/libsyntax/errors | |
| parent | 3e9747af497d826aa863e5d47830d7cfc80d94d2 (diff) | |
| download | rust-175ecfefd50932c0ae8fa328579e26baadd6a110.tar.gz rust-175ecfefd50932c0ae8fa328579e26baadd6a110.zip | |
Improve a few errors and fix #33366
Diffstat (limited to 'src/libsyntax/errors')
| -rw-r--r-- | src/libsyntax/errors/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/errors/mod.rs b/src/libsyntax/errors/mod.rs index 7592214c0ab..b541a6ccb8d 100644 --- a/src/libsyntax/errors/mod.rs +++ b/src/libsyntax/errors/mod.rs @@ -699,13 +699,13 @@ pub fn expect<T, M>(diag: &Handler, opt: Option<T>, msg: M) -> T where /// /// FIXME(#33240) #[cfg(not(test))] -fn check_old_skool() -> bool { +pub fn check_old_skool() -> bool { use std::env; env::var("RUST_NEW_ERROR_FORMAT").is_err() } /// For unit tests, use the new format. #[cfg(test)] -fn check_old_skool() -> bool { +pub fn check_old_skool() -> bool { false } |
