Files
rust/compiler/rustc_middle/src
Stuart Cook fce74bacf3 Rollup merge of #144573 - BoxyUwU:patkind_constant_ptr_docs, r=lcnr
Raw Pointers are Constant PatKinds too

raw pointers can be matched on with a const pattern:
```rust
const FOO: *const u8 = core::ptr::null();

fn foo(a: *const u8) {
  match a {
    FOO => (),
    _ => todo!(),
  }
}
```
as far as I can tell this is represented with a `PatKind::Constant`: https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs#L333-L337
2025-07-29 16:16:44 +10:00
..
2025-07-17 18:06:26 +08:00
2025-07-23 23:54:37 +00:00
2025-07-15 16:02:26 +00:00
2025-07-01 15:53:50 +02:00
2025-07-28 09:54:55 -05:00
2025-03-30 01:32:21 +03:00
2025-07-01 10:55:49 -07:00
2025-03-15 06:34:36 +00:00
2025-07-28 10:13:19 +01:00