build(cargo): Update rustc to nightly-2024-02-06 (#8618)

This commit is contained in:
Donny/강동윤 2024-02-13 13:32:49 +09:00 committed by GitHub
parent 9ad0f9fedb
commit 6726b631e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 49 additions and 47 deletions

View File

@ -110,7 +110,7 @@ jobs:
uses: baptiste0928/cargo-install@v2
with:
crate: cargo-deny
version: "0.14.3"
version: "0.14.11"
- name: Check licenses
run: |

34
Cargo.lock generated
View File

@ -29,9 +29,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "ahash"
version = "0.7.7"
version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd"
checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9"
dependencies = [
"getrandom",
"once_cell",
@ -40,9 +40,9 @@ dependencies = [
[[package]]
name = "ahash"
version = "0.8.7"
version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01"
checksum = "42cd52102d3df161c77a887b608d7a4897d7cc112886a9537b738a887a03aaff"
dependencies = [
"cfg-if",
"const-random",
@ -370,7 +370,7 @@ version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "405bbd46590a441abe5db3e5c8af005aa42e640803fecb51912703e93e4ce8d3"
dependencies = [
"ahash 0.8.7",
"ahash 0.8.8",
"anyhow",
"chrono",
"either",
@ -1577,7 +1577,7 @@ version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
dependencies = [
"ahash 0.7.7",
"ahash 0.7.8",
]
[[package]]
@ -1586,7 +1586,7 @@ version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
dependencies = [
"ahash 0.8.7",
"ahash 0.8.8",
]
[[package]]
@ -2023,9 +2023,9 @@ dependencies = [
[[package]]
name = "libc"
version = "0.2.152"
version = "0.2.153"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7"
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
[[package]]
name = "libloading"
@ -2790,7 +2790,7 @@ dependencies = [
name = "preset_env_base"
version = "0.4.11"
dependencies = [
"ahash 0.8.7",
"ahash 0.8.8",
"anyhow",
"browserslist-rs",
"dashmap",
@ -3310,9 +3310,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
[[package]]
name = "serde"
version = "1.0.195"
version = "1.0.196"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02"
checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32"
dependencies = [
"serde_derive",
]
@ -3340,9 +3340,9 @@ dependencies = [
[[package]]
name = "serde_derive"
version = "1.0.195"
version = "1.0.196"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c"
checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67"
dependencies = [
"proc-macro2",
"quote",
@ -3792,7 +3792,7 @@ dependencies = [
name = "swc_cached"
version = "0.3.19"
dependencies = [
"ahash 0.8.7",
"ahash 0.8.8",
"anyhow",
"dashmap",
"once_cell",
@ -3828,7 +3828,7 @@ dependencies = [
name = "swc_common"
version = "0.33.17"
dependencies = [
"ahash 0.8.7",
"ahash 0.8.8",
"anyhow",
"arbitrary",
"ast_node",
@ -4937,7 +4937,7 @@ dependencies = [
name = "swc_estree_compat"
version = "0.198.5"
dependencies = [
"ahash 0.8.7",
"ahash 0.8.8",
"anyhow",
"copyless",
"criterion",

28
bindings/Cargo.lock generated
View File

@ -29,9 +29,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "ahash"
version = "0.7.6"
version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47"
checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9"
dependencies = [
"getrandom",
"once_cell",
@ -40,9 +40,9 @@ dependencies = [
[[package]]
name = "ahash"
version = "0.8.5"
version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd7d5a2cecb58716e47d67d5703a249964b14c7be1ec3cad3affc295b2d1c35d"
checksum = "42cd52102d3df161c77a887b608d7a4897d7cc112886a9537b738a887a03aaff"
dependencies = [
"cfg-if",
"getrandom",
@ -348,7 +348,7 @@ version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "405bbd46590a441abe5db3e5c8af005aa42e640803fecb51912703e93e4ce8d3"
dependencies = [
"ahash 0.8.5",
"ahash 0.8.8",
"anyhow",
"chrono",
"either",
@ -1252,7 +1252,7 @@ version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
dependencies = [
"ahash 0.7.6",
"ahash 0.7.8",
]
[[package]]
@ -1261,7 +1261,7 @@ version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
dependencies = [
"ahash 0.8.5",
"ahash 0.8.8",
]
[[package]]
@ -2158,7 +2158,7 @@ version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d99dc6ba4753f07bfbc4dbf3137618d31af2611fcaced7237647075ca687eaa"
dependencies = [
"ahash 0.8.5",
"ahash 0.8.8",
"anyhow",
"browserslist-rs",
"dashmap",
@ -3029,7 +3029,7 @@ version = "0.3.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "630c761c74ac8021490b78578cc2223aa4a568241e26505c27bf0e4fd4ad8ec2"
dependencies = [
"ahash 0.8.5",
"ahash 0.8.8",
"anyhow",
"dashmap",
"once_cell",
@ -3075,7 +3075,7 @@ version = "0.33.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "095c158fe55b36faeebb4274692643a6d7cdc5b7902e1d5968ddbe52b7de1d1c"
dependencies = [
"ahash 0.8.5",
"ahash 0.8.8",
"anyhow",
"ast_node",
"better_scoped_tls",
@ -5400,18 +5400,18 @@ dependencies = [
[[package]]
name = "zerocopy"
version = "0.7.11"
version = "0.7.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c19fae0c8a9efc6a8281f2e623db8af1db9e57852e04cde3e754dd2dc29340f"
checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.7.11"
version = "0.7.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc56589e9ddd1f1c28d4b4b5c773ce232910a6bb67a70133d61c9e347585efe9"
checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
dependencies = [
"proc-macro2",
"quote",

View File

@ -11,7 +11,7 @@ version = "0.4.11"
bench = false
[dependencies]
ahash = "0.8.5"
ahash = "0.8.8"
anyhow = "1"
browserslist-rs = "0.15.0"
dashmap = "5.4.0"

View File

@ -13,7 +13,7 @@ version = "0.3.19"
bench = false
[dependencies]
ahash = "0.8.5"
ahash = "0.8.8"
anyhow = "1.0.71"
dashmap = "5.4.0"
once_cell = "1.18.0"

View File

@ -99,7 +99,6 @@ fn write_ignore_file(base_path: &Path) -> Result<()> {
};
let mut f = OpenOptions::new()
.write(true)
.append(true)
.create(true)
.open(&ignore_file_path)?;

View File

@ -37,7 +37,7 @@ __rkyv = []
rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "bytecheck"]
[dependencies]
ahash = { version = "0.8.5", optional = true }
ahash = { version = "0.8.8", optional = true }
anyhow = { version = "1.0.71", optional = true }
arbitrary = { version = "1", optional = true, features = ["derive"] }
atty = { version = "0.2", optional = true }

View File

@ -728,7 +728,7 @@ impl SourceMap {
return sp;
}
match self.span_to_source(sp, |src, start_index, end_index| {
let v = self.span_to_source(sp, |src, start_index, end_index| {
let snippet = &src[start_index..end_index];
let snippet = snippet.split(c).next().unwrap_or("").trim_end();
if !snippet.is_empty() && !snippet.contains('\n') {
@ -736,7 +736,8 @@ impl SourceMap {
} else {
sp
}
}) {
});
match v {
Ok(v) => v,
Err(_) => sp,
}

View File

@ -594,7 +594,7 @@ where
}
};
match self.parse_according_to_grammar(&locv, |parser| {
let res = self.parse_according_to_grammar(&locv, |parser| {
parser.input.skip_ws();
let child = parser.parse()?;
@ -615,7 +615,8 @@ where
}
Ok(keyframes_selectors)
}) {
});
match res {
Ok(keyframes_selectors) => {
ComponentValue::KeyframeBlock(Box::new(KeyframeBlock {
span: qualified_rule.span,

View File

@ -288,7 +288,7 @@ where
) -> PResult<Declaration> {
let locv = self.create_locv(declaration.value);
declaration.value = match self.parse_according_to_grammar(&locv, |parser| {
let value = self.parse_according_to_grammar(&locv, |parser| {
let mut values = vec![];
loop {
@ -300,7 +300,8 @@ where
}
Ok(values)
}) {
});
declaration.value = match value {
Ok(values) => values,
Err(err) => {
if *err.kind() != ErrorKind::Ignore {

View File

@ -27,7 +27,7 @@
//! `SWC_RUN` to `1`, the minifier will validate the code using node before each
//! step.
#![deny(clippy::all)]
#![allow(clippy::blocks_in_if_conditions)]
#![allow(clippy::blocks_in_conditions)]
#![allow(clippy::collapsible_else_if)]
#![allow(clippy::collapsible_if)]
#![allow(clippy::ptr_arg)]

View File

@ -230,7 +230,7 @@ pub(super) fn use_strict() -> Stmt {
}
/// Private `_exports` ident.
pub(super) struct Exports(pub Ident);
pub(super) struct Exports(#[allow(dead_code)] pub Ident);
impl Default for Exports {
fn default() -> Self {

View File

@ -652,6 +652,7 @@ fn exec_with_node_test_runner(src: &str) -> Result<(), ()> {
let mut tmp = OpenOptions::new()
.create(true)
.truncate(true)
.write(true)
.open(&path)
.expect("failed to create a temp file");

View File

@ -16,7 +16,7 @@ version = "0.198.5"
bench = false
[dependencies]
ahash = { version = "0.8.5", features = ["compile-time-rng"] }
ahash = { version = "0.8.8", features = ["compile-time-rng"] }
anyhow = "1"
copyless = "0.1.5"
rayon = "1.7.0"

View File

@ -1,7 +1,6 @@
#![deny(clippy::all)]
#![allow(clippy::large_enum_variant)]
#![allow(clippy::upper_case_acronyms)]
#![feature(type_name_of_val)]
#![feature(never_type)]
pub mod babelify;

View File

@ -1 +1 @@
nightly-2023-11-04
nightly-2024-02-06