about summary refs log tree commit diff
path: root/tests/ui/consts/const-mut-refs
AgeCommit message (Collapse)AuthorLines
2025-09-03don't uppercase error messagesSasha Pourcelot-7/+7
a more general version of https://github.com/rust-lang/rust/pull/146080. after a bit of hacking in [`fluent.rs`](https://github.com/rust-lang/rust/blob/master/compiler/rustc_fluent_macro/src/fluent.rs), i discovered that i'm not the only one that is bad at following guidelines :sweat_smile:. this pr lowercases the first letter of all the error messages in the codebase. (i did not change things that are traditionally uppercased such as _MIR_, _ABI_ or _C_) i think it's reasonable to run a `@bors try` so all the test suite is checked, as i cannot run some of the tests on my machine. i double checked (and replaced manually) all the old error messages, but better be safe than sorry. in the future i will try to add a check in `x test tidy` that errors if an error message starts with an uppercase letter.
2025-06-27const checks: avoid 'top-level scope' terminologyRalf Jung-21/+49
2025-06-26clarify and unify 'transient mutable borrow' errorsRalf Jung-15/+15
2025-06-26add more sensible mut-ref-to-immutable testRalf Jung-8/+21
2025-06-26const-eval: allow constants to refer to mutable/external memory, but reject ↵Ralf Jung-2/+2
such constants as patterns
2025-06-13Update tests.Mara Bos-8/+4
2025-06-02Use the informative error as the main const eval error messageOli Scherer-33/+29
2025-04-30compiletest: Make diagnostic kind mandatory on line annotationsVadim Petrochenkov-20/+22
2024-12-27Remove the `-test` suffix from normalize directivesZalathar-6/+6
2024-12-09fix ICE on type error in promotedRalf Jung-6/+0
2024-12-01fix ICE when promoted has layout size overflowRalf Jung-0/+6
2024-09-26Stabilize `const_refs_to_static`Ding Xiang Fei-6/+5
update tests fix bitwidth-sensitive stderr output use build-fail for asm tests
2024-09-15const: don't ICE when encountering a mutable ref to immutable memoryRalf Jung-13/+34
2024-09-15stabilize const_mut_refsRalf Jung-47/+19
2024-08-18stabilize raw_ref_opRalf Jung-18/+15
2024-07-11Always use a colon in `//@ normalize-*:` headersZalathar-3/+3
2024-04-17Validate before reporting interning errors.Oli Scherer-6/+16
validation produces much higher quality errors and already handles most of the cases
2024-02-29allow statics pointing to mutable staticsRalf Jung-36/+15
2024-02-19Always evaluate free constants and statics, even if previous errors occurredOli Scherer-10/+3
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-5/+5
2024-02-16add test ensuring we detect a static actually having a mutable referenceRalf Jung-8/+29
2024-02-16add back some more attempts at having &mut in the final value of a const/staticRalf Jung-7/+57
2024-02-16remove stderr-per-bitwidth from some testsRalf Jung-63/+11
2024-02-16allow mutable references in const values when they point to no memoryRalf Jung-22/+35
2024-01-22const-eval interner: from-scratch rewrite using mutability information from ↵Ralf Jung-12/+49
provenance rather than types
2024-01-13Bless testsGeorge-lewis-0/+3
Update tests
2023-11-24Show number in error message even for one errorNilstrieb-1/+1
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-10-15don't UB on dangling ptr deref, instead check inbounds on projectionsRalf Jung-31/+44
2023-05-15Suppress "erroneous constant used" for constants tainted by errorsTomasz Miąsko-13/+0
When constant evaluation fails because its MIR is tainted by errors, suppress note indicating that erroneous constant was used, since those errors have to be fixed regardless of the constant being used or not.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+331