about summary refs log tree commit diff
path: root/tests/ui/consts
AgeCommit message (Expand)AuthorLines
2024-03-10Move generic `NonZero` `rustc_layout_scalar_valid_range_start` attribute to i...Markus Reiter-6/+6
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-20Stabilize `LazyCell` and `LazyLock` (`lazy_cell`)Peter Jaszkowiak-4/+4
2024-05-24Fail relating constants of different typesOli Scherer-0/+51
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
2024-02-15Add new query just for static initializersOli Scherer-10/+25
2024-02-14Auto merge of #120847 - oli-obk:track_errors9, r=compiler-errorsbors-2/+17
2024-02-14Rollup merge of #120893 - c410-f3r:testsssssss, r=petrochenkovGuillaume Gomez-0/+29
2024-02-14Continue compilation after check_mod_type_wf errorsOli Scherer-2/+17
2024-02-13Move testsCaio-0/+29
2024-02-13Do not point at `#[allow(_)]` as the reason for compat lint triggeringEsteban Küber-5/+0
2024-02-13Rollup merge of #120973 - RalfJung:static_mut_ref, r=compiler-errorsMatthias Krüger-131/+23
2024-02-12Rollup merge of #120970 - RalfJung:static-promoted-test, r=oli-obkMatthias Krüger-0/+33
2024-02-12allow static_mut_ref in some tests that specifically test mutable staticsRalf Jung-131/+23
2024-02-12Support safe intrinsics with fallback bodiesOli Scherer-1/+1
2024-02-12Rollup merge of #120933 - RalfJung:const-check-misc, r=oli-obkMatthias Krüger-125/+1
2024-02-12add another test for promoteds-in-staticRalf Jung-0/+33
2024-02-12Implement intrinsics with fallback bodiesOli Scherer-2/+1
2024-02-12fix cycle error when a static and a promoted are mutually recursiveRalf Jung-0/+12
2024-02-11check_consts: fix some duplicate errors by not calling check_static unnecessa...Ralf Jung-125/+1