1
Fork 0

Fix test/ui

This commit is contained in:
varkor 2018-07-23 12:23:40 +01:00
parent 895fcec3b4
commit 671a81738d
3 changed files with 7 additions and 7 deletions

View file

@ -11,20 +11,20 @@
#![crate_name="lint_output_format"]
#![crate_type = "lib"]
#![feature(staged_api)]
#![unstable(feature = "test_feature", issue = "0")]
#![unstable(feature = "unstable_test_feature", issue = "0")]
#[stable(feature = "test_feature", since = "1.0.0")]
#[stable(feature = "stable_test_feature", since = "1.0.0")]
#[rustc_deprecated(since = "1.0.0", reason = "text")]
pub fn foo() -> usize {
20
}
#[unstable(feature = "test_feature", issue = "0")]
#[unstable(feature = "unstable_test_feature", issue = "0")]
pub fn bar() -> usize {
40
}
#[unstable(feature = "test_feature", issue = "0")]
#[unstable(feature = "unstable_test_feature", issue = "0")]
pub fn baz() -> usize {
30
}

View file

@ -11,12 +11,12 @@
#![feature(staged_api)]
#![deny(deprecated)]
#![unstable(feature = "test_feature", issue = "0")]
#![unstable(feature = "unstable_test_feature", issue = "0")]
struct Foo;
impl Foo {
#[unstable(feature = "test_feature", issue = "0")]
#[unstable(feature = "unstable_test_feature", issue = "0")]
#[rustc_deprecated(since = "1.0.0", reason = "text")]
fn foo(self) {}
}

View file

@ -13,7 +13,7 @@
// FIXME(#44232) we should warn that this isn't used.
#![feature(foo)]
#![feature(test_feature)]
#![feature(unstable_test_feature)]
#![feature(rustc_attrs)]
extern crate lint_output_format;