Skip to content

Commit

Permalink
Merge pull request #586 from uuid-rs/chore/location-tests
Browse files Browse the repository at this point in the history
Only check diagnostics output on nightly
  • Loading branch information
KodrAus committed Feb 11, 2022
2 parents a1fd80c + e666546 commit 9215b87
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ version = "0.3"
[dev-dependencies.trybuild]
version = "1.0.52"

[dev-dependencies.rustversion]
version = "1"

[target.'cfg(windows)'.dev-dependencies.winapi]
version = "0.3"
features = ["combaseapi", "impl-default"]
Expand Down
13 changes: 9 additions & 4 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ license = "Apache-2.0 OR MIT"
[lib]
proc-macro = true

[dependencies]
syn = "1.0.80"
quote = "1.0.10"
proc-macro2 = "1.0.29"
[dependencies.syn]
version = "1.0.80"

[dependencies.quote]
version = "1.0.10"

[dependencies.proc-macro2]
version = "1.0.29"
features = ["span-locations"]
6 changes: 5 additions & 1 deletion tests/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#[test]
fn ui() {
let t = trybuild::TestCases::new();

t.pass("tests/ui/compile_pass/*.rs");
t.compile_fail("tests/ui/compile_fail/*.rs");

if rustversion::cfg!(nightly) {
t.compile_fail("tests/ui/compile_fail/*.rs");
}
}

0 comments on commit 9215b87

Please sign in to comment.