Skip to content

allocative 0.3.6 doesn't compile on nightly anymore #1473

Description

@DaniPopes
error[E0119]: conflicting implementations of trait `Allocative` for type `!`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/allocative-0.3.6/src/impls/std/unsorted.rs:214:1
    |
207 | impl Allocative for Infallible {
    | ------------------------------ first implementation here
...
214 | impl Allocative for ! {
    | ^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `!`

For more information about this error, try `rustc --explain E0119`.

Due to never type being stabilized:

#[cfg(rust_nightly)]
impl Allocative for ! {
fn visit<'a, 'b: 'a>(&self, _visitor: &'a mut Visitor<'b>) {
match *self {}
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions