about summary refs log tree commit diff
path: root/tests/ui/const_prop
AgeCommit message (Collapse)AuthorLines
2025-06-24Make missing lifetime suggestion verboseMichael Goulet-3/+6
2024-12-04Tweak unevaluated constant in pattern errorEsteban Küber-14/+2
Silence errors that are implied by the errors in the `const` item definition. Add a primary span label.
2024-12-04On `const` pattern errors, point at the `const` item definitionEsteban Küber-0/+5
Centralize emitting an error in `const_to_pat` so that all errors from that evaluating a `const` in a pattern can add addditional information. With this, now point at the `const` item's definition: ``` error[E0158]: constant pattern depends on a generic parameter --> $DIR/associated-const-type-parameter-pattern.rs:20:9 | LL | pub trait Foo { | ------------- LL | const X: EFoo; | ------------- constant defined here ... LL | A::X => println!("A::X"), | ^^^^ ```
2024-05-28Allow type_of to return partially non-error types if the type was already ↵Oli Scherer-1/+8
tainted
2024-04-24Fix tests and blessGary Guo-2/+0
2024-04-16Fail candidate assembly for erroneous typesGurinder Singh-8/+1
Trait predicates for types which have errors may still evaluate to OK leading to downstream ICEs. Now we return a selection error for such types in candidate assembly and thereby prevent such issues
2024-03-22add test for ice "type mismatching when copying!"Matthias Krüger-0/+49
Fixes #112824
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-27/+27
2024-02-10unstably allow constants to refer to statics and read from immutable staticsRalf Jung-27/+0
2023-11-28Rename and add another testAlona Enraght-Moony-0/+21
2023-11-27Auto merge of #117947 - Dirbaio:drop-llvm-15, r=cuviperbors-1/+0
Update the minimum external LLVM to 16. With this change, we'll have stable support for LLVM 16 and 17. For reference, the previous increase to LLVM 15 was #114148 [Relevant zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/riscv.20forced-atomics)
2023-11-24Show number in error message even for one errorNilstrieb-3/+3
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-21Update the minimum external LLVM to 16.Dario Nieuwenhuis-1/+0
2023-09-19Don't resolve generic instances if they may be shadowed by dynMichael Goulet-0/+50
2023-08-06add test for issue #111353Ralf Jung-0/+7
2023-08-06add test for issue #96944Ralf Jung-0/+26
2023-07-26Add tests for #102403 and #113407Ralf Jung-0/+24
2023-04-28move some const-prop tests to appropriate folderRalf Jung-0/+81
2023-04-28interpret: fail more gracefully on uninit unsized localsRalf Jung-0/+9
2023-04-06Auto merge of #109792 - cjgillot:reachable-lint, r=oli-obkbors-0/+16
Only visit reachable blocks in ConstProp lint. Fixes https://github.com/rust-lang/rust/issues/78803 Fixes https://github.com/rust-lang/rust/issues/109731
2023-04-05Only visit reachable blocks in ConstProp lint.Camille GILLOT-0/+16
2023-04-05Add regression test for #86351Yuki Okushi-0/+22
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-01-11Move /src/test to /testsAlbert Larsan-0/+82