rust/tests/ui/consts/control-flow
Jieyou Xu b38a86f4d7
Revert "Rollup merge of #122661 - estebank:assert-macro-span, r=petrochenkov"
This reverts commit 1eeb8e8b15, reversing
changes made to 324bf2b9fd.

Unfortunately the assert desugaring change is not backwards compatible,
see RUST-145770.

Code such as

```rust
#[derive(Debug)]
struct F {
    data: bool
}

impl std::ops::Not for F {
  type Output = bool;
  fn not(self) -> Self::Output { !self.data }
}

fn main() {
  let f = F { data: true };

  assert!(f);
}
```

would be broken by the assert desugaring change. We may need to land
the change over an edition boundary, or limit the editions that the
desugaring change impacts.
2025-09-11 09:10:46 +08:00
..
assert.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
assert.stderr Revert "Rollup merge of #122661 - estebank:assert-macro-span, r=petrochenkov" 2025-09-11 09:10:46 +08:00
basics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dead_branches_dont_eval.rs add test for #122301 to cover behavior that's on stable 2024-03-17 14:58:22 +01:00
drop-fail.precise.stderr Gate const drop behind const_destruct feature, and fix const_precise_live_drops post-drop-elaboration check 2024-11-22 16:54:40 +00:00
drop-fail.rs Gate const drop behind const_destruct feature, and fix const_precise_live_drops post-drop-elaboration check 2024-11-22 16:54:40 +00:00
drop-fail.stock.stderr Gate const drop behind const_destruct feature, and fix const_precise_live_drops post-drop-elaboration check 2024-11-22 16:54:40 +00:00
drop-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-precise.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
exhaustive-c-like-enum-match.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
feature-gate-const-if-match.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
interior-mutability.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
interior-mutability.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-46843.rs Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
issue-46843.stderr Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00
issue-50577.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-50577.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
loop.rs Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
loop.stderr Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
short-circuit-let.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
short-circuit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
single_variant_match_ice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try.rs Constify Try, From, TryFrom 2025-07-21 12:49:45 +03:00