rust/tests/ui/conditional-compilation
Esteban Küber 4b24c4bf23 Tweak rendering of cfg'd out item
```
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-01 23:58:15 +00:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-arg-invalid-1.rs UI tests: migrate remaining compile time error-patterns to line annotations 2025-04-13 21:48:53 +03:00
cfg-arg-invalid-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-arg-invalid-2.rs UI tests: migrate remaining compile time error-patterns to line annotations 2025-04-13 21:48:53 +03:00
cfg-arg-invalid-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-arg-invalid-3.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
cfg-arg-invalid-3.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-arg-invalid-4.rs UI tests: migrate remaining compile time error-patterns to line annotations 2025-04-13 21:48:53 +03:00
cfg-arg-invalid-4.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-arg-invalid-5.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
cfg-arg-invalid-5.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-arg-invalid-6.rs UI tests: migrate remaining compile time error-patterns to line annotations 2025-04-13 21:48:53 +03:00
cfg-arg-invalid-6.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-arg-invalid-7.rs compiletest: Support matching on non-json lines in compiler output 2025-05-04 18:27:45 +03:00
cfg-arg-invalid-7.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-arg-invalid-8.rs UI tests: migrate remaining compile time error-patterns to line annotations 2025-04-13 21:48:53 +03:00
cfg-arg-invalid-8.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-arg-invalid-9.rs UI tests: migrate remaining compile time error-patterns to line annotations 2025-04-13 21:48:53 +03:00
cfg-arg-invalid-9.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-attr-cfg-2.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
cfg-attr-cfg-2.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
cfg-attr-crate-2.rs compiletest: add enable-by-default check-cfg 2024-05-04 11:30:38 +02:00
cfg-attr-crate-2.stderr Bless tests 2024-01-13 12:46:58 -05:00
cfg-attr-empty-is-unused.rs Unify all the always-false cfgs under the FALSE cfg 2024-04-07 01:16:45 +02:00
cfg-attr-empty-is-unused.stderr Unify all the always-false cfgs under the FALSE cfg 2024-04-07 01:16:45 +02:00
cfg-attr-invalid-predicate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-attr-invalid-predicate.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cfg-attr-multi-false.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cfg-attr-multi-invalid-1.rs compiletest: add enable-by-default check-cfg 2024-05-04 11:30:38 +02:00
cfg-attr-multi-invalid-1.stderr Bless tests 2024-01-13 12:46:58 -05:00
cfg-attr-multi-invalid-2.rs compiletest: add enable-by-default check-cfg 2024-05-04 11:30:38 +02:00
cfg-attr-multi-invalid-2.stderr Bless tests 2024-01-13 12:46:58 -05:00
cfg-attr-multi-true.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cfg-attr-multi-true.stderr error-msg: expand suggestion for unused lint 2023-03-15 23:30:12 +13:00
cfg-attr-parse.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-attr-parse.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
cfg-attr-syntax-validation.rs Changes to diagnostics 2025-07-15 09:21:27 +02:00
cfg-attr-syntax-validation.stderr Changes to diagnostics 2025-07-15 09:21:27 +02:00
cfg-attr-unknown-attribute-macro-expansion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-attr-unknown-attribute-macro-expansion.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cfg-empty-codemap.rs UI tests: migrate remaining compile time error-patterns to line annotations 2025-04-13 21:48:53 +03:00
cfg-empty-codemap.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg-generic-params.rs Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
cfg-generic-params.stderr Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
cfg-in-crate-1.rs Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
cfg-in-crate-1.stderr Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
cfg-non-opt-expr.rs Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
cfg-non-opt-expr.stderr Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
cfg_accessible-bugs.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cfg_accessible-bugs.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg_accessible-input-validation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg_accessible-input-validation.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg_accessible-not_sure.edition2015.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg_accessible-not_sure.edition2021.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg_accessible-not_sure.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
cfg_accessible-private.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cfg_accessible-stuck.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg_accessible-stuck.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cfg_accessible-unstable.rs use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
cfg_accessible-unstable.stderr use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
cfg_accessible.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg_accessible.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg_attr_path.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
inner-cfg-non-inline-mod.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
invalid-node-range-issue-129166.rs expand: Leave traces when expanding cfg attributes 2025-03-26 15:30:12 +03:00
issue-34028.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
module_with_cfg.rs Rollup merge of #139967 - jieyouxu:auxiliary, r=wesleywiser 2025-04-17 21:53:25 +02:00
test-cfg.rs Detect more cfgd out items in resolution errors 2025-08-01 21:50:36 +00:00
test-cfg.stderr Tweak rendering of cfg'd out item 2025-08-01 23:58:15 +00:00