Skip to content

Commit 6726b63

Browse files
authoredFeb 13, 2024··
build(cargo): Update rustc to nightly-2024-02-06 (#8618)
1 parent 9ad0f9f commit 6726b63

File tree

16 files changed

+49
-47
lines changed

16 files changed

+49
-47
lines changed
 

‎.github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
uses: baptiste0928/cargo-install@v2
111111
with:
112112
crate: cargo-deny
113-
version: "0.14.3"
113+
version: "0.14.11"
114114

115115
- name: Check licenses
116116
run: |

‎Cargo.lock

+17-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎bindings/Cargo.lock

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/preset_env_base/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version = "0.4.11"
1111
bench = false
1212

1313
[dependencies]
14-
ahash = "0.8.5"
14+
ahash = "0.8.8"
1515
anyhow = "1"
1616
browserslist-rs = "0.15.0"
1717
dashmap = "5.4.0"

‎crates/swc_cached/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ version = "0.3.19"
1313
bench = false
1414

1515
[dependencies]
16-
ahash = "0.8.5"
16+
ahash = "0.8.8"
1717
anyhow = "1.0.71"
1818
dashmap = "5.4.0"
1919
once_cell = "1.18.0"

‎crates/swc_cli_impl/src/commands/plugin.rs

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ fn write_ignore_file(base_path: &Path) -> Result<()> {
9999
};
100100

101101
let mut f = OpenOptions::new()
102-
.write(true)
103102
.append(true)
104103
.create(true)
105104
.open(&ignore_file_path)?;

‎crates/swc_common/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ __rkyv = []
3737
rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "bytecheck"]
3838

3939
[dependencies]
40-
ahash = { version = "0.8.5", optional = true }
40+
ahash = { version = "0.8.8", optional = true }
4141
anyhow = { version = "1.0.71", optional = true }
4242
arbitrary = { version = "1", optional = true, features = ["derive"] }
4343
atty = { version = "0.2", optional = true }

‎crates/swc_common/src/source_map.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -728,15 +728,16 @@ impl SourceMap {
728728
return sp;
729729
}
730730

731-
match self.span_to_source(sp, |src, start_index, end_index| {
731+
let v = self.span_to_source(sp, |src, start_index, end_index| {
732732
let snippet = &src[start_index..end_index];
733733
let snippet = snippet.split(c).next().unwrap_or("").trim_end();
734734
if !snippet.is_empty() && !snippet.contains('\n') {
735735
sp.with_hi(BytePos(sp.lo().0 + snippet.len() as u32))
736736
} else {
737737
sp
738738
}
739-
}) {
739+
});
740+
match v {
740741
Ok(v) => v,
741742
Err(_) => sp,
742743
}

‎crates/swc_css_parser/src/parser/at_rules/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ where
594594
}
595595
};
596596

597-
match self.parse_according_to_grammar(&locv, |parser| {
597+
let res = self.parse_according_to_grammar(&locv, |parser| {
598598
parser.input.skip_ws();
599599

600600
let child = parser.parse()?;
@@ -615,7 +615,8 @@ where
615615
}
616616

617617
Ok(keyframes_selectors)
618-
}) {
618+
});
619+
match res {
619620
Ok(keyframes_selectors) => {
620621
ComponentValue::KeyframeBlock(Box::new(KeyframeBlock {
621622
span: qualified_rule.span,

‎crates/swc_css_parser/src/parser/util.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ where
288288
) -> PResult<Declaration> {
289289
let locv = self.create_locv(declaration.value);
290290

291-
declaration.value = match self.parse_according_to_grammar(&locv, |parser| {
291+
let value = self.parse_according_to_grammar(&locv, |parser| {
292292
let mut values = vec![];
293293

294294
loop {
@@ -300,7 +300,8 @@ where
300300
}
301301

302302
Ok(values)
303-
}) {
303+
});
304+
declaration.value = match value {
304305
Ok(values) => values,
305306
Err(err) => {
306307
if *err.kind() != ErrorKind::Ignore {

‎crates/swc_ecma_minifier/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//! `SWC_RUN` to `1`, the minifier will validate the code using node before each
2828
//! step.
2929
#![deny(clippy::all)]
30-
#![allow(clippy::blocks_in_if_conditions)]
30+
#![allow(clippy::blocks_in_conditions)]
3131
#![allow(clippy::collapsible_else_if)]
3232
#![allow(clippy::collapsible_if)]
3333
#![allow(clippy::ptr_arg)]

‎crates/swc_ecma_transforms_module/src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ pub(super) fn use_strict() -> Stmt {
230230
}
231231

232232
/// Private `_exports` ident.
233-
pub(super) struct Exports(pub Ident);
233+
pub(super) struct Exports(#[allow(dead_code)] pub Ident);
234234

235235
impl Default for Exports {
236236
fn default() -> Self {

‎crates/swc_ecma_transforms_testing/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ fn exec_with_node_test_runner(src: &str) -> Result<(), ()> {
652652

653653
let mut tmp = OpenOptions::new()
654654
.create(true)
655+
.truncate(true)
655656
.write(true)
656657
.open(&path)
657658
.expect("failed to create a temp file");

‎crates/swc_estree_compat/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ version = "0.198.5"
1616
bench = false
1717

1818
[dependencies]
19-
ahash = { version = "0.8.5", features = ["compile-time-rng"] }
19+
ahash = { version = "0.8.8", features = ["compile-time-rng"] }
2020
anyhow = "1"
2121
copyless = "0.1.5"
2222
rayon = "1.7.0"

‎crates/swc_estree_compat/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![deny(clippy::all)]
22
#![allow(clippy::large_enum_variant)]
33
#![allow(clippy::upper_case_acronyms)]
4-
#![feature(type_name_of_val)]
54
#![feature(never_type)]
65

76
pub mod babelify;

‎rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2023-11-04
1+
nightly-2024-02-06

0 commit comments

Comments
 (0)
Please sign in to comment.