diff options
| author | Urgau <urgau@numericable.fr> | 2024-04-07 00:33:37 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2024-05-04 11:30:38 +0200 |
| commit | d4e26fbb5301b465a037c4d2ff54024ebd7f73d8 (patch) | |
| tree | d88675775f0531d394efd16a5906d9440b30875f /tests/ui/resolve | |
| parent | 517374150cfb48e907aec059f3639eba3a9c1e1c (diff) | |
| download | rust-d4e26fbb5301b465a037c4d2ff54024ebd7f73d8.tar.gz rust-d4e26fbb5301b465a037c4d2ff54024ebd7f73d8.zip | |
compiletest: add enable-by-default check-cfg
Diffstat (limited to 'tests/ui/resolve')
| -rw-r--r-- | tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed | 4 | ||||
| -rw-r--r-- | tests/ui/resolve/suggest-import-without-clobbering-attrs.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed b/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed index d05c0f05806..607c9af4927 100644 --- a/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed +++ b/tests/ui/resolve/suggest-import-without-clobbering-attrs.fixed @@ -1,8 +1,8 @@ //@ run-rustfix -//@ compile-flags: --cfg=whatever -Aunused +//@ compile-flags: -Aunused use y::z; -#[cfg(whatever)] +#[cfg(all())] use y::Whatever; mod y { diff --git a/tests/ui/resolve/suggest-import-without-clobbering-attrs.rs b/tests/ui/resolve/suggest-import-without-clobbering-attrs.rs index 0be2e558e42..6cc53fb1086 100644 --- a/tests/ui/resolve/suggest-import-without-clobbering-attrs.rs +++ b/tests/ui/resolve/suggest-import-without-clobbering-attrs.rs @@ -1,7 +1,7 @@ //@ run-rustfix -//@ compile-flags: --cfg=whatever -Aunused +//@ compile-flags: -Aunused -#[cfg(whatever)] +#[cfg(all())] use y::Whatever; mod y { |
