Skip to content

Commit b467717

Browse files
tests: fix system tests on non-nightly
1 parent 7c7c738 commit b467717

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/config/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ mod test {
476476

477477
#[test]
478478
fn test_valid_license_template_path() {
479+
if !crate::is_nightly_channel!() {
480+
return;
481+
}
479482
let toml = r#"license_template_path = "tests/license-template/lt.txt""#;
480483
let config = Config::from_toml(toml, Path::new("")).unwrap();
481484
assert!(config.license_template.is_some());

tests/source/issue-3779/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// rustfmt-unstable: true
12
// rustfmt-config: issue-3779.toml
23

34
#[path = "ice.rs"]

tests/target/issue-3779/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// rustfmt-unstable: true
12
// rustfmt-config: issue-3779.toml
23

34
#[path = "ice.rs"]

0 commit comments

Comments
 (0)