chore: Update rustc (#3768)

This commit is contained in:
Donny/강동윤 2022-02-28 16:12:28 +09:00 committed by GitHub
parent a38c8b1ca2
commit 3798436201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 19 additions and 9 deletions

View File

@ -54,11 +54,11 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-09-30
# toolchain: nightly-2021-09-30
override: true
- name: Run benchmark
run: cargo +nightly-2021-09-30 bench --all --exclude swc_plugin | tee output.txt
run: cargo bench --all --exclude swc_plugin | tee output.txt
- name: Download previous benchmark results
run: mkdir raw-data && curl -o raw-data/benchmark-data.json https://raw.githubusercontent.com/swc-project/raw-data/gh-pages/benchmark-data.json

View File

@ -1,7 +1,6 @@
name: Maintenance
on:
pull_request:
pull_request_review:
jobs:

View File

@ -5,7 +5,7 @@ pub extern crate scoped_tls;
/// See [scoped_tls::scoped_thread_local] for actual documentation.
///
/// This is noop on release builds.
/// This is identical as [scoped_tls::scoped_thread_local] on release builds.
#[macro_export]
macro_rules! scoped_tls {
($(#[$attrs:meta])* $vis:vis static $name:ident: $ty:ty) => {

View File

@ -1098,6 +1098,7 @@ impl SourceMap {
self.build_source_map_with_config(mappings, orig, DefaultSourceMapGenConfig)
}
#[allow(clippy::ptr_arg)]
#[cfg(feature = "sourcemap")]
#[cfg_attr(docsrs, doc(cfg(feature = "sourcemap")))]
pub fn build_source_map_with_config(

View File

@ -1,3 +1,5 @@
#![deny(clippy::all)]
mod config;
mod rule;
mod rules;

View File

@ -45,7 +45,7 @@ where
HANDLER.with(|handler| {
for error in errors {
DiagnosticBuilder::new_diagnostic(&handler, error).emit();
DiagnosticBuilder::new_diagnostic(handler, error).emit();
}
});
}

View File

@ -1,4 +1,5 @@
#![deny(clippy::all)]
#![allow(clippy::ptr_arg)]
use swc_atoms::JsWord;
use swc_common::Span;

View File

@ -15,6 +15,7 @@
#![allow(clippy::blocks_in_if_conditions)]
#![allow(clippy::collapsible_else_if)]
#![allow(clippy::collapsible_if)]
#![allow(clippy::ptr_arg)]
#![allow(clippy::vec_box)]
#![allow(unstable_name_collisions)]

View File

@ -93,7 +93,6 @@ fn add_test<F: FnOnce() + Send + 'static>(
name: TestName::DynTestName(name),
ignore,
should_panic: No,
allow_fail: false,
compile_fail: false,
no_run: false,
},

View File

@ -104,7 +104,6 @@ fn add_test<F: FnOnce() + Send + 'static>(
name: TestName::DynTestName(name),
ignore,
should_panic: No,
allow_fail: false,
compile_fail: false,
no_run: false,
},

View File

@ -1,5 +1,6 @@
// This is not a public api.
#![deny(clippy::all)]
#![allow(clippy::ptr_arg)]
#[doc(hidden)]
pub extern crate swc_ecma_ast;

View File

@ -71,7 +71,6 @@ fn fixtures() -> Result<(), Error> {
)),
ignore: false,
should_panic: ShouldPanic::No,
allow_fail: false,
compile_fail: false,
no_run: false,
},

View File

@ -1,3 +1,5 @@
#![allow(clippy::ptr_arg)]
use std::sync::Arc;
use swc_visit::define;

View File

@ -1,3 +1,5 @@
#![allow(clippy::ptr_arg)]
use std::any::Any;
use swc_visit::define;

View File

@ -1,3 +1,5 @@
#![allow(clippy::ptr_arg)]
use std::any::Any;
use swc_visit::define;

View File

@ -1,3 +1,5 @@
#![allow(clippy::ptr_arg)]
use std::any::Any;
use swc_visit::define;

View File

@ -1 +1 @@
nightly-2022-01-19
nightly-2022-02-23