chore: Update rustc to prevent CVE-2021-42574 (#2690)

This commit is contained in:
Donny/강동윤 2021-11-09 14:20:02 +09:00 committed by GitHub
parent 7e259abae1
commit 368b9e2ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 26 additions and 64 deletions

2
Cargo.lock generated
View File

@ -3583,7 +3583,7 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
[[package]]
name = "wasm"
version = "1.2.107"
version = "1.2.108"
dependencies = [
"anyhow",
"console_error_panic_hook",

View File

@ -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,
..
},

View File

@ -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},
};

View File

@ -40,9 +40,7 @@ impl Jest {
..
}) => match &**callee {
Expr::Member(
callee
@
MemberExpr {
callee @ MemberExpr {
computed: false, ..
},
) => match &callee.obj {

View File

@ -94,9 +94,7 @@ impl Hoister<'_> {
}
Stmt::Decl(Decl::Var(
var
@
VarDecl {
var @ VarDecl {
kind: VarDeclKind::Var,
..
},

View File

@ -79,9 +79,7 @@ where
},
Stmt::For(mut stmt) => match &mut stmt.init {
Some(VarDeclOrExpr::VarDecl(
var
@
VarDecl {
var @ VarDecl {
kind: VarDeclKind::Var,
..
},

View File

@ -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,
..
},

View File

@ -48,9 +48,7 @@ where
match &mut *kv.value {
Expr::Arrow(
m
@
ArrowExpr {
m @ ArrowExpr {
body: BlockStmtOrExpr::BlockStmt(..),
..
},

View File

@ -199,8 +199,7 @@ where
},
) => match &mut *bin.left {
Expr::Bin(
left
@ BinExpr {
left @ BinExpr {
op: op!(bin, "+"), ..
},
) => {

View File

@ -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,
..
},

View File

@ -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(..), ..
},
) => {

View File

@ -596,9 +596,7 @@ impl CaseHandler<'_> {
}
Expr::Bin(
e
@
BinExpr {
e @ BinExpr {
op: op!("&&") | op!("||"),
..
},

View File

@ -310,9 +310,7 @@ impl Fold for Actual {
}
Expr::Fn(
expr
@
FnExpr {
expr @ FnExpr {
function:
Function {
is_async: true,

View File

@ -504,9 +504,7 @@ impl OptChaining {
match *obj {
Expr::Member(
obj
@
MemberExpr {
obj @ MemberExpr {
obj: ExprOrSuper::Expr(..),
..
},

View File

@ -528,9 +528,7 @@ impl VisitMut for Remover {
if done {
match s {
Stmt::Decl(Decl::Var(
var
@
VarDecl {
var @ VarDecl {
kind: VarDeclKind::Var,
..
},

View File

@ -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};

View File

@ -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",

View File

@ -1 +1 @@
nightly-2021-09-30
nightly-2021-11-08

View File

@ -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"]