salsa/tests/compile-fail/derive_update_expansion_failure.rs
Lukas Wirth 8528bab609
Some checks failed
Release-plz / Release-plz PR (push) Has been cancelled
Book / Book (push) Has been cancelled
Release-plz / Release-plz release (push) Has been cancelled
Test / Test (push) Has been cancelled
Test / Miri (push) Has been cancelled
Test / Shuttle (push) Has been cancelled
Test / Benchmarks (push) Has been cancelled
Book / Deploy (push) Has been cancelled
feat: Update derive field overwrite support (#747)
* `Update` derive field overwrite support

* Allow overwriting tracked struct field update functions
2025-06-13 17:17:39 +00:00

16 lines
217 B
Rust

#[derive(salsa::Update)]
union U {
field: i32,
}
#[derive(salsa::Update)]
struct S {
#[update(with(missing_unsafe))]
bad: i32,
}
fn missing_unsafe(_: *mut i32, _: i32) -> bool {
true
}
fn main() {}