Skip to content
Myr

Suppress unused_attributes warning in test suite

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This test has multiple #[ignore] attributes in some configurations. $ cargo +beta check --test expandtest warning: unused attribute --> test_suite/tests/expandtest.rs:2:29 | 2 | #[cfg_attr(not(expandtest), ignore)] | ^^^^^^ | = note: `#[warn(unused_attributes)]` on by default

authored by David Tolnay · committed by David Tolnay · parent c619b2a · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:test_suite/tests/expandtest.rs+1 added
1#[cfg_attr(target_os = "emscripten", ignore)]2#[cfg_attr(not(expandtest), ignore)]3#[rustversion::attr(not(nightly), ignore)]4#[allow(unused_attributes)]5#[test]6fn expandtest() {7 macrotest::expand("tests/expand/*.rs");8}