Rollup merge of #68999 - andjo403:itertools, r=Centril
remove dependency on itertools r? @Centril
This commit is contained in:
commit
9b51a52084
4 changed files with 1 additions and 9 deletions
|
@ -3750,7 +3750,6 @@ dependencies = [
|
||||||
name = "rustc_macros"
|
name = "rustc_macros"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"itertools 0.8.0",
|
|
||||||
"proc-macro2 1.0.3",
|
"proc-macro2 1.0.3",
|
||||||
"quote 1.0.2",
|
"quote 1.0.2",
|
||||||
"syn 1.0.11",
|
"syn 1.0.11",
|
||||||
|
@ -3814,7 +3813,6 @@ name = "rustc_mir_build"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arena",
|
"arena",
|
||||||
"itertools 0.8.0",
|
|
||||||
"log",
|
"log",
|
||||||
"rustc",
|
"rustc",
|
||||||
"rustc_apfloat",
|
"rustc_apfloat",
|
||||||
|
|
|
@ -12,4 +12,3 @@ synstructure = "0.12.1"
|
||||||
syn = { version = "1", features = ["full"] }
|
syn = { version = "1", features = ["full"] }
|
||||||
proc-macro2 = "1"
|
proc-macro2 = "1"
|
||||||
quote = "1"
|
quote = "1"
|
||||||
itertools = "0.8"
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
use itertools::Itertools;
|
|
||||||
use proc_macro::TokenStream;
|
use proc_macro::TokenStream;
|
||||||
use proc_macro2::{Delimiter, TokenTree};
|
use proc_macro2::{Delimiter, TokenTree};
|
||||||
use quote::quote;
|
use quote::quote;
|
||||||
|
@ -469,10 +468,7 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
|
||||||
attributes.push(quote! { eval_always });
|
attributes.push(quote! { eval_always });
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut attribute_stream = quote! {};
|
let attribute_stream = quote! {#(#attributes),*};
|
||||||
for e in attributes.into_iter().intersperse(quote! {,}) {
|
|
||||||
attribute_stream.extend(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add the query to the group
|
// Add the query to the group
|
||||||
group_stream.extend(quote! {
|
group_stream.extend(quote! {
|
||||||
|
|
|
@ -11,7 +11,6 @@ doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
arena = { path = "../libarena" }
|
arena = { path = "../libarena" }
|
||||||
itertools = "0.8"
|
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
rustc = { path = "../librustc" }
|
rustc = { path = "../librustc" }
|
||||||
rustc_apfloat = { path = "../librustc_apfloat" }
|
rustc_apfloat = { path = "../librustc_apfloat" }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue