Skip to content

Commit 9b51a52

Browse files
authored
Rollup merge of rust-lang#68999 - andjo403:itertools, r=Centril
remove dependency on itertools r? @Centril
2 parents 931005d + 3b23d22 commit 9b51a52

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

Cargo.lock

-2
Original file line numberDiff line numberDiff line change
@@ -3750,7 +3750,6 @@ dependencies = [
37503750
name = "rustc_macros"
37513751
version = "0.1.0"
37523752
dependencies = [
3753-
"itertools 0.8.0",
37543753
"proc-macro2 1.0.3",
37553754
"quote 1.0.2",
37563755
"syn 1.0.11",
@@ -3814,7 +3813,6 @@ name = "rustc_mir_build"
38143813
version = "0.0.0"
38153814
dependencies = [
38163815
"arena",
3817-
"itertools 0.8.0",
38183816
"log",
38193817
"rustc",
38203818
"rustc_apfloat",

src/librustc_macros/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ synstructure = "0.12.1"
1212
syn = { version = "1", features = ["full"] }
1313
proc-macro2 = "1"
1414
quote = "1"
15-
itertools = "0.8"

src/librustc_macros/src/query.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use itertools::Itertools;
21
use proc_macro::TokenStream;
32
use proc_macro2::{Delimiter, TokenTree};
43
use quote::quote;
@@ -469,10 +468,7 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
469468
attributes.push(quote! { eval_always });
470469
};
471470

472-
let mut attribute_stream = quote! {};
473-
for e in attributes.into_iter().intersperse(quote! {,}) {
474-
attribute_stream.extend(e);
475-
}
471+
let attribute_stream = quote! {#(#attributes),*};
476472

477473
// Add the query to the group
478474
group_stream.extend(quote! {

src/librustc_mir_build/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ doctest = false
1111

1212
[dependencies]
1313
arena = { path = "../libarena" }
14-
itertools = "0.8"
1514
log = "0.4"
1615
rustc = { path = "../librustc" }
1716
rustc_apfloat = { path = "../librustc_apfloat" }

0 commit comments

Comments
 (0)