about summary refs log tree commit diff
path: root/tests/ui/macros
AgeCommit message (Collapse)AuthorLines
2023-03-27check for write macro and write_fmt with err msgJames Dietz-0/+76
added ui test blessed stderrs fixed typo reblessed
2023-03-19fix: modify the condition that `resolve_imports` stopsbohan-0/+83
2023-03-17Suggest surrounding the macro with `{}` to interpret as a statementMu42-0/+25
2023-03-12Remove uses of `box_syntax` in rustc and toolsclubby789-8/+1
2023-03-11Auto merge of #109019 - matthiaskrgr:rollup-ihjntil, r=matthiaskrgrbors-4/+56
Rollup of 9 pull requests Successful merges: - #104363 (Make `unused_allocation` lint against `Box::new` too) - #106633 (Stabilize `nonzero_min_max`) - #106844 (allow negative numeric literals in `concat!`) - #108071 (Implement goal caching with the new solver) - #108542 (Force parentheses around `match` expression in binary expression) - #108690 (Place size limits on query keys and values) - #108708 (Prevent overflow through Arc::downgrade) - #108739 (Prevent the `start_bx` basic block in codegen from having two `Builder`s at the same time) - #108806 (Querify register_tools and post-expansion early lints) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-03-11Rollup merge of #108542 - bwmf2:expanded, r=wesleywiserMatthias Krüger-1/+25
Force parentheses around `match` expression in binary expression This attempts to solve https://github.com/rust-lang/rust/issues/98790.
2023-03-11Rollup merge of #106844 - Ezrashaw:concat-negative-int-lit, r=dtolnayMatthias Krüger-3/+31
allow negative numeric literals in `concat!` Fixes #106837 While *technically* negative numeric literals are implemented as unary operations, users can reasonably expect that negative literals are treated the same as positive literals.
2023-03-10Add note when matching token with nonterminalNilstrieb-0/+1
The current error message is _really_ confusing.
2023-03-02Rollup merge of #108573 - kornelski:runtimeenvs, r=WaffleLapkinMatthias Krüger-4/+5
Explain compile-time vs run-time difference in env!() error message This PR is clarifying error message of `env!()` based on this user question: https://users.rust-lang.org/t/environment-variable-out-dir-is-undefined/90067 It makes it clear that `env!()` is for env variables defined at compile-time. There's special-case help text for common Cargo build script variables. I've also rearranged the code to avoid allocating error message on the happy path when the env var is defined.
2023-03-02Add UI testbwmf2-0/+24
2023-03-02Fix UI testbwmf2-1/+1
2023-02-28Explain compile-time vs run-time difference in env!() error messageKornel-4/+5
2023-02-28Exit when there are unmatched delims to avoid noisy diagnosticsyukang-54/+1
2023-02-07Expand const-if-const trait bounds correctlyMichael Goulet-3/+3
2023-01-26Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obkbors-18/+18
Move format_args!() into AST (and expand it during AST lowering) Implements https://github.com/rust-lang/compiler-team/issues/541 This moves FormatArgs from rustc_builtin_macros to rustc_ast_lowering. For now, the end result is the same. But this allows for future changes to do smarter things with format_args!(). It also allows Clippy to directly access the ast::FormatArgs, making things a lot easier. This change turns the format args types into lang items. The builtin macro used to refer to them by their path. After this change, the path is no longer relevant, making it easier to make changes in `core`. This updates clippy to use the new language items, but this doesn't yet make clippy use the ast::FormatArgs structure that's now available. That should be done after this is merged.
2023-01-25Rollup merge of #106897 - estebank:issue-99430, r=davidtwcoMatthias Krüger-0/+4
Tweak E0597 CC #99430
2023-01-21Add `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` to future-incompat reportAaron Hill-0/+68
2023-01-17note -> helpMichael Goulet-5/+5
2023-01-17Account for method call and indexing when looking for inner-most path in ↵Esteban Küber-0/+4
expression
2023-01-15allow negative numeric literals in `concat!`Ezra Shaw-3/+31
2023-01-12Bless tests.Mara Bos-18/+18
2023-01-11Move /src/test to /testsAlbert Larsan-0/+16460