rust/tests/ui/unpretty
Guillaume Gomez 0377330be4
Rollup merge of #142704 - tgross35:remove-concat_idents, r=fee1-dead
Remove the deprecated unstable `concat_idents!` macro

In [rust-lang/rust#137653], the lang and libs-API teams did a joint FCP to deprecate
and eventually remove the long-unstable `concat_idents!` macro. The
deprecation is landing in 1.88, so do the removal here (target version
1.90).

This macro has been superseded by the more recent `${concat(...)}`
metavariable expression language feature, which avoids some of the
limitations of `concat_idents!`. The metavar expression is unstably
available under the [`macro_metavar_expr_concat`] feature.

History is mildly interesting here: `concat_idents!` goes back to 2011
when it was introduced with 513276e595 ("Add #concat_idents[] and
#ident_to_str[]"). The syntax looks a bit different but it still works
about the same:

    let asdf_fdsa = "<.<";
    assert(#concat_idents[asd,f_f,dsa] == "<.<");

    assert(#ident_to_str[use_mention_distinction]
           == "use_mention_distinction");

(That test existed from introduction until its removal here.)

Closes: https://github.com/rust-lang/rust/issues/29599

[rust-lang/rust#137653]: https://github.com/rust-lang/rust/pull/137653
[`macro_metavar_expr_concat`]: https://github.com/rust-lang/rust/issues/124225
2025-06-24 15:39:38 +02:00
..
auxiliary Add tests for -Zunpretty=expanded ported from stringify's tests 2024-05-18 10:36:02 -07:00
ast-const-trait-bound.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ast-const-trait-bound.stdout [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
avoid-crash.rs compiletest: Support matching on diagnostics without a span 2025-03-25 17:33:09 +03:00
avoid-crash.stderr Fix unpretty UI test when /tmp does not exist 2024-03-24 14:00:45 +00:00
bad-literal.rs Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
bad-literal.stderr Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
bad-literal.stdout Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
box.rs turn rustc_box into an intrinsic 2025-01-03 12:01:31 +01:00
box.stdout turn rustc_box into an intrinsic 2025-01-03 12:01:31 +01:00
debug-fmt-hir.rs Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
debug-fmt-hir.stdout Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
deprecated-attr.rs Add regression test for issue 142649 2025-06-21 11:09:14 -07:00
deprecated-attr.stdout Add regression test for issue 142649 2025-06-21 11:09:14 -07:00
diagnostic-attr.rs Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
diagnostic-attr.stdout All HIR attributes are outer 2025-06-21 11:11:34 -07:00
exhaustive-asm.expanded.stdout Improve coverage of HIR pretty printing. 2025-05-02 12:41:02 +10:00
exhaustive-asm.hir.stdout All HIR attributes are outer 2025-06-21 11:11:34 -07:00
exhaustive-asm.rs Improve coverage of HIR pretty printing. 2025-05-02 12:41:02 +10:00
exhaustive.expanded.stdout Migrate some tests away from concat-idents 2025-06-24 10:54:54 +00:00
exhaustive.hir.stderr Migrate some tests away from concat-idents 2025-06-24 10:54:54 +00:00
exhaustive.hir.stdout Rollup merge of #142704 - tgross35:remove-concat_idents, r=fee1-dead 2025-06-24 15:39:38 +02:00
exhaustive.rs Migrate some tests away from concat-idents 2025-06-24 10:54:54 +00:00
extern-static.rs Print safety correctly in extern static items 2024-10-24 00:41:27 +00:00
extern-static.stdout Print safety correctly in extern static items 2024-10-24 00:41:27 +00:00
flattened-format-args.rs Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
flattened-format-args.stdout Update unpretty tests. 2025-06-18 10:20:20 +02:00
hir-tree.rs compiletest: Support matching on non-json lines in compiler output 2025-05-04 18:27:45 +03:00
interpolation-expanded.rs Improve coverage of HIR pretty printing. 2025-05-02 12:41:02 +10:00
interpolation-expanded.stdout Improve coverage of HIR pretty printing. 2025-05-02 12:41:02 +10:00
let-else-hir.rs Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
let-else-hir.stdout Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
mir-unpretty.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mir-unpretty.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
self-hir.rs Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
self-hir.stdout Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
staged-api-invalid-path-108697.rs Fix test that relies on error language 2025-02-16 09:08:24 +00:00
staged-api-invalid-path-108697.stderr Fix test that relies on error language 2025-02-16 09:08:24 +00:00
unpretty-expr-fn-arg.rs Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
unpretty-expr-fn-arg.stdout Explicitly annotate edition for unpretty=expanded and unpretty=hir tests 2025-04-16 11:10:10 +02:00
unsafe-attr.rs Add AST unpretty test for unsafe attribute 2024-10-26 13:31:24 +02:00
unsafe-attr.stdout Print unsafety of attribute in AST unpretty 2024-10-26 13:33:36 +02:00