about summary refs log tree commit diff
path: root/src/test/ui/rfc-2565-param-attrs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-1346/+0
2022-08-23Use par_body_owners for livenessSeo Sanghyeon-21/+21
2022-06-04Support the `#[expect]` attribute on fn parameters (RFC-2383)xFrednet-40/+40
2022-01-30Bless all pretty printer tests and ui testsDavid Tolnay-2/+2
2021-12-01Pretty print empty blocks as {}David Tolnay-9/+9
2021-08-12Use smaller spans for some structured suggestionsEsteban Kuber-3/+3
Use more accurate suggestion spans for * argument parse error * fully qualified path * missing code block type * numeric casts * E0212
2021-08-11Modify structured suggestion outputEsteban Küber-3/+3
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-04-12Turn old edition lints (anonymous-parameters, keyword-idents) into ↵Manish Goregaokar-29/+30
warn-by-default on 2015
2020-11-19resolve: Centralize some error reporting for unexpected macro resolutionsVadim Petrochenkov-156/+156
2020-10-04rewrite old test so that its attributes are consistent with what we want in ↵Felix S. Klock II-6/+6
the language. (Note that the fact this test existed is a slight sign that we may need a crater run on this bugfix...)
2020-07-01Rollup merge of #73345 - petrochenkov:nointerp, r=Aaron1011Manish Goregaokar-24/+23
expand: Stop using nonterminals for passing tokens to attribute and derive macros Make one more step towards fully token-based expansion and fix issues described in https://github.com/rust-lang/rust/issues/72545#issuecomment-640276791. Now `struct S;` is passed to `foo!(struct S;)` and `#[foo] struct S;` in the same way - as a token stream `struct S ;`, rather than a single non-terminal token `NtItem` which is then broken into parts later. The cost is making pretty-printing of token streams less pretty. Some of the pretty-printing regressions will be recovered by keeping jointness with each token, which we will need to do anyway. Unfortunately, this is not exactly the same thing as https://github.com/rust-lang/rust/pull/73102. One more observable effect is how `$crate` is printed in the attribute input. Inside `NtItem` was printed as `crate` or `that_crate`, now as a part of a token stream it's printed as `$crate` (there are good reasons for these differences, see https://github.com/rust-lang/rust/pull/62393 and related PRs). This may break old proc macros (custom derives) written before the main portion of the proc macro API (macros 1.2) was stabilized, those macros did `input.to_string()` and reparsed the result, now that result can contain `$crate` which cannot be reparsed. So, I think we should do this regardless, but we need to run crater first. r? @Aaron1011
2020-07-01expand: Stop using nonterminals for passing tokens to attribute and derive ↵Vadim Petrochenkov-24/+23
macros
2020-06-27Fix wording for anonymous parameter name helpJames Box-1/+1
2020-03-23Reword unused variable warningAlex Tokarev-19/+19
2020-01-24Normalise notes with the/isvarkor-1/+1
2019-11-06Remove "here" from "expected one of X here"Esteban Küber-1/+1
2019-10-02syntax: improve parameter without type suggestionsDavid Wood-0/+4
This commit improves the suggestions provided when function parameters do not have types: - A new suggestion is added for arbitrary self types, which suggests adding `self: ` before the type. - Existing suggestions are now provided when a `<` is found where a `:` was expected (previously only `,` and `)` or trait items), this gives suggestions in the case where the unnamed parameter type is generic in a free function. - The suggestion that a type name be provided (e.g. `fn foo(HashMap<u32>)` -> `fn foo(HashMap: TypeName<u32>)`) will no longer occur when a `<` was found instead of `:`. - The ident will not be used for recovery when a `<` was found instead of `:`. Signed-off-by: David Wood <david@davidtw.co>
2019-09-29syntax: fix #64682.Mazdak Farrokhzad-46/+312
Fuse parsing of `self` into `parse_param_general`.
2019-09-24Remove blanket silencing of "type annotation needed" errorsEsteban Küber-3/+3
Remove blanket check for existence of other errors before emitting "type annotation needed" errors, and add some eager checks to avoid adding obligations when they refer to types that reference `[type error]` in order to reduce unneded errors.
2019-09-11Stabilize `param_attrs` in Rust 1.39.0Caio-129/+79
2019-09-09Resolve attributes in several placesCaio-207/+106
Arm, Field, FieldPat, GenericParam, Param, StructField and Variant
2019-08-31Harden param_attrs test wrt. usage of proc macro attrs.Mazdak Farrokhzad-0/+299
2019-08-25parser: gracefully handle `fn foo(A | B: type)`.Mazdak Farrokhzad-3/+3
2019-08-20Remove async_await gates from tests.Mazdak Farrokhzad-1/+1
2019-08-02Test for printing attrs on formal params.Mazdak Farrokhzad-0/+90
2019-07-27Lint attributes on function argumentsCaio-182/+97
2019-07-13Tweak wording in feature gate errorsEsteban Küber-16/+16
2019-07-09normalize use of backticks in compiler messages for libsyntax/feature_gateSamy Kacimi-10/+10
https://github.com/rust-lang/rust/issues/60532
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-06-09Allow attributes in formal function parametersCaio-0/+923