forked from Rust-related/RustPython
itertools upgrade
This commit is contained in:
committed by
Jeong, YunWon
parent
fde87a340c
commit
e8a3406624
16
Cargo.lock
generated
16
Cargo.lock
generated
@@ -976,9 +976,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "itertools"
|
||||
version = "0.12.1"
|
||||
version = "0.14.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
||||
checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
|
||||
dependencies = [
|
||||
"either",
|
||||
]
|
||||
@@ -1978,7 +1978,7 @@ dependencies = [
|
||||
"bitflags 2.8.0",
|
||||
"indexmap",
|
||||
"insta",
|
||||
"itertools 0.12.1",
|
||||
"itertools 0.14.0",
|
||||
"log",
|
||||
"num-complex",
|
||||
"num-traits",
|
||||
@@ -1996,7 +1996,7 @@ dependencies = [
|
||||
"ascii",
|
||||
"bitflags 2.8.0",
|
||||
"cfg-if",
|
||||
"itertools 0.12.1",
|
||||
"itertools 0.14.0",
|
||||
"libc",
|
||||
"lock_api",
|
||||
"malachite-base",
|
||||
@@ -2029,7 +2029,7 @@ name = "rustpython-compiler-core"
|
||||
version = "0.4.0"
|
||||
dependencies = [
|
||||
"bitflags 2.8.0",
|
||||
"itertools 0.12.1",
|
||||
"itertools 0.14.0",
|
||||
"lz4_flex",
|
||||
"malachite-bigint",
|
||||
"num-complex",
|
||||
@@ -2050,7 +2050,7 @@ dependencies = [
|
||||
name = "rustpython-derive-impl"
|
||||
version = "0.4.0"
|
||||
dependencies = [
|
||||
"itertools 0.12.1",
|
||||
"itertools 0.14.0",
|
||||
"maplit",
|
||||
"once_cell",
|
||||
"proc-macro2",
|
||||
@@ -2192,7 +2192,7 @@ dependencies = [
|
||||
"gethostname",
|
||||
"hex",
|
||||
"indexmap",
|
||||
"itertools 0.12.1",
|
||||
"itertools 0.14.0",
|
||||
"junction",
|
||||
"libc",
|
||||
"libsqlite3-sys",
|
||||
@@ -2268,7 +2268,7 @@ dependencies = [
|
||||
"hex",
|
||||
"indexmap",
|
||||
"is-macro",
|
||||
"itertools 0.12.1",
|
||||
"itertools 0.14.0",
|
||||
"junction",
|
||||
"libc",
|
||||
"log",
|
||||
|
||||
@@ -151,7 +151,7 @@ glob = "0.3"
|
||||
hex = "0.4.3"
|
||||
indexmap = { version = "2.2.6", features = ["std"] }
|
||||
insta = "1.38.0"
|
||||
itertools = "0.12.1"
|
||||
itertools = "0.14.0"
|
||||
is-macro = "0.3.7"
|
||||
junction = "1.2.0"
|
||||
libc = "0.2.169"
|
||||
|
||||
@@ -2723,7 +2723,7 @@ impl Compiler {
|
||||
|
||||
fn compile_keywords(&mut self, keywords: &[located_ast::Keyword]) -> CompileResult<()> {
|
||||
let mut size = 0;
|
||||
let groupby = keywords.iter().group_by(|e| e.arg.is_none());
|
||||
let groupby = keywords.iter().chunk_by(|e| e.arg.is_none());
|
||||
for (is_unpacking, sub_keywords) in &groupby {
|
||||
if is_unpacking {
|
||||
for keyword in sub_keywords {
|
||||
@@ -2886,7 +2886,7 @@ impl Compiler {
|
||||
(false, element)
|
||||
}
|
||||
})
|
||||
.group_by(|(starred, _)| *starred);
|
||||
.chunk_by(|(starred, _)| *starred);
|
||||
|
||||
for (starred, run) in &groups {
|
||||
let mut run_size = 0;
|
||||
|
||||
@@ -356,7 +356,7 @@ mod math {
|
||||
.map(|x| (x / scale).powi(2))
|
||||
.chain(std::iter::once(-norm * norm))
|
||||
// Pairwise summation of floats gives less rounding error than a naive sum.
|
||||
.tree_fold1(std::ops::Add::add)
|
||||
.tree_reduce(std::ops::Add::add)
|
||||
.expect("expected at least 1 element");
|
||||
norm = norm + correction / (2.0 * norm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user