Skip to content

Commit 3b2bb9f

Browse files
diliopfacebook-github-bot
authored andcommitted
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: dace0feaca2960508c57d02d229c4a32747ba588
1 parent 909f169 commit 3b2bb9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shim/third-party/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ path = "top/main.rs"
2828
[dependencies]
2929
annotate-snippets = { version = "0.9.0", features = ["color"] }
3030
anyhow = "1.0.65"
31-
anymap = "1.0.0-beta.2"
31+
anymap3 = "1.0.1"
3232
arc-swap = "1.6.0"
3333
argfile = "0.1.0"
3434
assert_matches = "1.5"

0 commit comments

Comments
 (0)