Skip to content

Maybe remove the 'unreachable' crate dependency? #128

Description

@frewsxcv

rust-smallvec/lib.rs

Lines 48 to 49 in feb3e45

extern crate unreachable;
use unreachable::UncheckedOptionExt;

unsafe { self.pop().unchecked_unwrap() }

Seems like we might be able to replace this usage with this:

use std::hint;

// ...

unsafe {
    self.pop().unwrap_or_else(hint::unreachable_unchecked)
}

Activity

  1. mbrubeck commented on Oct 8, 2018

    @mbrubeck
    Collaborator

    This would increase the minimum supported Rust version from 1.20 to 1.27. Since this crate is so widely used, we try to batch such changes together along with other breaking changes. Added this to the tracking bug (#73).

  2. added a commit that references this issue on Feb 16, 2019
    2511b81
  3. added a commit that references this issue on Feb 16, 2019
    dfd78d1
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