]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast/src/tokenstream.rs
Rollup merge of #107422 - Nilstrieb:erase-the-ice, r=compiler-errors
[rust.git] / compiler / rustc_ast / src / tokenstream.rs
index 482c302950f01ae7e20b16002afb4b4e114e97f1..fabd43a1618a4387fa8af8680fe8a52f17af90d1 100644 (file)
@@ -258,8 +258,7 @@ pub fn to_tokenstream(&self) -> TokenStream {
 
                         assert!(
                             found,
-                            "Failed to find trailing delimited group in: {:?}",
-                            target_tokens
+                            "Failed to find trailing delimited group in: {target_tokens:?}"
                         );
                     }
                     let mut flat: SmallVec<[_; 1]> = SmallVec::new();
@@ -362,7 +361,7 @@ pub fn add_comma(&self) -> Option<(TokenStream, Span)> {
     }
 }
 
-impl iter::FromIterator<TokenTree> for TokenStream {
+impl FromIterator<TokenTree> for TokenStream {
     fn from_iter<I: IntoIterator<Item = TokenTree>>(iter: I) -> Self {
         TokenStream::new(iter.into_iter().collect::<Vec<TokenTree>>())
     }