summary refs log tree commit diff
path: root/tests/ui/consts
AgeCommit message (Expand)AuthorLines
2024-03-14preserve span when evaluating mir::ConstOperandRalf Jung-0/+130
2024-03-14Rollup merge of #122440 - RalfJung:required-consts, r=oli-obkMatthias Krüger-72/+447
2024-03-13include 32-bit variant for updated test of miri diagnostics.Felix S. Klock II-13/+167
2024-03-13const-eval: organize and extend tests for required-constsRalf Jung-72/+447
2024-03-13Rebase. Update expected output to match current output.Felix S. Klock II-89/+57
2024-03-13Updated the test to include more output normalization.Felix S. Klock II-31/+34
2024-03-13Added `deny(const_eval_mutable_ptr_in_final_value)` attribute to all tests th...Felix S. Klock II-60/+634
2024-03-13regression test from 121610.Felix S. Klock II-0/+41
2024-03-12Auto merge of #121644 - oli-obk:unique_static_innards2, r=RalfJung,nnethercotebors-0/+60
2024-03-12Ensure nested allocations in statics do not get deduplicatedOli Scherer-5/+7
2024-03-12Add tests showing how we duplicate allocations when we shouldn'tAmanjeev Sethi-0/+58
2024-03-12Rollup merge of #122343 - compiler-errors:rando, r=fmeaseMatthias Krüger-1/+0
2024-03-12Auto merge of #122036 - alexcrichton:test-wasm-with-wasi, r=oli-obkbors-2/+1
2024-03-11Remove some unnecessary allow(incomplete_features)Michael Goulet-1/+0
2024-03-11Update test directives for `wasm32-wasip1`Alex Crichton-2/+1
2024-03-11Rollup merge of #121893 - RalfJung:const-interior-mut-tests, r=oli-obkJubilee-28/+113
2024-03-11promote-not: add test that distinguishes promotion from outer scope ruleRalf Jung-22/+42
2024-03-11const-checking: add some corner case tests, and fix some nitsRalf Jung-1/+46
2024-03-08Auto merge of #122190 - matthiaskrgr:rollup-9ol4y30, r=matthiaskrgrbors-3/+49
2024-03-08Rollup merge of #122181 - chenyukang:yukang-fix-late-lint-crash, r=oli-obkMatthias Krüger-3/+33
2024-03-08Fix crash in late internal checkingyukang-3/+33
2024-03-08Don't ICE in CTFE if raw/fn-ptr types differMichael Goulet-0/+16
2024-03-07Merge collect_mod_item_types query into check_well_formedOli Scherer-20/+8
2024-03-02add comment and test: we do not do value-based reasoning for promotion of unionsRalf Jung-25/+45
2024-02-29Rollup merge of #121806 - RalfJung:const-metadata, r=oli-obkMatthias Krüger-33/+36
2024-02-29add const test for ptr::metadataRalf Jung-33/+36
2024-02-29make mutable_references_err not bitwidth-dependentRalf Jung-361/+2
2024-02-29allow statics pointing to mutable staticsRalf Jung-37/+196
2024-02-26Auto merge of #121516 - RalfJung:platform-intrinsics-begone, r=oli-obkbors-2/+2
2024-02-26Auto merge of #121461 - reitermarkus:generic-nonzero-tests, r=dtolnaybors-139/+140
2024-02-25Auto merge of #120393 - Urgau:rfc3373-non-local-defs, r=WaffleLapkinbors-0/+1
2024-02-25Use generic `NonZero` in tests.Markus Reiter-139/+140
2024-02-25make non-PartialEq-typed consts as patterns a hard errorRalf Jung-24/+4
2024-02-25fix use of platform_intrinsics in testsRalf Jung-2/+2
2024-02-24promotion: don't promote int::MIN / -1Ralf Jung-11/+62
2024-02-19Always evaluate free constants and statics, even if previous errors occurredOli Scherer-209/+247
2024-02-18Improve wording of static_mut_refObei Sideg-96/+94
2024-02-17Allow newly added non_local_definitions lint in testsUrgau-0/+1
2024-02-17Rollup merge of #120932 - RalfJung:mut-ptr-to-static, r=oli-obkGuillaume Boisseau-4/+98
2024-02-17const_mut_refs: allow mutable refs to staticsRalf Jung-4/+98
2024-02-17Enable `ConstPropLint` for promotedsGurinder Singh-188/+3386
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-576/+576
2024-02-16Rollup merge of #121179 - RalfJung:zst-mutable-refs, r=oli-obkGuillaume Gomez-325/+151
2024-02-16add test ensuring we detect a static actually having a mutable referenceRalf Jung-8/+29
2024-02-16Auto merge of #120500 - oli-obk:intrinsics2.0, r=WaffleLapkinbors-3/+2
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-311/+53
2024-02-16allow mutable references in const values when they point to no memoryRalf Jung-22/+35
2024-02-15Do not allocate a second "background" alloc id for the main allocation of a s...Oli Scherer-34/+51
2024-02-15Return ConstAllocation from eval_static_initializer query directlyOli Scherer-21/+6