File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ mod tests {
269
269
mod emitter {
270
270
use super :: * ;
271
271
use crate :: config:: IgnoreList ;
272
+ use crate :: is_nightly_channel;
272
273
use crate :: utils:: mk_sp;
273
274
use std:: path:: PathBuf ;
274
275
use syntax:: source_map:: FileName as SourceMapFileName ;
@@ -347,6 +348,9 @@ mod tests {
347
348
348
349
#[ test]
349
350
fn handles_recoverable_parse_error_in_ignored_file ( ) {
351
+ if !is_nightly_channel ! ( ) {
352
+ return ;
353
+ }
350
354
let num_emitted_errors = Rc :: new ( RefCell :: new ( 0 ) ) ;
351
355
let can_reset_errors = Rc :: new ( RefCell :: new ( false ) ) ;
352
356
let ignore_list = get_ignore_list ( r#"ignore = ["foo.rs"]"# ) ;
@@ -368,6 +372,9 @@ mod tests {
368
372
369
373
#[ test]
370
374
fn handles_recoverable_parse_error_in_non_ignored_file ( ) {
375
+ if !is_nightly_channel ! ( ) {
376
+ return ;
377
+ }
371
378
let num_emitted_errors = Rc :: new ( RefCell :: new ( 0 ) ) ;
372
379
let can_reset_errors = Rc :: new ( RefCell :: new ( false ) ) ;
373
380
let source_map = Rc :: new ( SourceMap :: new ( FilePathMapping :: empty ( ) ) ) ;
@@ -388,6 +395,9 @@ mod tests {
388
395
389
396
#[ test]
390
397
fn handles_mix_of_recoverable_parse_error ( ) {
398
+ if !is_nightly_channel ! ( ) {
399
+ return ;
400
+ }
391
401
let num_emitted_errors = Rc :: new ( RefCell :: new ( 0 ) ) ;
392
402
let can_reset_errors = Rc :: new ( RefCell :: new ( false ) ) ;
393
403
let source_map = Rc :: new ( SourceMap :: new ( FilePathMapping :: empty ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments