Skip to content

Commit 530eadf

Browse files
calebcartwrightMark-Simulacrum
authored andcommitted
tests: fix system tests on non-nightly
1 parent aedff61 commit 530eadf

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/config/mod.rs

+3
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/config/issue-3779.toml

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
unstable_features = true
21
ignore = [
32
"tests/**/issue-3779/ice.rs"
43
]

tests/source/issue-3779/lib.rs

+1
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

+1
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)