Skip to content

Fix cargo build with minimal-versions #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2019
Merged

Fix cargo build with minimal-versions #45

merged 1 commit into from
Feb 24, 2019

Conversation

sunng87
Copy link
Contributor

@sunng87 sunng87 commented Feb 24, 2019

For serde versions prior to 1.0.25, hashbrown built with serde feature will result in an error:

error[E0407]: method `deserialize_in_place` is not a member of trait `Deserialize`
   --> src/external_trait_impls/serde.rs:164:9
    |
164 | /         fn deserialize_in_place<D>(deserializer: D, place: &mut Self) -> Result<(), D::Error>
165 | |         where
166 | |             D: Deserializer<'de>,
167 | |         {
...   |
197 | |             deserializer.deserialize_seq(SeqInPlaceVisitor(place))
198 | |         }
    | |_________^ not a member of trait `Deserialize`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0407`.
error: Could not compile `hashbrown`.

Change serde version to 1.0.25 explicitly will fix build with cargo -Z minimal-versions build --features serde

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
For serde versions prior to 1.0.25, hashbrown built with serde feature will result in an error:

```
error[E0407]: method `deserialize_in_place` is not a member of trait `Deserialize`
   --> src/external_trait_impls/serde.rs:164:9
    |
164 | /         fn deserialize_in_place<D>(deserializer: D, place: &mut Self) -> Result<(), D::Error>
165 | |         where
166 | |             D: Deserializer<'de>,
167 | |         {
...   |
197 | |             deserializer.deserialize_seq(SeqInPlaceVisitor(place))
198 | |         }
    | |_________^ not a member of trait `Deserialize`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0407`.
error: Could not compile `hashbrown`.
```

Change serde version to 1.0.25 explicitly will fix build with `cargo -Z minimal-versions build --features serde`
@Amanieu
Copy link
Member

Amanieu commented Feb 24, 2019

bors r+

@Amanieu
Copy link
Member

Amanieu commented Feb 24, 2019

Thanks!

bors bot added a commit that referenced this pull request Feb 24, 2019
45: Fix cargo build with minimal-versions r=Amanieu a=sunng87

For serde versions prior to 1.0.25, hashbrown built with serde feature will result in an error:

```
error[E0407]: method `deserialize_in_place` is not a member of trait `Deserialize`
   --> src/external_trait_impls/serde.rs:164:9
    |
164 | /         fn deserialize_in_place<D>(deserializer: D, place: &mut Self) -> Result<(), D::Error>
165 | |         where
166 | |             D: Deserializer<'de>,
167 | |         {
...   |
197 | |             deserializer.deserialize_seq(SeqInPlaceVisitor(place))
198 | |         }
    | |_________^ not a member of trait `Deserialize`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0407`.
error: Could not compile `hashbrown`.
```

Change serde version to 1.0.25 explicitly will fix build with `cargo -Z minimal-versions build --features serde`

Co-authored-by: Ning Sun <classicning@gmail.com>
@bors
Copy link
Contributor

bors bot commented Feb 24, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit 5b4a69f into rust-lang:master Feb 24, 2019
@sunng87 sunng87 deleted the patch-1 branch February 24, 2019 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants