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