@@ -11,7 +11,7 @@ use std::thread;
11
11
12
12
use crate :: config:: { Color , Config , EmitMode , FileName , NewlineStyle , ReportTactic } ;
13
13
use crate :: formatting:: { ReportedErrors , SourceFile } ;
14
- use crate :: is_nightly_channel ;
14
+ use crate :: release_channel :: is_nightly ;
15
15
use crate :: rustfmt_diff:: { make_diff, print_diff, DiffLine , Mismatch , ModifiedChunk , OutputWriter } ;
16
16
use crate :: source_file;
17
17
use crate :: { FormatReport , FormatReportFormatterBuilder , Input , Session } ;
@@ -312,7 +312,7 @@ fn idempotence_tests() {
312
312
init_log ( ) ;
313
313
run_test_with ( & TestSetting :: default ( ) , || {
314
314
// these tests require nightly
315
- if !is_nightly_channel ! ( ) {
315
+ if !is_nightly ( ) {
316
316
return ;
317
317
}
318
318
// Get all files in the tests/target directory.
@@ -336,7 +336,7 @@ fn idempotence_tests() {
336
336
fn self_tests ( ) {
337
337
init_log ( ) ;
338
338
// Issue-3443: these tests require nightly
339
- if !is_nightly_channel ! ( ) {
339
+ if !is_nightly ( ) {
340
340
return ;
341
341
}
342
342
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
491
491
492
492
for file_name in files {
493
493
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 ( ) {
495
495
debug ! (
496
496
"Skipping '{}' because it requires unstable \
497
497
features which are only available on nightly...",
0 commit comments