Skip to content

Commit dab8c0a

Browse files
committed
Fix stability annotations for already stable bits of proc macro API 1.1
Remove unnecessary proc-macro-related `feature`s
1 parent c106125 commit dab8c0a

33 files changed

+41
-48
lines changed

src/libproc_macro/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ use syntax_pos::hygiene::Mark;
7373
#[derive(Clone)]
7474
pub struct TokenStream(tokenstream::TokenStream);
7575

76-
#[unstable(feature = "proc_macro", issue = "38356")]
76+
#[stable(feature = "proc_macro_lib", since = "1.15.0")]
7777
impl !Send for TokenStream {}
78-
#[unstable(feature = "proc_macro", issue = "38356")]
78+
#[stable(feature = "proc_macro_lib", since = "1.15.0")]
7979
impl !Sync for TokenStream {}
8080

8181
/// Error returned from `TokenStream::from_str`.
@@ -85,9 +85,9 @@ pub struct LexError {
8585
_inner: (),
8686
}
8787

88-
#[unstable(feature = "proc_macro", issue = "38356")]
88+
#[stable(feature = "proc_macro_lib", since = "1.15.0")]
8989
impl !Send for LexError {}
90-
#[unstable(feature = "proc_macro", issue = "38356")]
90+
#[stable(feature = "proc_macro_lib", since = "1.15.0")]
9191
impl !Sync for LexError {}
9292

9393
impl TokenStream {
@@ -167,7 +167,7 @@ impl iter::FromIterator<TokenTree> for TokenStream {
167167

168168
/// A "flattening" operation on token streams, collects token trees
169169
/// from multiple token streams into a single stream.
170-
#[unstable(feature = "proc_macro", issue = "38356")]
170+
#[stable(feature = "proc_macro_lib", since = "1.15.0")]
171171
impl iter::FromIterator<TokenStream> for TokenStream {
172172
fn from_iter<I: IntoIterator<Item = TokenStream>>(streams: I) -> Self {
173173
let mut builder = tokenstream::TokenStreamBuilder::new();

src/test/compile-fail-fulldeps/proc-macro/auxiliary/issue_38586.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// force-host
1212
// no-prefer-dynamic
1313

14-
#![feature(proc_macro, proc_macro_lib)]
1514
#![crate_type = "proc-macro"]
1615

1716
extern crate proc_macro;

src/test/compile-fail-fulldeps/proc-macro/issue-38586.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// aux-build:issue_38586.rs
1212
// ignore-stage1
1313

14-
#![feature(proc_macro)]
15-
1614
#[macro_use]
1715
extern crate issue_38586;
1816

src/test/compile-fail-fulldeps/proc-macro/lints_in_proc_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// aux-build:bang_proc_macro2.rs
1212
// ignore-stage1
1313

14-
#![feature(proc_macro, proc_macro_non_items)]
14+
#![feature(use_extern_macros, proc_macro_non_items)]
1515
#![allow(unused_macros)]
1616

1717
extern crate bang_proc_macro2;

src/test/compile-fail-fulldeps/proc-macro/macro-use-bang.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// aux-build:bang_proc_macro.rs
1212

13-
#![feature(proc_macro, proc_macro_non_items)]
13+
#![feature(proc_macro_non_items)]
1414

1515
#[macro_use]
1616
extern crate bang_proc_macro;

src/test/compile-fail-fulldeps/proc-macro/proc-macro-gates2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// aux-build:proc-macro-gates.rs
1212

13-
#![feature(proc_macro, stmt_expr_attributes)]
13+
#![feature(use_extern_macros, stmt_expr_attributes)]
1414

1515
extern crate proc_macro_gates as foo;
1616

src/test/run-pass-fulldeps/auxiliary/cond_plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub fn cond(input: TokenStream) -> TokenStream {
3333
panic!("Invalid macro usage in cond: {}", cond);
3434
}
3535
let is_else = match test {
36-
TokenTree::Ident(word) => &*word.to_string() == "else",
36+
TokenTree::Ident(ref word) => &*word.to_string() == "else",
3737
_ => false,
3838
};
3939
conds.push(if is_else || input.peek().is_none() {

src/test/run-pass-fulldeps/auxiliary/hello_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// no-prefer-dynamic
1212

1313
#![crate_type = "proc-macro"]
14-
#![feature(proc_macro, proc_macro_lib, proc_macro_non_items)]
14+
#![feature(proc_macro, proc_macro_non_items)]
1515

1616
extern crate proc_macro;
1717

src/test/run-pass-fulldeps/auxiliary/proc_macro_def.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// no-prefer-dynamic
1212

1313
#![crate_type = "proc-macro"]
14-
#![feature(proc_macro, proc_macro_lib, proc_macro_non_items)]
14+
#![feature(proc_macro, proc_macro_non_items)]
1515

1616
extern crate proc_macro;
1717

src/test/run-pass-fulldeps/macro-quote-cond.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// aux-build:cond_plugin.rs
1212
// ignore-stage1
1313

14-
#![feature(proc_macro, proc_macro_non_items)]
14+
#![feature(use_extern_macros, proc_macro_non_items)]
1515

1616
extern crate cond_plugin;
1717

0 commit comments

Comments
 (0)