Skip to content

Commit 1968798

Browse files
committed
update
1 parent 02ca860 commit 1968798

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ci/verify-build.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,16 +280,15 @@ def do_semver_checks(cfg: Cfg, target: Target) -> None:
280280
env.setdefault("RUSTDOCFLAGS", "")
281281
# Needed for rustdoc json
282282
env["RUSTC_BOOTSTRAP"] = "1"
283+
# Don't lint the baseline
284+
env["RUSTFLAGS"] += " -Awarnings"
285+
env["RUSTDOCFLAGS"] += " -Awarnings"
283286

284287
cmd = ["cargo", "rustdoc", "--target", tname]
285288
rustdoc_args = ["--", "-Zunstable-options", "--output-format=json"]
286289

287290
run([*cmd, *rustdoc_args], env=env)
288291

289-
# Don't lint the baseline
290-
env["RUSTFLAGS"] += " -Awarnings"
291-
env["RUSTDOCFLAGS"] += " -Awarnings"
292-
293292
run([*cmd, "--manifest-path", cfg.baseline_crate_dir, *rustdoc_args], env=env)
294293
baseline = cfg.baseline_crate_dir / "target" / tname / "libc.json"
295294
current = Path("target") / tname / "libc.json"

0 commit comments

Comments
 (0)