Skip to content

Commit 22ff1b2

Browse files
committed
tidy: extra checks no longer need src_path
1 parent d6e1a36 commit 22ff1b2

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

src/tools/tidy/src/ext_tool_checks.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ pub fn check(
5050
ci_info: &CiInfo,
5151
librustdoc_path: &Path,
5252
tools_path: &Path,
53-
src_path: &Path,
5453
bless: bool,
5554
extra_checks: Option<&str>,
5655
pos_args: &[String],
@@ -62,7 +61,6 @@ pub fn check(
6261
ci_info,
6362
librustdoc_path,
6463
tools_path,
65-
src_path,
6664
bless,
6765
extra_checks,
6866
pos_args,
@@ -77,7 +75,6 @@ fn check_impl(
7775
ci_info: &CiInfo,
7876
librustdoc_path: &Path,
7977
tools_path: &Path,
80-
src_path: &Path,
8178
bless: bool,
8279
extra_checks: Option<&str>,
8380
pos_args: &[String],
@@ -300,7 +297,7 @@ fn check_impl(
300297
}
301298

302299
if js_lint {
303-
rustdoc_js::lint(outdir, librustdoc_path, tools_path, src_path)?;
300+
rustdoc_js::lint(outdir, librustdoc_path, tools_path)?;
304301
rustdoc_js::es_check(outdir, librustdoc_path)?;
305302
}
306303

src/tools/tidy/src/ext_tool_checks/rustdoc_js.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ pub(super) fn lint(
9292
outdir: &Path,
9393
librustdoc_path: &Path,
9494
tools_path: &Path,
95-
src_path: &Path,
9695
) -> Result<(), super::Error> {
9796
let files_to_check = rustdoc_js_files(librustdoc_path);
9897
println!("Running eslint on rustdoc JS files");

src/tools/tidy/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ fn main() {
179179
&ci_info,
180180
&librustdoc_path,
181181
&tools_path,
182-
&src_path,
183182
bless,
184183
extra_checks,
185184
pos_args

0 commit comments

Comments
 (0)