about summary refs log tree commit diff
path: root/tests/ui/const-generics/early
AgeCommit message (Collapse)AuthorLines
2025-06-12Rollup merge of #142157 - Enselic:trivial-anon-const-use-cases, ↵Matthias Krüger-10/+10
r=compiler-errors rustc_resolve: Improve `resolve_const_param_in_non_trivial_anon_const` wording In some contexts, const expressions are OK. Add a `here` to the error message to clarify this. Closes rust-lang/rust#79429 which has 15 x 👍
2025-06-07rustc_resolve: Improve `resolve_const_param_in_non_trivial_anon_const` wordingMartin Nordholts-10/+10
In some contexts, const expressions are OK. Add a `here` to the error message to clarify this.
2025-06-04Verbose suggestion to make param `const`Esteban Küber-3/+7
``` error[E0747]: type provided when a constant was expected --> $DIR/invalid-const-arguments.rs:10:19 | LL | impl<N> Foo for B<N> {} | ^ | help: consider changing this type parameter to a const parameter | LL - impl<N> Foo for B<N> {} LL + impl<const N: u8> Foo for B<N> {} | ```
2025-04-08UI tests: add missing diagnostic kinds where possibleVadim Petrochenkov-2/+2
2025-02-10Show diff suggestion format on verbose replacementEsteban Küber-4/+6
``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
2024-12-12Tweak multispan renderingEsteban Küber-4/+1
Consider comments and bare delimiters the same as an "empty line" for purposes of hiding rendered code output of long multispans. This results in more aggressive shortening of rendered output without losing too much context, specially in `*.stderr` tests that have "hidden" comments.
2024-11-28add testslcnr-36/+352
2024-11-05Check for both `StmtKind::MacCall` and `ExprKind::MacCall`Boxy-0/+425
2024-09-21Handle macro calls in anon const def creation take 2Boxy-0/+108
2024-08-19Retroactively feature gate `ConstArgKind::Path`Boxy-0/+86
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-1/+1
2023-11-30generic_const_exprs: suggest to add the feature, not use itRalf Jung-4/+4
2023-11-24Show number in error message even for one errorNilstrieb-3/+3
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-09-10Generalize E0401León Orell Valerian Liehr-5/+5
2023-02-20`const` generic -> const parameter in err msglcnr-6/+3
2023-01-11Move /src/test to /testsAlbert Larsan-0/+390