about summary refs log tree commit diff
path: root/tests/ui/cfg/cfg-version
AgeCommit message (Collapse)AuthorLines
2025-08-01Tweak rendering of cfg'd out itemEsteban Küber-50/+30
``` error[E0433]: failed to resolve: could not find `doesnt_exist` in `inner` --> $DIR/diagnostics-cross-crate.rs:18:23 | LL | cfged_out::inner::doesnt_exist::hello(); | ^^^^^^^^^^^^ could not find `doesnt_exist` in `inner` | note: found an item that was configured out --> $DIR/auxiliary/cfged_out.rs:6:13 | LL | #[cfg(false)] | ----- the item is gated here LL | pub mod doesnt_exist { | ^^^^^^^^^^^^ ```
2025-08-01Detect more `cfg`d out items in resolution errorsEsteban Küber-0/+110
Use a visitor to collect *all* items (including those nested) that were stripped behind a `cfg` condition. ``` error[E0425]: cannot find function `f` in this scope --> $DIR/nested-cfg-attrs.rs:4:13 | LL | fn main() { f() } | ^ not found in this scope | note: found an item that was configured out --> $DIR/nested-cfg-attrs.rs:2:4 | LL | fn f() {} | ^ note: the item is gated here --> $DIR/nested-cfg-attrs.rs:1:35 | LL | #[cfg_attr(all(), cfg_attr(all(), cfg(FALSE)))] | ^^^^^^^^^^ ```
2025-07-15Changes to diagnosticsJonathan Brouwer-2/+2
2025-05-26cfg_version: pull out dedicated syntax test from feature gate testJieyou Xu-0/+340
The feature gate test was dual-purposing causing feature gate errors to distract from syntax exercises.
2025-05-24Make #[cfg(version)] respect RUSTC_OVERRIDE_VERSION_STRINGest31-0/+47