Commit 66b212e
replace anymap with anymap3
Summary:
[#136764](rust-lang/rust#136764) breaks the [`anymap`](https://github.com/chris-morgan/anymap) crate via:
```
error[E0804]: cannot add auto traits `Send` and `Sync` to dyn bound via pointer cast
--> third-party/rust/vendor/anymap-1.0.0-beta.2/src/any.rs:37:40
|
19 | / macro_rules! impl_clone {
20 | | ($t:ty) => {
21 | | impl Clone for Box<$t> {
22 | | #[inline]
... |
37 | | unsafe { Box::from_raw(raw as *mut $t) }
| | ^^^^^^^^^^^^^^ unsupported cast
... |
48 | | }
| |_- in this expansion of `impl_clone!`
...
145 | impl_clone!(dyn CloneAny + Send + Sync);
| --------------------------------------- in this macro invocation
|
= note: this could allow UB elsewhere
= help: use `transmute` if you're sure this is sound
```
Since `anymap` is not maintained any more, switching everyone to a fork that is i.e. [`anymap3`](https://github.com/reivilibre/anymap3) which also solves the above using the suggested `transmute`.
Reviewed By: jsgf
Differential Revision: D75098213
fbshipit-source-id: dace0feaca2960508c57d02d229c4a32747ba5881 parent 620096f commit 66b212e
File tree
5 files changed
+5
-5
lines changed- dice/dice
- src/api
- shim/third-party/rust
5 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments