mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-04 11:00:05 +00:00

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
* `Update` derive field overwrite support * Allow overwriting tracked struct field update functions
16 lines
217 B
Rust
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() {}
|