Skip to content

Commit

Permalink
Update bindgen to fix ptr::from_raw_parts
Browse files Browse the repository at this point in the history
Summary:
The signature of `core::ptr::from_raw_parts` is different between Rust 1.79 and Rust 1.80, causing an ambiguity in the code produced by previous versions of bindgen.

- https://doc.rust-lang.org/1.79.0/core/ptr/fn.from_raw_parts.html
- https://doc.rust-lang.org/1.80.0/core/ptr/fn.from_raw_parts.html

```lang=diff
- pub fn from_raw_parts<T: ?Sized>(
+ pub const fn from_raw_parts<T: ?Sized>(
-     data_pointer: *const (),
+     data_pointer: *const impl Thin,
      metadata: <T as Pointee>::Metadata,
  ) -> *const T
```

Reviewed By: zertosh

Differential Revision: D60436185

fbshipit-source-id: 7068413c08fa155517a123d01b51821ce8f9085d
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Aug 3, 2024
1 parent fd261e0 commit d6259c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[patch.crates-io]
abomonation = { git = "https://github.com/markbt/abomonation", rev = "0f43346d2afa2aedc64d61f3f4273e8d1e454642" }
base64urlsafedata = { git = "https://github.com/kanidm/webauthn-rs.git", rev = "d278c56adfa39a0723c79bdcd461644194bc5138" }
bindgen = { git = "https://github.com/rust-lang/rust-bindgen", rev = "7e9043497297e04e91ae76dfe0d2e7998828e529" }
bindgen-cli = { git = "https://github.com/rust-lang/rust-bindgen", rev = "7e9043497297e04e91ae76dfe0d2e7998828e529" }
bindgen = { git = "https://github.com/rust-lang/rust-bindgen", rev = "7ea3f36d58399204a6ab81a38be14c3c363c296b" }
bindgen-cli = { git = "https://github.com/rust-lang/rust-bindgen", rev = "7ea3f36d58399204a6ab81a38be14c3c363c296b" }
cxx = { package = "cxx", git = "https://github.com/facebookexperimental/cxx.git", rev = "cf9ae5500db7d31292d12a6b0728b0f6a1d7b9c9" }
cxx-build = { package = "cxx-build", git = "https://github.com/facebookexperimental/cxx.git", rev = "cf9ae5500db7d31292d12a6b0728b0f6a1d7b9c9" }
displaydoc = { git = "https://github.com/yaahc/displaydoc", rev = "7dc6e324b1788a6b7fb9f3a1953c512923a3e9f0" }
Expand Down

0 comments on commit d6259c0

Please sign in to comment.