about summary refs log tree commit diff
path: root/tests/ui/repeat-expr
AgeCommit message (Collapse)AuthorLines
2025-09-26use `try_structurally_resolve_type` for method receiverlcnr-2/+2
We'll still error due to the `opt_bad_ty` of `method_autoderef_steps`. This slightly worsens the span of `infer_var.method()` which is now the same as for `Box::new(infer_var).method()`. Unlike `structurally_resolve_type`, `probe_op` does not check whether the infcx is already tainted, so this results in 2 previously not emitted errors.
2025-07-10Make `Diag::multipart_suggestions` always verboseEsteban Küber-3/+6
2025-06-11stabilize gaiBoxy-18/+6
2025-06-06Make obligation cause code suggestions verboseEsteban Küber-4/+5
``` error[E0277]: `()` is not a future --> $DIR/unnecessary-await.rs:28:10 | LL | e!().await; | ^^^^^ `()` is not a future | = help: the trait `Future` is not implemented for `()` = note: () must be a future or must implement `IntoFuture` to be awaited = note: required for `()` to implement `IntoFuture` help: remove the `.await` | LL - e!().await; LL + e!(); | ``` ``` error[E0277]: the trait bound `String: Copy` is not satisfied --> $DIR/const-fn-in-vec.rs:1:47 | LL | static _MAYBE_STRINGS: [Option<String>; 5] = [None; 5]; | ^^^^ the trait `Copy` is not implemented for `String` | = note: required for `Option<String>` to implement `Copy` = note: the `Copy` trait is required because this value will be copied for each element of the array help: create an inline `const` block | LL | static _MAYBE_STRINGS: [Option<String>; 5] = [const { None }; 5]; | +++++++ + ```
2025-05-26Add testBoxy-0/+25
2025-05-22ReviewsBoxy-2/+2
2025-05-21Check for element being `const` before resolving repeat countBoxy-32/+18
2025-05-21GAI logic on stable tooBoxy-7/+120
2025-05-21Properly test whether repeat expr checks are pre/post integer fallbackBoxy-82/+74
2025-05-21Don't allow repeat expr count inference side effects to propagateBoxy-2/+77
2025-04-30compiletest: Make diagnostic kind mandatory on line annotationsVadim Petrochenkov-17/+19
2025-02-27BlessBoxy-1/+172
2025-02-27Add inference constraining Copy impl testBoxy-0/+21
2025-02-10Show diff suggestion format on verbose replacementEsteban Küber-18/+27
``` 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; | ```
2025-01-09Always take the `Ok` path in `lit_to_const` and produce error constants insteadOli Scherer-6/+6
2024-12-21Suggest Semicolon in Incorrect Repeat ExpressionsVeera-14/+14
2024-12-21Add TestsVeera-0/+194
2024-07-11Account for `let foo = expr`; to suggest `const foo: Ty = expr;`Esteban Küber-2/+2
2024-07-11Use verbose style when suggesting changing `const` with `let`Esteban Küber-2/+5
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-2/+2
2024-01-24Remove extra # from urlest31-1/+1
2024-01-21Suggest arry::from_fn for array initializationyukang-0/+2
2023-11-24Show number in error message even for one errorNilstrieb-1/+1
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-04-12Tweak output for 'add line' suggestionEsteban Küber-1/+2
2023-01-30Modify primary span label for E0308Esteban Küber-2/+2
The previous output was unintuitive to users.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+161