Skip to content

Commit 8b5dc5d

Browse files
committed
---
yaml --- r: 159565 b: refs/heads/auto c: 8352195 h: refs/heads/master i: 159563: 5662724 v: v3
1 parent 68c790f commit 8b5dc5d

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 5b895a833a6443046bbc8a6362b1a957cf68d1b4
13+
refs/heads/auto: 83521954267b3555bfb3a185a187b2c2d929e453
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/test/auxiliary/inherited_stability.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,20 @@ pub fn stable() {}
1818

1919
#[stable]
2020
pub mod stable_mod {
21-
#[experimental]
2221
pub fn experimental() {}
2322

23+
#[stable]
2424
pub fn stable() {}
2525
}
2626

27+
#[unstable]
28+
pub mod unstable_mod {
29+
#[experimental]
30+
pub fn experimental() {}
31+
32+
pub fn unstable() {}
33+
}
34+
2735
pub mod experimental_mod {
2836
pub fn experimental() {}
2937

@@ -33,9 +41,9 @@ pub mod experimental_mod {
3341

3442
#[stable]
3543
pub trait Stable {
36-
#[experimental]
3744
fn experimental(&self);
3845

46+
#[stable]
3947
fn stable(&self);
4048
}
4149

branches/auto/src/test/compile-fail/lint-stability.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ mod inheritance {
165165
stable_mod::experimental(); //~ ERROR use of experimental item
166166
stable_mod::stable();
167167

168+
unstable_mod::experimental(); //~ ERROR use of experimental item
169+
unstable_mod::unstable(); //~ ERROR use of unstable item
170+
168171
experimental_mod::experimental(); //~ ERROR use of experimental item
169172
experimental_mod::stable();
170173

0 commit comments

Comments
 (0)