Skip to content

Broken in latest nightly #251

Description

@onur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions