gvozdvmozgu
567563e131
fix HashEqLike
for Box<T>
2025-01-12 01:47:31 -08:00
gvozdvmozgu
3256adeec3
bless ui tests
2025-01-11 21:34:58 -08:00
Lukas Wirth
f2f9e115c2
Cleanup
2025-01-04 11:12:57 +01:00
Lukas Wirth
cc4cc1e6ae
Add self-ref test
2025-01-04 11:03:11 +01:00
Lukas Wirth
87fdc13d4f
Fix parallel_map::execute_cancellation test
2024-12-23 17:11:46 +01:00
David Barsky
0ac5c1c984
Merge pull request #614 from ShoyuVanilla/issue-600
...
Book / Book (push) Has been cancelled
Test / Test (push) Has been cancelled
Test / Miri (push) Has been cancelled
Test / Benchmarks (push) Has been cancelled
Book / Deploy (push) Has been cancelled
Assign memo ingredients per salsa-struct-ingredient
2024-12-18 16:21:47 +00:00
David Barsky
db7274ecb0
internal: ignore parallel tests under miri
2024-11-25 11:46:03 -05:00
David Barsky
5f0904ae4a
introduce parallel salsa
2024-11-25 11:29:24 -05:00
Shoyu Vanilla
d34ed1495e
Add a test for tracked function with multiple salsa struct args
2024-11-15 01:41:18 +09:00
Jake
e0febd904a
salsa-macros: handle invalid inputs in a way friendlier to rust-analyzer
2024-10-24 16:37:28 -07:00
Niko Matsakis
710691d607
Merge pull request #596 from ShoyuVanilla/issue-519
...
Book / Book (push) Waiting to run
Book / Deploy (push) Blocked by required conditions
Test / Test (false, beta) (push) Waiting to run
Test / Test (false, stable) (push) Waiting to run
Test / Test (true, nightly) (push) Waiting to run
Test / Miri (push) Waiting to run
Test / Benchmarks (push) Waiting to run
fix: Inconsistent behaviour with lifetime elision on tracked fn
2024-10-17 14:55:02 +00:00
Shoyu Vanilla
57f38aa84b
fix: Inconsistent behaviour with lifetime elision on tracked fn
2024-10-17 01:02:32 +09:00
puuuuh
53a3235a60
Add IngredientIndex to KeyStruct
2024-10-15 21:14:58 +03:00
David Barsky
c6c51a0ea0
Merge pull request #593 from ShoyuVanilla/issue-577
...
Book / Book (push) Has been cancelled
Test / Test (false, beta) (push) Has been cancelled
Test / Test (false, stable) (push) Has been cancelled
Test / Test (true, nightly) (push) Has been cancelled
Test / Miri (push) Has been cancelled
Test / Benchmarks (push) Has been cancelled
Book / Deploy (push) Has been cancelled
fix: Replace `SelfTy` with actual type in tracked methods
2024-10-15 14:33:54 +00:00
Shoyu Vanilla
ad1f84d80f
fix: Replace SelfTy
with actual type in tracked methods
2024-10-14 02:00:28 +09:00
puuuuh
de95f497ce
fix fmt
...
Fix clippy warnings
2024-10-10 18:33:50 +03:00
puuuuh
e9ee280c10
Add impl for Lookup Vec via [A; N]
2024-10-10 03:43:47 +03:00
puuuuh
1e18334672
Add way to intern structs from references
2024-10-10 03:43:40 +03:00
Micha Reiser
2d55e83845
Remove deleted entries from tracked_struct_ids
2024-09-13 15:19:40 -04:00
Dhruv Manilawala
eba970e485
Add tests that panics when recreating a new salsa revision
2024-09-13 11:31:33 -04:00
Carl Meyer
403ab25c33
add test for high-durability dependency validation
2024-08-28 13:33:40 -07:00
Micha Reiser
3f93415313
Fix const query with custom database trait
2024-08-20 21:49:30 +02:00
Micha Reiser
4609fd0043
Add failing test
2024-08-20 21:34:38 +02:00
Niko Matsakis
6401563755
store memoized fn results attached to the salsa struct
2024-08-20 10:09:49 -04:00
Niko Matsakis
703f312eae
port input to use Table
2024-08-20 10:09:49 -04:00
Niko Matsakis
188f759555
use table for tracked structs and their fields
...
This also retools a tiny bit how deletion works.
We will reuse ids faster than before, actually.
2024-08-20 10:09:49 -04:00
Niko Matsakis
a27befeeba
run tests with UPDATE_EXPECT=1
2024-08-20 10:09:49 -04:00
Micha Reiser
c4fee35157
Preserve durability when setting a new input-value
2024-08-07 09:08:03 +02:00
Micha Reiser
547663f7a5
Fix clippy warnings
2024-08-06 08:56:06 +02:00
Micha Reiser
fbc7b8c544
Move Builder::new
impl out of Configuration::builder
method
2024-08-06 08:53:03 +02:00
Micha Reiser
17a2f6b2ca
Add support for [#default]
and setting field-level durability
2024-08-06 08:47:57 +02:00
Micha Reiser
632faff5a6
Implement inputs builder
2024-08-06 08:44:12 +02:00
Micha Reiser
d6df21fba1
Merge pull request #557 from MichaReiser/high-durability-write
...
Book / Book (push) Waiting to run
Book / Deploy (push) Blocked by required conditions
Test / Test (false, beta) (push) Waiting to run
Test / Test (false, stable) (push) Waiting to run
Test / Test (true, nightly) (push) Waiting to run
Test / Miri (push) Waiting to run
Test / Benchmarks (push) Waiting to run
Fix query invalidation when high durability input changes
2024-08-05 16:36:21 +00:00
Carl Meyer
56e29b554d
Add test tracing, fix up comments
2024-08-05 08:34:59 -07:00
Micha Reiser
a263dd04ba
Fix query invalidation when high durability input changes
2024-08-05 16:24:39 +02:00
Niko Matsakis
4d2ccffddc
return to the database-wrapping-storage setup
2024-08-04 02:18:54 -04:00
Niko Matsakis
a675810edf
move local-state into DatabaseImpl
...
Each clone gets an independent local state.
2024-07-28 12:47:50 +00:00
Niko Matsakis
138ca4b1f3
merge handle into the database
...
Separate handles are no longer needed.
2024-07-28 12:47:50 +00:00
Niko Matsakis
daaa78056a
switch to new database design
...
Under this design, *all* databases are a
`DatabaseImpl<U>`, where the `U` implements
`UserData` (you can use `()` if there is none).
Code would default to `&dyn salsa::Database` but
if you want to give access to the userdata, you
can define a custom database trait
`MyDatabase: salsa::Databse` so long as you
* annotate `MyDatabase` trait definition of
impls of `MyDatabase` with `#[salsa::db]`
* implement `MyDatabase` for `DatabaseImpl<U>`
where `U` is your userdata (this could be a
blanket impl, if you don't know the precise
userdata type).
The `tests/common/mod.rs` shows the pattern.
2024-07-28 12:47:50 +00:00
Niko Matsakis
64556e9d28
make event generation lazy
...
Creating events if nobody is listening has
always bugged me.
2024-07-28 12:35:33 +00:00
Micha Reiser
b98434a5e2
Bump revision in db.synthetic_write
2024-07-26 15:56:51 +02:00
Niko Matsakis
8a3cc6e404
add a test for handle cancellation
...
I realized there weren't any!
2024-07-24 10:36:07 +00:00
Niko Matsakis
a5395665ce
order cycles by debug_name first
...
We used to sort just by the ingredient index,
but since those are now added dynamically,
that can be fairly unstable in some of the tests.
We now sort by the "debug name" of the ingredient
first, which is more reliably stable.
2024-07-24 10:10:37 +00:00
Niko Matsakis
470c5b3d78
restore parallel_cycle_one_recover
2024-07-24 09:54:30 +00:00
Niko Matsakis
ac474a9c8d
restore parallel_cycle_mid_recover
2024-07-24 09:53:24 +00:00
Niko Matsakis
82d37de105
start restoring parallel tests
2024-07-24 09:46:19 +00:00
Niko Matsakis
3d2b2d3a65
remove RuntimeId and use ThreadId
2024-07-23 11:53:37 -04:00
Niko Matsakis
f5f21cf55e
Merge pull request #508 from MichaReiser/id-manual-debug-impl
...
Book / Book (push) Waiting to run
Book / Deploy (push) Blocked by required conditions
Test / Test (false, beta) (push) Waiting to run
Test / Test (false, stable) (push) Waiting to run
Test / Test (true, nightly) (push) Waiting to run
Test / Miri (push) Waiting to run
Manual `Debug` impl for `salsa::Id`
2024-07-22 19:57:21 +00:00
Niko Matsakis
c8234e4fbf
Merge pull request #524 from PhoebeSzmucer/ps/accumulate-chain
...
Fix accumulator only accumulating direct children
2024-07-22 19:55:58 +00:00
Phoebe Szmucer
a85ac260d3
Add a more complex case
2024-07-22 20:12:54 +01:00