3737#![ warn( unreachable_pub) ]
3838#![ deny( unsafe_op_in_unsafe_fn) ]
3939
40- #[ unstable( feature = "proc_macro_internals" , issue = "27812 " ) ]
40+ #[ unstable( feature = "proc_macro_internals" , issue = "none " ) ]
4141#[ doc( hidden) ]
4242pub mod bridge;
4343
@@ -296,7 +296,7 @@ impl TokenStream {
296296 /// Checks if this `TokenStream` is empty.
297297 #[ stable( feature = "proc_macro_lib2" , since = "1.29.0" ) ]
298298 pub fn is_empty ( & self ) -> bool {
299- self . 0 . as_ref ( ) . map ( |h| BridgeMethods :: ts_is_empty ( h ) ) . unwrap_or ( true )
299+ self . 0 . as_ref ( ) . map ( BridgeMethods :: ts_is_empty) . unwrap_or ( true )
300300 }
301301
302302 /// Parses this `TokenStream` as an expression and attempts to expand any
@@ -575,9 +575,7 @@ pub mod token_stream {
575575 type IntoIter = IntoIter ;
576576
577577 fn into_iter ( self ) -> IntoIter {
578- IntoIter (
579- self . 0 . map ( |v| BridgeMethods :: ts_into_trees ( v) ) . unwrap_or_default ( ) . into_iter ( ) ,
580- )
578+ IntoIter ( self . 0 . map ( BridgeMethods :: ts_into_trees) . unwrap_or_default ( ) . into_iter ( ) )
581579 }
582580 }
583581}
@@ -595,7 +593,7 @@ pub macro quote($($t:tt)*) {
595593 /* compiler built-in */
596594}
597595
598- #[ unstable( feature = "proc_macro_internals" , issue = "27812 " ) ]
596+ #[ unstable( feature = "proc_macro_internals" , issue = "none " ) ]
599597#[ doc( hidden) ]
600598mod quote;
601599
@@ -755,14 +753,14 @@ impl Span {
755753
756754 // Used by the implementation of `Span::quote`
757755 #[ doc( hidden) ]
758- #[ unstable( feature = "proc_macro_internals" , issue = "27812 " ) ]
756+ #[ unstable( feature = "proc_macro_internals" , issue = "none " ) ]
759757 pub fn save_span ( & self ) -> usize {
760758 BridgeMethods :: span_save_span ( self . 0 )
761759 }
762760
763761 // Used by the implementation of `Span::quote`
764762 #[ doc( hidden) ]
765- #[ unstable( feature = "proc_macro_internals" , issue = "27812 " ) ]
763+ #[ unstable( feature = "proc_macro_internals" , issue = "none " ) ]
766764 pub fn recover_proc_macro_span ( id : usize ) -> Span {
767765 Span ( BridgeMethods :: span_recover_proc_macro_span ( id) )
768766 }
@@ -1296,7 +1294,7 @@ macro_rules! unsuffixed_int_literals {
12961294 /// specified on this token, meaning that invocations like
12971295 /// `Literal::i8_unsuffixed(1)` are equivalent to
12981296 /// `Literal::u32_unsuffixed(1)`.
1299- /// Literals created from negative numbers might not survive rountrips through
1297+ /// Literals created from negative numbers might not survive roundtrips through
13001298 /// `TokenStream` or strings and may be broken into two tokens (`-` and positive literal).
13011299 ///
13021300 /// Literals created through this method have the `Span::call_site()`
@@ -1416,7 +1414,7 @@ impl Literal {
14161414 /// This constructor is similar to those like `Literal::i8_unsuffixed` where
14171415 /// the float's value is emitted directly into the token but no suffix is
14181416 /// used, so it may be inferred to be a `f64` later in the compiler.
1419- /// Literals created from negative numbers might not survive rountrips through
1417+ /// Literals created from negative numbers might not survive roundtrips through
14201418 /// `TokenStream` or strings and may be broken into two tokens (`-` and positive literal).
14211419 ///
14221420 /// # Panics
@@ -1441,7 +1439,7 @@ impl Literal {
14411439 /// specified is the preceding part of the token and `f32` is the suffix of
14421440 /// the token. This token will always be inferred to be an `f32` in the
14431441 /// compiler.
1444- /// Literals created from negative numbers might not survive rountrips through
1442+ /// Literals created from negative numbers might not survive roundtrips through
14451443 /// `TokenStream` or strings and may be broken into two tokens (`-` and positive literal).
14461444 ///
14471445 /// # Panics
@@ -1461,7 +1459,7 @@ impl Literal {
14611459 /// This constructor is similar to those like `Literal::i8_unsuffixed` where
14621460 /// the float's value is emitted directly into the token but no suffix is
14631461 /// used, so it may be inferred to be a `f64` later in the compiler.
1464- /// Literals created from negative numbers might not survive rountrips through
1462+ /// Literals created from negative numbers might not survive roundtrips through
14651463 /// `TokenStream` or strings and may be broken into two tokens (`-` and positive literal).
14661464 ///
14671465 /// # Panics
@@ -1486,7 +1484,7 @@ impl Literal {
14861484 /// specified is the preceding part of the token and `f64` is the suffix of
14871485 /// the token. This token will always be inferred to be an `f64` in the
14881486 /// compiler.
1489- /// Literals created from negative numbers might not survive rountrips through
1487+ /// Literals created from negative numbers might not survive roundtrips through
14901488 /// `TokenStream` or strings and may be broken into two tokens (`-` and positive literal).
14911489 ///
14921490 /// # Panics
0 commit comments