@@ -11,7 +11,7 @@ use std::thread;
1111
1212use crate :: config:: { Color , Config , EmitMode , FileName , NewlineStyle , ReportTactic } ;
1313use crate :: formatting:: { ReportedErrors , SourceFile } ;
14- use crate :: is_nightly_channel ;
14+ use crate :: release_channel :: is_nightly ;
1515use crate :: rustfmt_diff:: { make_diff, print_diff, DiffLine , Mismatch , ModifiedChunk , OutputWriter } ;
1616use crate :: source_file;
1717use crate :: { FormatReport , FormatReportFormatterBuilder , Input , Session } ;
@@ -312,7 +312,7 @@ fn idempotence_tests() {
312312 init_log ( ) ;
313313 run_test_with ( & TestSetting :: default ( ) , || {
314314 // these tests require nightly
315- if !is_nightly_channel ! ( ) {
315+ if !is_nightly ( ) {
316316 return ;
317317 }
318318 // Get all files in the tests/target directory.
@@ -336,7 +336,7 @@ fn idempotence_tests() {
336336fn self_tests ( ) {
337337 init_log ( ) ;
338338 // Issue-3443: these tests require nightly
339- if !is_nightly_channel ! ( ) {
339+ if !is_nightly ( ) {
340340 return ;
341341 }
342342 let mut files = get_test_files ( Path :: new ( "tests" ) , false ) ;
@@ -491,7 +491,7 @@ fn check_files(files: Vec<PathBuf>, opt_config: &Option<PathBuf>) -> (Vec<Format
491491
492492 for file_name in files {
493493 let sig_comments = read_significant_comments ( & file_name) ;
494- if sig_comments. contains_key ( "unstable" ) && !is_nightly_channel ! ( ) {
494+ if sig_comments. contains_key ( "unstable" ) && !is_nightly ( ) {
495495 debug ! (
496496 "Skipping '{}' because it requires unstable \
497497 features which are only available on nightly...",
0 commit comments