Skip to content

Commit

Permalink
Rollup merge of rust-lang#68999 - andjo403:itertools, r=Centril
Browse files Browse the repository at this point in the history
remove dependency on itertools

r? @Centril
  • Loading branch information
JohnTitor authored Feb 12, 2020
2 parents 931005d + 3b23d22 commit 9b51a52
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3750,7 +3750,6 @@ dependencies = [
name = "rustc_macros"
version = "0.1.0"
dependencies = [
"itertools 0.8.0",
"proc-macro2 1.0.3",
"quote 1.0.2",
"syn 1.0.11",
Expand Down Expand Up @@ -3814,7 +3813,6 @@ name = "rustc_mir_build"
version = "0.0.0"
dependencies = [
"arena",
"itertools 0.8.0",
"log",
"rustc",
"rustc_apfloat",
Expand Down
1 change: 0 additions & 1 deletion src/librustc_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ synstructure = "0.12.1"
syn = { version = "1", features = ["full"] }
proc-macro2 = "1"
quote = "1"
itertools = "0.8"
6 changes: 1 addition & 5 deletions src/librustc_macros/src/query.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use itertools::Itertools;
use proc_macro::TokenStream;
use proc_macro2::{Delimiter, TokenTree};
use quote::quote;
Expand Down Expand Up @@ -469,10 +468,7 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
attributes.push(quote! { eval_always });
};

let mut attribute_stream = quote! {};
for e in attributes.into_iter().intersperse(quote! {,}) {
attribute_stream.extend(e);
}
let attribute_stream = quote! {#(#attributes),*};

// Add the query to the group
group_stream.extend(quote! {
Expand Down
1 change: 0 additions & 1 deletion src/librustc_mir_build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ doctest = false

[dependencies]
arena = { path = "../libarena" }
itertools = "0.8"
log = "0.4"
rustc = { path = "../librustc" }
rustc_apfloat = { path = "../librustc_apfloat" }
Expand Down

0 comments on commit 9b51a52

Please sign in to comment.