Oli Scherer
daee746771
Add a usize-indexed append-only-vec
2023-04-04 09:01:44 +00:00
Oli Scherer
aad33198ff
Remove a fishy Clone impl
2023-04-04 09:01:44 +00:00
Nicholas Nethercote
0ccb60096a
Remove RwLock::clone_guard
.
...
It's unused.
2023-03-30 21:14:43 +11:00
Nicholas Nethercote
eeb5b782a6
Improve the rustc_data_structures::sync
module doc comment.
...
Also, `MTRef<'a, T>` is a typedef for a reference to a `T`, but in
practice it's only used (and useful) in combination with `MTLock`, i.e.
`MTRef<'a, MTLock<T>>`. So this commit changes it to be a typedef for a
reference to an `MTLock<T>`, and renames it as `MTLockRef`. I think this
clarifies things, because I found `MTRef` quite puzzling at first.
2023-03-30 21:14:37 +11:00
Oli Scherer
decfb4d123
Use a lock-free datastructure for source_span
2023-02-21 08:38:24 +00:00
David Tolnay
9e1c600f74
Disallow impl autotrait for trait object
2023-02-03 08:33:40 -08:00
KaDiWa
9bc69925cb
compiler: remove unnecessary imports and qualified paths
2022-12-10 18:45:34 +01:00
Maybe Waffle
f2b97a8bfe
Remove useless borrows and derefs
2022-12-01 17:34:43 +00:00
Cameron Steffen
10a5e75537
Add track_caller to some Lock methods
2022-11-01 12:28:14 -05:00
Joshua Nelson
d2c53caee2
Move Queries::new
out of the macro
2022-09-06 21:41:01 -05:00
Tshepang Mbambo
3f379f6df5
needless separation of impl blocks
2022-08-16 03:46:45 +02:00
SparrowLii
e2ecb68a0e
use par_for_each_in
in par_body_owners
and collect_crate_mono_items
2022-07-19 17:00:51 +08:00
Camille GILLOT
43bb31b954
Allow to create definitions inside the query system.
2022-07-06 22:50:55 +02:00
SparrowLii
ec137f29c5
catch unwind of every iter in parallel mode during wfcheck
2022-06-27 16:39:10 +08:00
Maybe Waffle
c1a2db3372
Move/rename lazy::Sync{OnceCell,Lazy}
to sync::{Once,Lazy}Lock
2022-06-16 19:54:42 +04:00
Maybe Waffle
7c360dc117
Move/rename lazy::{OnceCell, Lazy}
to cell::{OnceCell, LazyCell}
2022-06-16 19:53:59 +04:00
Frank Steffahn
bf88b113ea
Fix typos “a”→“an”
2021-08-22 15:35:11 +02:00
Joshua Nelson
3412957e7f
Unify parallel and non-parallel APIs
...
It's confusing for these to be different, even if some of the methods
are unused.
2021-06-04 15:26:08 -04:00
Joshua Nelson
1a5cc25525
Remove unused code from rustc_data_structures::sync
...
Found using https://github.com/est31/warnalyzer .
2021-06-04 15:25:05 -04:00
Tomasz Miąsko
79cc5099b1
Use RwLock instead of Lock for SourceMap::files
2020-10-29 18:09:53 +01:00
marmeladema
68500ffacb
datastructures: replace once_cell
crate with an impl from std
2020-08-30 20:06:14 +01:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00