Skip to content

Commit

Permalink
Update rust toolchain (vercel#54130)
Browse files Browse the repository at this point in the history
The current toolchain is very buggy.

Closes WEB-1400
  • Loading branch information
jridgewell authored Aug 17, 2023
1 parent 3fadba5 commit 8def0c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ rustflags = [
"-Zshare-generics=y",
"-Csymbol-mangling-version=v0",
"-Aclippy::too_many_arguments",
# Clippy's needless mut lint is buggy: https://github.com/rust-lang/rust-clippy/issues/11299
"-Aclippy::needless_pass_by_ref_mut",
# Clippy's partial_eq lint is buggy: https://github.com/rust-lang/rust-clippy/issues/11178
"-Aclippy::incorrect_partial_ord_impl_on_ord_type",
]
4 changes: 0 additions & 4 deletions packages/next-swc/crates/next-core/src/app_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ fn next_edge_page_transition(
)
}

#[allow(clippy::too_many_arguments)]
#[turbo_tasks::function]
fn app_context(
project_path: Vc<FileSystemPath>,
Expand Down Expand Up @@ -768,7 +767,6 @@ async fn create_global_metadata_source(
Ok(Vc::upcast(CombinedContentSource { sources }.cell()))
}

#[allow(clippy::too_many_arguments)]
#[turbo_tasks::function]
async fn create_app_page_source_for_route(
pathname: String,
Expand Down Expand Up @@ -819,7 +817,6 @@ async fn create_app_page_source_for_route(
Ok(source.issue_file_path(app_dir, format!("Next.js App Page Route {pathname}")))
}

#[allow(clippy::too_many_arguments)]
#[turbo_tasks::function]
async fn create_app_not_found_page_source(
loader_tree: Vc<LoaderTree>,
Expand Down Expand Up @@ -865,7 +862,6 @@ async fn create_app_not_found_page_source(
Ok(source.issue_file_path(app_dir, "Next.js App Page Route /404".to_string()))
}

#[allow(clippy::too_many_arguments)]
#[turbo_tasks::function]
async fn create_app_route_source_for_route(
pathname: String,
Expand Down
1 change: 0 additions & 1 deletion packages/next-swc/crates/next-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ async fn server_env(
Ok(Vc::upcast(CustomProcessEnv::new(env, Vc::cell(map))))
}

#[allow(clippy::too_many_arguments)]
#[turbo_tasks::function]
async fn source(
root_dir: String,
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2023-07-03
nightly-2023-07-21

0 comments on commit 8def0c8

Please sign in to comment.