Skip to content
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

Broken in latest nightly #251

Closed
onur opened this issue Mar 29, 2018 · 3 comments
Closed

Broken in latest nightly #251

onur opened this issue Mar 29, 2018 · 3 comments

Comments

@onur
Copy link

onur commented Mar 29, 2018

Similar to hyperium/http#192 h2 is also broken in latest nightly because of rust-lang/rust#49305

Build log
   Compiling h2 v0.1.3 (file:///tmp/h2)
error[E0034]: multiple applicable items in scope
  --> src/hpack/header.rs:66:33
   |
66 |                     let value = String::try_from(value)?;
   |                                 ^^^^^^^^^^^^^^^^ multiple `try_from` found
   |
   = note: candidate #1 is defined in an impl of the trait `std::convert::TryFrom` for the type `_`
   = note: candidate #2 is defined in an impl of the trait `string::TryFrom` for the type `string::String<_>`

error[E0034]: multiple applicable items in scope
  --> src/hpack/header.rs:74:33
   |
74 |                     let value = String::try_from(value)?;
   |                                 ^^^^^^^^^^^^^^^^ multiple `try_from` found
   |
   = note: candidate #1 is defined in an impl of the trait `std::convert::TryFrom` for the type `_`
   = note: candidate #2 is defined in an impl of the trait `string::TryFrom` for the type `string::String<_>`

error[E0034]: multiple applicable items in scope
  --> src/hpack/header.rs:78:33
   |
78 |                     let value = String::try_from(value)?;
   |                                 ^^^^^^^^^^^^^^^^ multiple `try_from` found
   |
   = note: candidate #1 is defined in an impl of the trait `std::convert::TryFrom` for the type `_`
   = note: candidate #2 is defined in an impl of the trait `string::TryFrom` for the type `string::String<_>`

error[E0034]: multiple applicable items in scope
   --> src/hpack/header.rs:237:53
    |
237 |             Name::Authority => Ok(Header::Authority(String::try_from(value)?)),
    |                                                     ^^^^^^^^^^^^^^^^ multiple `try_from` found
    |
    = note: candidate #1 is defined in an impl of the trait `std::convert::TryFrom` for the type `_`
    = note: candidate #2 is defined in an impl of the trait `string::TryFrom` for the type `string::String<_>`

error[E0034]: multiple applicable items in scope
   --> src/hpack/header.rs:239:47
    |
239 |             Name::Scheme => Ok(Header::Scheme(String::try_from(value)?)),
    |                                               ^^^^^^^^^^^^^^^^ multiple `try_from` found
    |
    = note: candidate #1 is defined in an impl of the trait `std::convert::TryFrom` for the type `_`
    = note: candidate #2 is defined in an impl of the trait `string::TryFrom` for the type `string::String<_>`

error[E0034]: multiple applicable items in scope
   --> src/hpack/header.rs:240:43
    |
240 |             Name::Path => Ok(Header::Path(String::try_from(value)?)),
    |                                           ^^^^^^^^^^^^^^^^ multiple `try_from` found
    |
    = note: candidate #1 is defined in an impl of the trait `std::convert::TryFrom` for the type `_`
    = note: candidate #2 is defined in an impl of the trait `string::TryFrom` for the type `string::String<_>`

error: aborting due to 6 previous errors

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

To learn more, run the command again with --verbose.
@carllerche
Copy link
Collaborator

Yep, it will be broken until rustc fixes nightly. I wonder if we should pin the version of nightly like was done in Tokio.

@tirkarthi
Copy link

This was reverted with rust-lang/rust#49518

@carllerche
Copy link
Collaborator

Thanks for updating. I will close this now.

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

No branches or pull requests

3 participants