Auto merge of #67505 - Centril:rollup-7win7ty, r=Centril
Rollup of 6 pull requests Successful merges: - #67148 ( Refactor type & bounds parsing thoroughly) - #67410 (Reenable static linking of libstdc++ on windows-gnu) - #67439 (Cleanup `lower_pattern_unadjusted` & Improve slice pat typeck) - #67480 (Require issue = "none" over issue = "0" in unstable attributes) - #67500 (Tweak non_shorthand_field_patterns' suggestion) - #67504 (Warn against relying on ?Sized being last) Failed merges: r? @ghost
This commit is contained in:
commit
3982d3514e
133 changed files with 991 additions and 862 deletions
|
|
@ -1,3 +1,3 @@
|
|||
#![crate_type = "lib"]
|
||||
#![unstable(feature = "issue_52489_unstable", issue = "0")]
|
||||
#![unstable(feature = "issue_52489_unstable", issue = "none")]
|
||||
#![feature(staged_api)]
|
||||
|
|
|
|||
|
|
@ -15,16 +15,16 @@ pub fn deprecated_text() {}
|
|||
#[rustc_deprecated(since = "99.99.99", reason = "text")]
|
||||
pub fn deprecated_future() {}
|
||||
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
pub fn deprecated_unstable() {}
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
pub fn deprecated_unstable_text() {}
|
||||
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
pub fn unstable() {}
|
||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||
pub fn unstable_text() {}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
@ -43,16 +43,16 @@ impl MethodTester {
|
|||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
pub fn method_deprecated_text(&self) {}
|
||||
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
pub fn method_deprecated_unstable(&self) {}
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
pub fn method_deprecated_unstable_text(&self) {}
|
||||
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
pub fn method_unstable(&self) {}
|
||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||
pub fn method_unstable_text(&self) {}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
@ -70,16 +70,16 @@ pub trait Trait {
|
|||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
fn trait_deprecated_text(&self) {}
|
||||
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
fn trait_deprecated_unstable(&self) {}
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
fn trait_deprecated_unstable_text(&self) {}
|
||||
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
fn trait_unstable(&self) {}
|
||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||
fn trait_unstable_text(&self) {}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
@ -90,7 +90,7 @@ pub trait Trait {
|
|||
|
||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||
pub trait TraitWithAssociatedTypes {
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
type TypeUnstable = u8;
|
||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
|
|
@ -100,7 +100,7 @@ pub trait TraitWithAssociatedTypes {
|
|||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||
impl Trait for MethodTester {}
|
||||
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
pub trait UnstableTrait { fn dummy(&self) { } }
|
||||
|
||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||
|
|
@ -114,12 +114,12 @@ pub trait DeprecatedTrait {
|
|||
pub struct DeprecatedStruct {
|
||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||
}
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
pub struct DeprecatedUnstableStruct {
|
||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||
}
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
pub struct UnstableStruct {
|
||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||
}
|
||||
|
|
@ -127,7 +127,7 @@ pub struct UnstableStruct {
|
|||
pub struct StableStruct {
|
||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||
}
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
pub enum UnstableEnum {}
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub enum StableEnum {}
|
||||
|
|
@ -135,10 +135,10 @@ pub enum StableEnum {}
|
|||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
pub struct DeprecatedUnitStruct;
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
pub struct DeprecatedUnstableUnitStruct;
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
pub struct UnstableUnitStruct;
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub struct StableUnitStruct;
|
||||
|
|
@ -148,10 +148,10 @@ pub enum Enum {
|
|||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
DeprecatedVariant,
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
DeprecatedUnstableVariant,
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
UnstableVariant,
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
@ -161,10 +161,10 @@ pub enum Enum {
|
|||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
pub struct DeprecatedTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
pub struct DeprecatedUnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
pub struct UnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub struct StableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
#![feature(staged_api)]
|
||||
#![deny(deprecated)]
|
||||
|
||||
#![unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#![unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
|
||||
struct Foo;
|
||||
|
||||
impl Foo {
|
||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
||||
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||
fn foo(self) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ struct Conj<A> {a : A}
|
|||
trait Valid {}
|
||||
|
||||
impl<A: !Valid> Conj<A>{}
|
||||
//~^ ERROR negative trait bounds are not supported
|
||||
//~^ ERROR negative bounds are not supported
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
error: negative trait bounds are not supported
|
||||
error: negative bounds are not supported
|
||||
--> $DIR/issue-58857.rs:4:7
|
||||
|
|
||||
LL | impl<A: !Valid> Conj<A>{}
|
||||
| ^^^^^^^^ negative trait bounds are not supported
|
||||
|
|
||||
= help: remove the trait bound
|
||||
| ^^^^^^^^ negative bounds are not supported
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue