rust/compiler/rustc_trait_selection/src
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
..
error_reporting Revert "Rollup merge of #122661 - estebank:assert-macro-span, r=petrochenkov" 2025-09-11 09:10:46 +08:00
errors Fix elided lifetimes in rustdoc 2025-07-04 18:26:09 +00:00
solve erase_regions to erase_and_anonymize_regions 2025-09-09 14:49:16 +02:00
traits Driveby fixes 2025-09-09 14:49:16 +02:00
errors.rs Use tcx.short_string() in more diagnostics 2025-08-07 21:18:00 +00:00
infer.rs optimize CanonicalVarValues::instantiate 2025-09-08 14:17:56 +02:00
lib.rs Suggest bounds in more cases, accounting for type parameters referenced in predicate 2025-08-04 16:12:58 +00:00
opaque_types.rs change non-defining use error message 2025-08-25 14:20:18 +02:00
regions.rs Consider outlives assumptions when proving auto traits for coroutine interiors 2025-07-15 16:02:26 +00:00
solve.rs cleanup proof tree implementation and add cache 2025-08-29 09:35:37 +02:00