From 175ecfefd50932c0ae8fa328579e26baadd6a110 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Mon, 16 May 2016 18:40:50 -0400 Subject: Improve a few errors and fix #33366 --- src/libsyntax/errors/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/errors') 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(diag: &Handler, opt: Option, 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 } -- cgit 1.4.1-3-g733a5