rust/tests/ui/proc-macro
bors a6dce3bac5 Auto merge of #116124 - WaffleLapkin:fix-proc-macro-literal-to-string, r=compiler-errors
Properly print cstr literals in `proc_macro::Literal::to_string`

Previously we printed the contents of the string, rather than the actual string literal (e.g. `the c string` instead of `c"the c string"`).

Fixes #112820
cc #105723
2023-09-26 03:39:25 +00:00
..
auxiliary Auto merge of #116124 - WaffleLapkin:fix-proc-macro-literal-to-string, r=compiler-errors 2023-09-26 03:39:25 +00:00
debug
outer
pretty-print-hack
add-impl.rs
allowed-attr-stmt-expr.rs
allowed-attr-stmt-expr.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
allowed-signatures.rs Replace old private-in-public diagnostic with type privacy lints 2023-08-02 13:40:28 +03:00
ambiguous-builtin-attrs-test.rs
ambiguous-builtin-attrs-test.stderr
ambiguous-builtin-attrs.rs
ambiguous-builtin-attrs.stderr
amputate-span.fixed
amputate-span.rs
amputate-span.stderr
append-impl.rs
attr-args.rs
attr-cfg.rs
attr-complex-fn.rs
attr-complex-fn.stdout
attr-invalid-exprs.rs
attr-invalid-exprs.stderr
attr-on-trait.rs
attr-stmt-expr-rpass.rs
attr-stmt-expr.rs
attr-stmt-expr.stderr
attr-stmt-expr.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
attribute-after-derive.rs
attribute-after-derive.stdout
attribute-spans-preserved.rs
attribute-spans-preserved.stderr
attribute-spans-preserved.stdout
attribute-with-error.rs
attribute-with-error.stderr
attribute.rs
attribute.stderr
attributes-included.rs
attributes-included.stderr
attributes-on-definitions.rs
attributes-on-definitions.stderr
attributes-on-modules-fail.rs
attributes-on-modules-fail.stderr
attributes-on-modules.rs
bad-projection.rs
bad-projection.stderr Point out if a local trait has no implementations 2023-09-10 21:20:36 +00:00
bang-macro.rs
break-token-spans.rs
break-token-spans.stderr
call-deprecated.rs
call-deprecated.stderr
call-site.rs
capture-macro-rules-invoke.rs
capture-macro-rules-invoke.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
capture-unglued-token.rs
capture-unglued-token.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
cfg-eval-fail.rs
cfg-eval-fail.stderr
cfg-eval-inner.rs
cfg-eval-inner.stdout
cfg-eval.rs
cfg-eval.stdout
count_compound_ops.rs
crate-attrs-multiple.rs
crate-var.rs
crt-static.rs
custom-attr-only-one-derive.rs
define-two.rs
define-two.stderr
derive-attr-cfg.rs
derive-b.rs
derive-bad.rs
derive-bad.stderr
derive-expand-order.rs
derive-expand-order.stdout
derive-helper-configured.rs
derive-helper-legacy-limits.rs
derive-helper-legacy-limits.stderr
derive-helper-legacy-spurious.rs
derive-helper-legacy-spurious.stderr
derive-helper-shadowed.rs tests/ui/proc-macro/*: Migrate FIXMEs to check-pass 2023-07-27 10:37:31 +02:00
derive-helper-shadowing-2.rs
derive-helper-shadowing.rs resolve: Remove artificial import ambiguity errors 2023-06-29 13:42:58 +03:00
derive-helper-shadowing.stderr resolve: Remove artificial import ambiguity errors 2023-06-29 13:42:58 +03:00
derive-helper-vs-legacy.rs
derive-in-mod.rs tests/ui/proc-macro/*: Migrate FIXMEs to check-pass 2023-07-27 10:37:31 +02:00
derive-multiple-with-packed.rs
derive-same-struct.rs
derive-same-struct.stdout
derive-still-gated.rs
derive-still-gated.stderr
derive-test.rs
derive-two-attrs.rs
derive-union.rs
disappearing-resolution.rs
disappearing-resolution.stderr
doc-comment-preserved.rs
doc-comment-preserved.stdout
dollar-crate-issue-57089.rs
dollar-crate-issue-57089.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
dollar-crate-issue-62325.rs
dollar-crate-issue-62325.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
dollar-crate-issue-101211.rs
dollar-crate.rs
dollar-crate.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
edition-imports-2018.rs tests/ui/proc-macro/*: Migrate FIXMEs to check-pass 2023-07-27 10:37:31 +02:00
empty-crate.rs
empty-where-clause.rs
empty-where-clause.stderr
expand-expr.rs
expand-expr.stderr
expand-to-derive.rs
expand-to-derive.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
expand-to-unstable.rs
expand-to-unstable.stderr
expand-with-a-macro.rs
export-macro.rs
export-macro.stderr
exports.rs
exports.stderr
expr-stmt-nonterminal-tokens.rs
expr-stmt-nonterminal-tokens.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
extern-prelude-extern-crate-proc-macro.rs tests/ui/proc-macro/*: Migrate FIXMEs to check-pass 2023-07-27 10:37:31 +02:00
gen-lifetime-token.rs
gen-macro-rules-hygiene.rs
gen-macro-rules-hygiene.stderr
gen-macro-rules.rs
generate-dollar-ident.rs
generate-mod.rs
generate-mod.stderr
helper-attr-blocked-by-import-ambig.rs
helper-attr-blocked-by-import-ambig.stderr
helper-attr-blocked-by-import.rs tests/ui/proc-macro/*: Migrate FIXMEs to check-pass 2023-07-27 10:37:31 +02:00
hygiene_example.rs
illegal-proc-macro-derive-use.rs
illegal-proc-macro-derive-use.stderr
import.rs
import.stderr
inert-attribute-order.rs
inert-attribute-order.stdout
inner-attr-non-inline-mod.rs
inner-attr-non-inline-mod.stderr
inner-attr-non-inline-mod.stdout
inner-attrs.rs
inner-attrs.stderr
inner-attrs.stdout
input-interpolated.rs
input-interpolated.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
invalid-attributes.rs
invalid-attributes.stderr
invalid-punct-ident-1.rs
invalid-punct-ident-1.stderr
invalid-punct-ident-2.rs
invalid-punct-ident-2.stderr
invalid-punct-ident-3.rs
invalid-punct-ident-3.stderr
invalid-punct-ident-4.rs
invalid-punct-ident-4.stderr
is-available.rs
issue-36935.rs
issue-36935.stderr
issue-37788.rs
issue-37788.stderr
issue-38586.rs
issue-38586.stderr
issue-39889.rs
issue-42708.rs
issue-50061.rs
issue-50493.rs
issue-50493.stderr
issue-53481.rs tests/ui/proc-macro/*: Migrate FIXMEs to check-pass 2023-07-27 10:37:31 +02:00
issue-59191-replace-root-with-fn.rs
issue-59191-replace-root-with-fn.stderr
issue-66286.rs
issue-66286.stderr
issue-73933-procedural-masquerade.rs
issue-73933-procedural-masquerade.stdout
issue-75734-pp-paren.rs
issue-75734-pp-paren.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
issue-75801.rs
issue-75801.stderr
issue-75930-derive-cfg.rs
issue-75930-derive-cfg.stderr
issue-75930-derive-cfg.stdout
issue-76182-leading-vert-pat.rs
issue-76182-leading-vert-pat.stdout
issue-76270-panic-in-libproc-macro.rs
issue-76270-panic-in-libproc-macro.stderr
issue-78675-captured-inner-attrs.rs
issue-78675-captured-inner-attrs.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
issue-79148.rs
issue-79148.stderr
issue-79242-slow-retokenize-check.rs
issue-79825.rs
issue-80760-empty-stmt.rs
issue-80760-empty-stmt.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
issue-81007-item-attrs.rs
issue-81007-item-attrs.stdout
issue-81543-item-parse-err.rs
issue-81543-item-parse-err.stderr
issue-81555.rs
issue-83469-global-alloc-invalid-stmt.rs
issue-83469-global-alloc-invalid-stmt.stderr
issue-83510.rs
issue-83510.stderr
issue-86781-bad-inner-doc.fixed
issue-86781-bad-inner-doc.rs
issue-86781-bad-inner-doc.stderr
issue-91800.rs
issue-91800.stderr
issue-104884-trait-impl-sugg-err.rs
issue-104884-trait-impl-sugg-err.stderr
issue-107113-wrap.rs Fix #107113, avoid suggest for macro attributes 2023-08-02 14:54:37 +08:00
issue-107113-wrap.stderr Fix #107113, avoid suggest for macro attributes 2023-08-02 14:54:37 +08:00
item-error.rs
item-error.stderr
keep-expr-tokens.rs
keep-expr-tokens.stderr
keep-expr-tokens.stdout
lifetimes-rpass.rs
lifetimes.rs
lifetimes.stderr
lints_in_proc_macros.rs
lints_in_proc_macros.stderr
literal-to-string.rs Add a test for printing literals via proc-macro 2023-09-24 20:24:33 +00:00
literal-to-string.stdout Add a test for printing literals via proc-macro 2023-09-24 20:24:33 +00:00
load-panic-backtrace.rs
load-panic-backtrace.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
load-panic.rs
load-panic.stderr
load-two.rs
macro-brackets.rs
macro-brackets.stderr
macro-crate-multi-decorator.rs
macro-namespace-reserved-2.rs
macro-namespace-reserved-2.stderr
macro-namespace-reserved.rs
macro-namespace-reserved.stderr
macro-quote-cond.rs
macro-rules-derive-cfg.rs
macro-rules-derive-cfg.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
macro-rules-derive.rs
macro-rules-derive.stderr
macro-use-attr.rs tests/ui/proc-macro/*: Migrate FIXMEs to check-pass 2023-07-27 10:37:31 +02:00
macro-use-bang.rs tests/ui/proc-macro/*: Migrate FIXMEs to check-pass 2023-07-27 10:37:31 +02:00
macros-in-extern-derive.rs
macros-in-extern-derive.stderr
macros-in-extern.rs
macros-in-type.rs
meta-delim.rs
meta-macro-hygiene.rs fix(test): improve sensitivity of hygene tests 2023-08-08 18:09:56 -07:00
meta-macro-hygiene.stdout fix(test): improve sensitivity of hygene tests 2023-08-08 18:09:56 -07:00
meta-macro.rs
meta-macro.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
mixed-site-span.rs
mixed-site-span.stderr
modify-ast.rs
module_with_attrs.rs
module.rs
multispan.rs
multispan.stderr
negative-token.rs
nested-derive-cfg.rs
nested-derive-cfg.stdout
nested-item-spans.rs
nested-item-spans.stderr
nested-macro-rules.rs
nested-macro-rules.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
nested-nonterminal-tokens.rs
nested-nonterminal-tokens.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
no-macro-use-attr.rs
no-macro-use-attr.stderr
no-mangle-in-proc-macro-issue-111888.rs fix proc-macro test added here to solely be exercised as a build product for the host. 2023-08-08 11:40:35 -04:00
no-missing-docs.rs
nodelim-groups.rs
nodelim-groups.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
non-root.rs
non-root.stderr
nonterminal-expansion.rs
nonterminal-expansion.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
nonterminal-recollect-attr.rs
nonterminal-recollect-attr.stdout Hide compiler_builtins in the prelude 2023-07-14 16:53:36 +01:00
nonterminal-token-hygiene.rs fix(test): improve sensitivity of hygene tests 2023-08-08 18:09:56 -07:00
nonterminal-token-hygiene.stdout fix(test): improve sensitivity of hygene tests 2023-08-08 18:09:56 -07:00
not-joint.rs
out-of-line-mod.rs
panic-abort.rs
panic-abort.stderr
parent-source-spans.rs
parent-source-spans.stderr
pretty-print-hack-hide.rs
pretty-print-hack-hide.stdout
pretty-print-hack-show.local.stderr
pretty-print-hack-show.local.stdout
pretty-print-hack-show.remapped.stderr
pretty-print-hack-show.remapped.stdout
pretty-print-hack-show.rs
pretty-print-tts.rs
pretty-print-tts.stdout
proc-macro-abi.rs
proc-macro-abi.stderr
proc-macro-attributes.rs
proc-macro-attributes.stderr
proc-macro-deprecated-attr.rs
proc-macro-gates2.rs
proc-macro-gates2.stderr
proc-macro-gates.rs
proc-macro-gates.stderr
pub-at-crate-root.rs
pub-at-crate-root.stderr
quote-debug.rs
quote-debug.stdout
raw-ident.rs
raw-ident.stderr
reserved-macro-names.rs
reserved-macro-names.stderr
resolve-error.rs
resolve-error.stderr
resolved-located-at.rs
resolved-located-at.stderr
shadow.rs
shadow.stderr
signature-proc-macro-attribute.rs
signature-proc-macro-attribute.stderr
signature-proc-macro-derive.rs
signature-proc-macro-derive.stderr
signature-proc-macro.rs
signature-proc-macro.stderr
signature.rs
signature.stderr
smoke.rs
span-absolute-posititions.rs
span-absolute-posititions.stderr
span-api-tests.rs
span-from-proc-macro.rs
span-from-proc-macro.stderr
span-preservation.rs
span-preservation.stderr
struct-field-macro.rs
subspan.rs
subspan.stderr
test-same-crate.rs
test-same-crate.stderr
test.rs
three-equals.rs
three-equals.stderr
trailing-plus.rs
trailing-plus.stdout
trait-fn-args-2015.rs
two-crate-types-1.rs
two-crate-types-1.stderr
two-crate-types-2.rs
two-crate-types-2.stderr
unsafe-foreign-mod.rs
unsafe-mod.rs
visibility-path.rs
visibility-path.stderr
weird-braces.rs
weird-braces.stdout
weird-hygiene.rs
weird-hygiene.stderr