Commit graph

1352 commits

Author SHA1 Message Date
XFFXFF
e86252d051 add synthetic_write to salsa::Database 2022-08-25 06:13:12 +08:00
XFFXFF
2dc5a6c796 remove salsa_runtime 2022-08-25 06:01:23 +08:00
Adam Andersson
18507f2ff7 fix some typos 2022-08-24 21:12:58 +02:00
Sean Chen
c99ed79b86 Fix a merge conflict 2022-08-24 13:00:24 -05:00
Sean Chen
b9bd1462cb Fix a merge conflict 2022-08-24 12:01:45 -05:00
andrzej.gluszak
73102b1e8e Fix clippy issues 2022-08-24 18:45:53 +02:00
Andrzej Głuszak
dc696726cf Update test.yml
- Add names to steps
- No need to run clippy AND check (https://stackoverflow.com/questions/57449356/is-cargo-clippy-a-superset-of-cargo-check)
2022-08-24 18:45:53 +02:00
Sean Chen
f2aff84b73 Merge branch 'master' of https://github.com/seanchen1991/salsa 2022-08-24 09:40:14 -05:00
Sean Chen
6eaab4f9b5 Incorporate PR feedback 2022-08-24 09:40:09 -05:00
Sean Chen
6995da0678
Expand on what dyn-safe means
Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
2022-08-24 09:39:28 -05:00
XFFXFF
0e0626abfa writes with jars_mut 2022-08-24 20:17:13 +08:00
XFFXFF
6776919f39 give salsa_runtime a default implementation 2022-08-24 20:11:48 +08:00
XFFXFF
f5b0ff59d3 add runtime_mut and synthetic_write to HasJarsDyn 2022-08-24 20:01:00 +08:00
XFFXFF
ea0df0fc03 impl runtime_mut for test in debug.rs 2022-08-24 19:04:35 +08:00
XFFXFF
2912e60938 impl salsa_runtime_mut for all the tests 2022-08-24 19:00:21 +08:00
XFFXFF
340e2d521d add synthetic write 2022-08-24 19:00:21 +08:00
bors[bot]
5ce4662b81
Merge #371
371: Ported LRU improvements from old salsa to salsa 2022 r=nikomatsakis a=OLUWAMUYIWA

## What?
In handling evictions from the LRU, I replaced the `delete_memo`  with `evict` in the while keeping the `delete_memo` intact. 

## How?
This mechanism was already implemented in old `salsa `. I only had to port it.

Fixes: #365

Co-authored-by: OLUWAMUYIWA <onigbindemy@gmail.com>
Co-authored-by: Onigbinde Oluwamuyiwa Elijah <onigbindemy@gmail.com>
Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
2022-08-24 10:47:28 +00:00
Niko Matsakis
282f45e011 run cargo fmt 2022-08-24 06:46:03 -04:00
bors[bot]
38c9b612dd
Merge #378
378: Derive DebugWithDb r=nikomatsakis a=agluszak

Closes #317 

Co-authored-by: Andrzej Głuszak <gluszak.andrzej@gmail.com>
2022-08-24 10:37:09 +00:00
Andrzej Głuszak
fe1c4b42e2 Fix parser test 2022-08-24 11:24:31 +02:00
Andrzej Głuszak
8e27ecd098 Fix formatting 2022-08-24 00:10:07 +02:00
Andrzej Głuszak
0c3084d009 Test cleanup 2022-08-24 00:01:44 +02:00
Andrzej Głuszak
fbb219a527 Add a test 2022-08-23 23:54:18 +02:00
Andrzej Głuszak
8fc6dc82ac More cleanup 2022-08-23 23:39:51 +02:00
Andrzej Głuszak
fdc8018234 Cleanup 2022-08-23 23:38:19 +02:00
Andrzej Głuszak
e3f09fa122 Update book 2022-08-23 23:33:14 +02:00
Andrzej Głuszak
43cd95fe47 Derive DebugWithDb 2022-08-23 23:26:07 +02:00
Sean Chen
f4bf1626e1 Miscellaneous book revisions 2022-08-23 14:55:57 -05:00
Sean Chen
dccabdedef Revert some more 'salsa' -> 'Salsa' changes 2022-08-23 14:50:22 -05:00
Sean Chen
f9a69b3fbc Merge branch 'master' of https://github.com/seanchen1991/salsa 2022-08-23 14:45:55 -05:00
Sean Chen
a756722f71 Revert 'Salsa' -> 'salsa' changes 2022-08-23 14:45:35 -05:00
bors[bot]
9677935c9c
Merge #374
374: Add test for durability r=nikomatsakis a=crlf0710

Fixes #339 .

Co-authored-by: Charles Lew <crlf0710@gmail.com>
2022-08-23 19:23:51 +00:00
Onigbinde Oluwamuyiwa Elijah
4b2c42e3c4
Merge branch 'salsa-rs:master' into lru_port 2022-08-22 20:53:04 +01:00
Sean Chen
454e5518d2 Start proofreading the 'how salsa works' section 2022-08-22 14:16:38 -05:00
Sean Chen
c49339fa10
Merge branch 'salsa-rs:master' into master 2022-08-22 13:05:16 -05:00
Sean Chen
0f7a8c33ae Editing overview, tutorial, and reference sections 2022-08-22 13:03:03 -05:00
Charles Lew
8d956a8229 Add test for durability 2022-08-22 21:50:58 +08:00
bors[bot]
d3f0077d21
Merge #369
369: Try to fix issue#340 r=XFFXFF a=zjp-CN

(WIP) 

Follow the instructions from https://github.com/salsa-rs/salsa/issues/340#issuecomment-1210153085.

Still not sure what to do with `fmt_index`...

Fix #340

Co-authored-by: zjp <jiping_zhou@foxmail.com>
Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
2022-08-22 13:42:18 +00:00
zjp
edc44e44f8 update tests 2022-08-22 21:32:50 +08:00
zjp
863ec4ac7f fix(debug_name): impl for InternedIngredient 2022-08-22 21:17:48 +08:00
bors[bot]
e1f162742d
Merge #362
362: Implement Setter API r=XFFXFF a=crlf0710

Fixes #329 

Co-authored-by: Charles Lew <crlf0710@gmail.com>
2022-08-22 13:14:49 +00:00
zjp
4966acbc64 feat(literal): a helper to convert Ident to Literal 2022-08-22 20:22:57 +08:00
Charles Lew
7267452ff1 Implement Setter API 2022-08-22 19:22:47 +08:00
Charles Lew
66b5d45995 Fix local doctest failure. 2022-08-22 19:22:37 +08:00
zjp
d835b0782c add empty/default rustfmt.toml 2022-08-22 19:19:22 +08:00
Niko Matsakis
bf00d4217f apply cargo fmt 2022-08-22 06:21:23 -04:00
bors[bot]
6320991c8b
Merge #372
372: run `cargo test -p salsa-2022-tests` in CI r=nikomatsakis a=XFFXFF

* run `cargo test -p salsa-2022-tests` in CI
* check format first

Co-authored-by: XFFXFF <1247714429@qq.com>
2022-08-22 10:12:23 +00:00
XFFXFF
dfc3ff0f80 using cargo test --all 2022-08-22 18:09:35 +08:00
bors[bot]
0f3c887cb1
Merge #373
373: Cargo updates r=nikomatsakis a=vemoo

- Unify `parking_log` versions
- `test-env-log` has been renamed
- Update `heck`, `dashmap` and `hashlink` to theirs latest versions

With this `cargo tree --workspace --duplicates` now doesn't return anything, when in master it returned:
```
env_logger v0.7.1
[dev-dependencies]
└── salsa v0.17.0-pre.2 (/home/berni/Documents/src/salsa)

env_logger v0.9.0
└── salsa-2022-tests v0.1.0 (/home/berni/Documents/src/salsa/salsa-2022-tests)

getrandom v0.1.16
├── rand v0.7.3
│   └── rand_distr v0.2.2
│       [dev-dependencies]
│       └── salsa v0.17.0-pre.2 (/home/berni/Documents/src/salsa)
│   [dev-dependencies]
│   └── salsa v0.17.0-pre.2 (/home/berni/Documents/src/salsa)
└── rand_core v0.5.1
    ├── rand v0.7.3 (*)
    └── rand_chacha v0.2.2
        └── rand v0.7.3 (*)

getrandom v0.2.7
└── ahash v0.7.6
    └── hashbrown v0.11.2
        └── hashlink v0.7.0
            ├── salsa v0.17.0-pre.2 (/home/berni/Documents/src/salsa)
            └── salsa-2022 v0.1.0 (/home/berni/Documents/src/salsa/components/salsa-2022)
                ├── calc v0.1.0 (/home/berni/Documents/src/salsa/calc-example/calc)
                └── salsa-2022-tests v0.1.0 (/home/berni/Documents/src/salsa/salsa-2022-tests)

hashbrown v0.11.2 (*)

hashbrown v0.12.3
└── indexmap v1.9.1
    ├── salsa v0.17.0-pre.2 (/home/berni/Documents/src/salsa)
    └── salsa-2022 v0.1.0 (/home/berni/Documents/src/salsa/components/salsa-2022) (*)

humantime v1.3.0
└── env_logger v0.7.1 (*)

humantime v2.1.0
└── env_logger v0.9.0 (*)
```


Co-authored-by: Bernardo Uriarte <berublan@gmail.com>
2022-08-22 09:56:32 +00:00
Bernardo Uriarte
927d905e58 test-env-log has been renamed to test-log 2022-08-22 11:00:47 +02:00