Revert "Remove never_type feature gate"

This reverts commit 533fb9cc443eb48604250c14a4d70648752ad17b.
This commit is contained in:
David Tolnay 2019-12-15 19:52:59 -08:00
parent d540e72fc7
commit b9909cef3d
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,7 @@
// discussion of these features please refer to this issue:
//
// https://github.com/serde-rs/serde/issues/812
#![cfg_attr(feature = "unstable", feature(specialization))]
#![cfg_attr(feature = "unstable", feature(specialization, never_type))]
#![allow(unknown_lints, bare_trait_objects, deprecated)]
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]

View File

@ -1,4 +1,5 @@
#![allow(clippy::decimal_literal_representation, clippy::unreadable_literal)]
#![cfg_attr(feature = "unstable", feature(never_type))]
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
use std::default::Default;

View File

@ -1,4 +1,5 @@
#![allow(clippy::unreadable_literal)]
#![cfg_attr(feature = "unstable", feature(never_type))]
use std::cell::RefCell;
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};