mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 21:54:36 +03:00
chore: Update rustc to prevent CVE-2021-42574
(#2690)
This commit is contained in:
parent
7e259abae1
commit
368b9e2ff2
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -3583,7 +3583,7 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
|
||||
|
||||
[[package]]
|
||||
name = "wasm"
|
||||
version = "1.2.107"
|
||||
version = "1.2.108"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"console_error_panic_hook",
|
||||
|
@ -340,9 +340,7 @@ where
|
||||
for (_, stmt) in entry.iter_mut() {
|
||||
let var = match stmt {
|
||||
ModuleItem::Stmt(Stmt::Decl(Decl::Var(
|
||||
var
|
||||
@
|
||||
VarDecl {
|
||||
var @ VarDecl {
|
||||
kind: VarDeclKind::Const,
|
||||
..
|
||||
},
|
||||
|
@ -77,8 +77,8 @@ mod single {
|
||||
|
||||
pub use std::{
|
||||
cell::{
|
||||
Ref as ReadGuard, Ref as MappedReadGuard, RefMut as WriteGuard,
|
||||
RefMut as MappedWriteGuard, RefMut as LockGuard, RefMut as MappedLockGuard,
|
||||
Ref as ReadGuard, RefMut as WriteGuard, RefMut as MappedWriteGuard,
|
||||
RefMut as LockGuard, RefMut as MappedLockGuard,
|
||||
},
|
||||
rc::{Rc as Lrc, Weak},
|
||||
};
|
||||
|
@ -40,9 +40,7 @@ impl Jest {
|
||||
..
|
||||
}) => match &**callee {
|
||||
Expr::Member(
|
||||
callee
|
||||
@
|
||||
MemberExpr {
|
||||
callee @ MemberExpr {
|
||||
computed: false, ..
|
||||
},
|
||||
) => match &callee.obj {
|
||||
|
@ -94,9 +94,7 @@ impl Hoister<'_> {
|
||||
}
|
||||
|
||||
Stmt::Decl(Decl::Var(
|
||||
var
|
||||
@
|
||||
VarDecl {
|
||||
var @ VarDecl {
|
||||
kind: VarDeclKind::Var,
|
||||
..
|
||||
},
|
||||
|
@ -79,9 +79,7 @@ where
|
||||
},
|
||||
Stmt::For(mut stmt) => match &mut stmt.init {
|
||||
Some(VarDeclOrExpr::VarDecl(
|
||||
var
|
||||
@
|
||||
VarDecl {
|
||||
var @ VarDecl {
|
||||
kind: VarDeclKind::Var,
|
||||
..
|
||||
},
|
||||
|
@ -95,9 +95,7 @@ where
|
||||
| Stmt::ForOf(..) => true,
|
||||
|
||||
Stmt::Decl(Decl::Var(
|
||||
v
|
||||
@
|
||||
VarDecl {
|
||||
v @ VarDecl {
|
||||
kind: VarDeclKind::Var,
|
||||
..
|
||||
},
|
||||
@ -118,9 +116,7 @@ where
|
||||
if stmts.len() == 2 {
|
||||
match stmts[1].as_stmt() {
|
||||
Some(Stmt::Decl(Decl::Var(
|
||||
v
|
||||
@
|
||||
VarDecl {
|
||||
v @ VarDecl {
|
||||
kind: VarDeclKind::Var,
|
||||
..
|
||||
},
|
||||
@ -198,10 +194,7 @@ where
|
||||
|
||||
Stmt::For(mut stmt @ ForStmt { init: None, .. })
|
||||
| Stmt::For(
|
||||
mut
|
||||
stmt
|
||||
@
|
||||
ForStmt {
|
||||
mut stmt @ ForStmt {
|
||||
init: Some(VarDeclOrExpr::Expr(..)),
|
||||
..
|
||||
},
|
||||
@ -291,9 +284,7 @@ where
|
||||
}
|
||||
|
||||
Stmt::Decl(Decl::Var(
|
||||
var
|
||||
@
|
||||
VarDecl {
|
||||
var @ VarDecl {
|
||||
kind: VarDeclKind::Var,
|
||||
..
|
||||
},
|
||||
@ -515,9 +506,7 @@ where
|
||||
for stmt in &mut bs.stmts {
|
||||
match stmt {
|
||||
Stmt::Decl(Decl::Var(
|
||||
v
|
||||
@
|
||||
VarDecl {
|
||||
v @ VarDecl {
|
||||
kind: VarDeclKind::Var,
|
||||
..
|
||||
},
|
||||
@ -619,9 +608,7 @@ where
|
||||
Some(match s {
|
||||
Stmt::Expr(e) => vec![Mergable::Expr(&mut *e.expr)],
|
||||
Stmt::Decl(Decl::Var(
|
||||
v
|
||||
@
|
||||
VarDecl {
|
||||
v @ VarDecl {
|
||||
kind: VarDeclKind::Var | VarDeclKind::Let,
|
||||
..
|
||||
},
|
||||
|
@ -48,9 +48,7 @@ where
|
||||
|
||||
match &mut *kv.value {
|
||||
Expr::Arrow(
|
||||
m
|
||||
@
|
||||
ArrowExpr {
|
||||
m @ ArrowExpr {
|
||||
body: BlockStmtOrExpr::BlockStmt(..),
|
||||
..
|
||||
},
|
||||
|
@ -199,8 +199,7 @@ where
|
||||
},
|
||||
) => match &mut *bin.left {
|
||||
Expr::Bin(
|
||||
left
|
||||
@ BinExpr {
|
||||
left @ BinExpr {
|
||||
op: op!(bin, "+"), ..
|
||||
},
|
||||
) => {
|
||||
|
@ -33,9 +33,7 @@ where
|
||||
for stmt in &*stmts {
|
||||
match stmt.as_stmt() {
|
||||
Some(Stmt::Decl(Decl::Var(
|
||||
v
|
||||
@
|
||||
VarDecl {
|
||||
v @ VarDecl {
|
||||
kind: VarDeclKind::Var,
|
||||
..
|
||||
},
|
||||
|
@ -586,9 +586,7 @@ impl<'a, I: Tokens> Parser<I> {
|
||||
Ok(Pat::Invalid(Invalid { span }))
|
||||
}
|
||||
Expr::Assign(
|
||||
assign_expr
|
||||
@
|
||||
AssignExpr {
|
||||
assign_expr @ AssignExpr {
|
||||
op: AssignOpToken::Assign,
|
||||
..
|
||||
},
|
||||
@ -692,9 +690,7 @@ impl<'a, I: Tokens> Parser<I> {
|
||||
for expr in exprs.drain(..idx_of_rest_not_allowed) {
|
||||
match expr {
|
||||
Some(
|
||||
expr
|
||||
@
|
||||
ExprOrSpread {
|
||||
expr @ ExprOrSpread {
|
||||
spread: Some(..), ..
|
||||
},
|
||||
) => {
|
||||
|
@ -596,9 +596,7 @@ impl CaseHandler<'_> {
|
||||
}
|
||||
|
||||
Expr::Bin(
|
||||
e
|
||||
@
|
||||
BinExpr {
|
||||
e @ BinExpr {
|
||||
op: op!("&&") | op!("||"),
|
||||
..
|
||||
},
|
||||
|
@ -310,9 +310,7 @@ impl Fold for Actual {
|
||||
}
|
||||
|
||||
Expr::Fn(
|
||||
expr
|
||||
@
|
||||
FnExpr {
|
||||
expr @ FnExpr {
|
||||
function:
|
||||
Function {
|
||||
is_async: true,
|
||||
|
@ -504,9 +504,7 @@ impl OptChaining {
|
||||
|
||||
match *obj {
|
||||
Expr::Member(
|
||||
obj
|
||||
@
|
||||
MemberExpr {
|
||||
obj @ MemberExpr {
|
||||
obj: ExprOrSuper::Expr(..),
|
||||
..
|
||||
},
|
||||
|
@ -528,9 +528,7 @@ impl VisitMut for Remover {
|
||||
if done {
|
||||
match s {
|
||||
Stmt::Decl(Decl::Var(
|
||||
var
|
||||
@
|
||||
VarDecl {
|
||||
var @ VarDecl {
|
||||
kind: VarDeclKind::Var,
|
||||
..
|
||||
},
|
||||
|
@ -7,4 +7,4 @@ pub use super::{
|
||||
};
|
||||
pub use proc_macro2::{Delimiter, Group, Literal, Punct, Span, TokenStream, TokenTree};
|
||||
pub use quote::ToTokens;
|
||||
pub use syn::punctuated::{Pair as Element, Pair, Punctuated};
|
||||
pub use syn::punctuated::{Pair as Element, Punctuated};
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@swc/core",
|
||||
"version": "1.2.107",
|
||||
"version": "1.2.108",
|
||||
"description": "Super-fast alternative for babel",
|
||||
"homepage": "https://swc.rs",
|
||||
"main": "./index.js",
|
||||
|
@ -1 +1 @@
|
||||
nightly-2021-09-30
|
||||
nightly-2021-11-08
|
@ -6,7 +6,7 @@ license = "Apache-2.0 AND MIT"
|
||||
name = "wasm"
|
||||
publish = false
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "1.2.107"
|
||||
version = "1.2.108"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
Loading…
Reference in New Issue
Block a user