Skip to content

Commit

Permalink
Merge pull request #139 from petrochenkov/master
Browse files Browse the repository at this point in the history
Fix build on nightly rustc
  • Loading branch information
dpc authored May 27, 2017
2 parents 0e57875 + 2e1ca55 commit 5b5e310
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2860,12 +2860,13 @@ impl core::fmt::Display for Error {
/// rust during time of the release. It will be switched to `!` at some point
/// and `Never` should not be considered "stable" API.
#[doc(hidden)]
pub type Never = NeverStruct;
pub type Never = private::NeverStruct;

#[doc(hidden)]
#[derive(Debug)]
#[allow(private_in_public)]
struct NeverStruct(());
mod private {
#[doc(hidden)]
#[derive(Debug)]
pub struct NeverStruct(());
}

/// This is not part of "stable" API
#[doc(hidden)]
Expand Down

0 comments on commit 5b5e310

Please sign in to comment.