File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -229,24 +229,10 @@ impl Extend<TokenStream> for TokenStream {
229229 fn extend < I : IntoIterator < Item = TokenStream > > ( & mut self , streams : I ) {
230230 match self {
231231 TokenStream :: Compiler ( tts) => {
232- #[ cfg( not( slow_extend) ) ]
233- {
234- tts. extend ( streams. into_iter ( ) . map ( |stream| stream. unwrap_nightly ( ) ) ) ;
235- }
236- #[ cfg( slow_extend) ]
237- {
238- * tts = tts
239- . clone ( )
240- . into_iter ( )
241- . chain ( streams. into_iter ( ) . flat_map ( |t| match t {
242- TokenStream :: Compiler ( tts) => tts. into_iter ( ) ,
243- _ => mismatch ( ) ,
244- } ) )
245- . collect ( ) ;
246- }
232+ tts. extend ( streams. into_iter ( ) . map ( |stream| stream. unwrap_nightly ( ) ) ) ;
247233 }
248234 TokenStream :: Fallback ( tts) => {
249- tts. extend ( streams. into_iter ( ) . map ( |stream| stream. unwrap_stable ( ) ) )
235+ tts. extend ( streams. into_iter ( ) . map ( |stream| stream. unwrap_stable ( ) ) ) ;
250236 }
251237 }
252238 }
You can’t perform that action at this time.
0 commit comments