Skip to content

Commit da3b2d2

Browse files
committed
Fix test comment
1 parent 98a609f commit da3b2d2

7 files changed

+13
-12
lines changed

tests/ui/internal/auxiliary/unstable_feature.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ pub struct Bar;
1414
#[stable(feature = "a", since = "1.1.1" )]
1515
pub struct Moo;
1616

17-
// Annotate the impl as unstable.
1817
#[unstable_feature_bound(feat_bar)]
1918
#[unstable(feature = "feat_bar", issue = "none" )]
2019
impl Foo for Bar {

tests/ui/internal/unstable-feature-bound-no-effect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#![feature(impl_stability)]
55
#![allow(dead_code)]
66

7-
/// If #[unstable(..)] and #[unstable_feature_name(..)] have the same symbol,
8-
/// The error should not be thrown as it can effectively mark an impl as unstable.
7+
/// If #[unstable(..)] and #[unstable_feature_name(..)] have the same feature name,
8+
/// the error should not be thrown as it can effectively mark an impl as unstable.
99
///
1010
/// If the feature name in #[feature] does not exist in #[unstable_feature_bound(..)]
1111
/// an error should still be thrown because that feature will not be unstable.

tests/ui/internal/unstable-feature-cross-crate-exact-symbol.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
extern crate unstable_feature;
99
use unstable_feature::{Foo, Bar, Moo};
1010

11-
/// Both `feat_foo` and `feat_bar` are needed to use impl
12-
/// gated by two different unstable feature bound.
11+
/// To use impls gated by both `feat_foo` and `feat_moo`,
12+
/// both features must be enabled.
1313
1414
fn main() {
1515
Bar::foo();

tests/ui/internal/unstable-feature-exact-symbol.fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0284]: type annotations needed: cannot satisfy `unstable feature: `feat_moo``
2-
--> $DIR/unstable-feature-exact-symbol.rs:37:5
2+
--> $DIR/unstable-feature-exact-symbol.rs:38:5
33
|
44
LL | Bar::moo();
55
| ^^^ cannot satisfy `unstable feature: `feat_moo``
66
|
77
note: required for `Bar` to implement `Moo`
8-
--> $DIR/unstable-feature-exact-symbol.rs:29:6
8+
--> $DIR/unstable-feature-exact-symbol.rs:30:6
99
|
1010
LL | #[unstable_feature_bound(feat_moo)]
1111
| ----------------------------------- unsatisfied trait bound introduced here

tests/ui/internal/unstable-feature-exact-symbol.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
#![allow(dead_code)]
88
#![unstable(feature = "feat_foo", issue = "none" )]
99

10-
/// In staged-api crate, impl that is marked with `feat_moo`
11-
/// should not be accessible if only `feat_foo` is enabled.
10+
/// In staged-api crate, impl that is marked as unstable with
11+
/// feature name `feat_moo` should not be accessible
12+
/// if only `feat_foo` is enabled.
1213
1314
pub trait Foo {
1415
fn foo();

tests/ui/internal/unstable-impl-cannot-use-feature.fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0284]: type annotations needed: cannot satisfy `unstable feature: `feat_foo``
2-
--> $DIR/unstable-impl-cannot-use-feature.rs:26:5
2+
--> $DIR/unstable-impl-cannot-use-feature.rs:27:5
33
|
44
LL | Bar::foo();
55
| ^^^ cannot satisfy `unstable feature: `feat_foo``
66
|
77
note: required for `Bar` to implement `Foo`
8-
--> $DIR/unstable-impl-cannot-use-feature.rs:20:6
8+
--> $DIR/unstable-impl-cannot-use-feature.rs:21:6
99
|
1010
LL | #[unstable_feature_bound(feat_foo)]
1111
| ----------------------------------- unsatisfied trait bound introduced here

tests/ui/internal/unstable-impl-cannot-use-feature.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
#![feature(staged_api)]
66
#![feature(impl_stability)]
77
#![allow(dead_code)]
8-
#![cfg_attr(fail, feature(feat_foo))]
98
#![unstable(feature = "feat_foo", issue = "none" )]
109

10+
#![cfg_attr(fail, feature(feat_foo))]
11+
1112
/// In staged-api crate, using an unstable impl requires
1213
/// #[unstable_feature_bound(..)], not #[feature(..)].
1314

0 commit comments

Comments
 (0)