chore: Publish v1.2.63 & Update rustc (#1894)

This commit is contained in:
강동윤 2021-07-05 21:51:09 +09:00 committed by GitHub
parent 211e208219
commit 35af4c5186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 34 additions and 7 deletions

View File

@ -43,7 +43,7 @@ jobs:
export PATH="$PATH:$HOME/npm/bin" export PATH="$PATH:$HOME/npm/bin"
npm run build:dev npm run build:dev
NODE_OPTIONS='--experimental-vm-modules npx jest' npm test NODE_OPTIONS='--experimental-vm-modules' npm test
integration-test: integration-test:
name: swc-cli name: swc-cli

View File

@ -50,7 +50,7 @@ jobs:
path: swc.*.node path: swc.*.node
- name: Test bindings - name: Test bindings
run: npm test run: NODE_OPTIONS='--experimental-vm-modules' npm test
- name: Test in lts docker - name: Test in lts docker
if: matrix.os == 'ubuntu-18.04' if: matrix.os == 'ubuntu-18.04'

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)] #![feature(test)]
extern crate test; extern crate test;

View File

@ -74,6 +74,8 @@ fn fixtures() -> Result<(), Error> {
ignore: false, ignore: false,
should_panic: ShouldPanic::No, should_panic: ShouldPanic::No,
allow_fail: false, allow_fail: false,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: DynTestFn(Box::alloc().init(move || { testfn: DynTestFn(Box::alloc().init(move || {
let syntax = if is_typescript { let syntax = if is_typescript {

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)] #![feature(test)]
extern crate test; extern crate test;

View File

@ -7,7 +7,7 @@ use crate::{
id::{Id, ModuleId}, id::{Id, ModuleId},
load::Load, load::Load,
resolve::Resolve, resolve::Resolve,
util::{self, CloneMap, ExprExt, VarDeclaratorExt}, util::{CloneMap, ExprExt, VarDeclaratorExt},
Bundler, Hook, ModuleRecord, Bundler, Hook, ModuleRecord,
}; };
use anyhow::Error; use anyhow::Error;
@ -23,14 +23,12 @@ use swc_common::{sync::Lock, FileName, SyntaxContext, DUMMY_SP};
use swc_ecma_ast::*; use swc_ecma_ast::*;
use swc_ecma_utils::{find_ids, prepend, private_ident}; use swc_ecma_utils::{find_ids, prepend, private_ident};
use swc_ecma_visit::{noop_fold_type, noop_visit_mut_type, Fold, VisitMut, VisitMutWith}; use swc_ecma_visit::{noop_fold_type, noop_visit_mut_type, Fold, VisitMut, VisitMutWith};
use util::CHashSet;
use EdgeDirection::Outgoing; use EdgeDirection::Outgoing;
pub(super) struct Ctx { pub(super) struct Ctx {
/// Full dependency graph. /// Full dependency graph.
pub graph: ModuleGraph, pub graph: ModuleGraph,
pub cycles: Vec<Vec<ModuleId>>, pub cycles: Vec<Vec<ModuleId>>,
pub merged: CHashSet<ModuleId>,
pub transitive_remap: CloneMap<SyntaxContext, SyntaxContext>, pub transitive_remap: CloneMap<SyntaxContext, SyntaxContext>,
pub export_stars_in_wrapped: Lock<FxHashMap<ModuleId, Vec<SyntaxContext>>>, pub export_stars_in_wrapped: Lock<FxHashMap<ModuleId, Vec<SyntaxContext>>>,
} }

View File

@ -69,7 +69,6 @@ where
let ctx = Ctx { let ctx = Ctx {
graph, graph,
cycles, cycles,
merged: Default::default(),
transitive_remap: Default::default(), transitive_remap: Default::default(),
export_stars_in_wrapped: Default::default(), export_stars_in_wrapped: Default::default(),
}; };

View File

@ -44,6 +44,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
ignore, ignore,
should_panic: No, should_panic: No,
allow_fail: false, allow_fail: false,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: DynTestFn(Box::new(f)), testfn: DynTestFn(Box::new(f)),
}); });

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)] #![feature(test)]
extern crate test; extern crate test;

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)] #![feature(test)]
extern crate test; extern crate test;

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)] #![feature(test)]
extern crate test; extern crate test;

View File

@ -84,6 +84,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
ignore, ignore,
should_panic: No, should_panic: No,
allow_fail: false, allow_fail: false,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: DynTestFn(Box::new(f)), testfn: DynTestFn(Box::new(f)),
}); });

View File

@ -27,6 +27,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
ignore, ignore,
should_panic: No, should_panic: No,
allow_fail: false, allow_fail: false,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: DynTestFn(Box::new(f)), testfn: DynTestFn(Box::new(f)),
}); });

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)] #![feature(test)]
extern crate test; extern crate test;

View File

@ -103,6 +103,7 @@
//! //!
//! [tc39/test262]:https://github.com/tc39/test262 //! [tc39/test262]:https://github.com/tc39/test262
#![cfg_attr(test, feature(bench_black_box))]
#![cfg_attr(test, feature(test))] #![cfg_attr(test, feature(test))]
#![deny(unused)] #![deny(unused)]

View File

@ -33,6 +33,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
ignore, ignore,
should_panic: No, should_panic: No,
allow_fail: false, allow_fail: false,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: DynTestFn(Box::new(f)), testfn: DynTestFn(Box::new(f)),
}); });

View File

@ -29,6 +29,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
ignore, ignore,
should_panic: No, should_panic: No,
allow_fail: false, allow_fail: false,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: DynTestFn(Box::new(f)), testfn: DynTestFn(Box::new(f)),
}); });

View File

@ -93,6 +93,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
ignore, ignore,
should_panic: No, should_panic: No,
allow_fail: false, allow_fail: false,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: DynTestFn(Box::new(f)), testfn: DynTestFn(Box::new(f)),
}); });

View File

@ -160,6 +160,8 @@ fn load() -> Result<Vec<TestDescAndFn>, Error> {
name: TestName::DynTestName(name), name: TestName::DynTestName(name),
allow_fail: false, allow_fail: false,
should_panic: ShouldPanic::No, should_panic: ShouldPanic::No,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: TestFn::DynTestFn(Box::new(move || { testfn: TestFn::DynTestFn(Box::new(move || {
// //

View File

@ -104,6 +104,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
ignore, ignore,
should_panic: No, should_panic: No,
allow_fail: false, allow_fail: false,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: DynTestFn(Box::new(f)), testfn: DynTestFn(Box::new(f)),
}); });

View File

@ -33,6 +33,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
ignore, ignore,
should_panic: No, should_panic: No,
allow_fail: false, allow_fail: false,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: DynTestFn(Box::new(f)), testfn: DynTestFn(Box::new(f)),
}); });

View File

@ -1 +1 @@
nightly-2021-04-25 nightly-2021-06-09

View File

@ -1,5 +1,6 @@
//! This benchmark lives here because I don't want to implement `Resolve` again //! This benchmark lives here because I don't want to implement `Resolve` again
//! and again. //! and again.
#![feature(bench_black_box)]
#![feature(test)] #![feature(test)]
extern crate test; extern crate test;

View File

@ -41,6 +41,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
ignore, ignore,
should_panic: No, should_panic: No,
allow_fail: false, allow_fail: false,
compile_fail: Default::default(),
no_run: Default::default(),
}, },
testfn: DynTestFn(Box::new(f)), testfn: DynTestFn(Box::new(f)),
}); });