rustdoc: test ignoring rustc lints in CLI#156618
Conversation
|
rustbot has assigned @lolbinarycat. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
the commit/PR title seems backwards, shouldn't it be "rustdoc: test denying rustc lints via CLI"? in which case, we're not actually testing that, since the entire point of the modified test is that the lint doesn't pass. if you actually wanted to make sure lint flags for rustc lints work properly, you'd have to find an |
|
Maybe I should title it: "rustdoc: test equivalent treatment of unused_imports on CLI and attr"? It's kind of long, but that's the real point of this test. |
|
My point is I don't think the test actually does a good job of doing that because that lint never fires. If for some reason rustdoc started ignoring |
|
@rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
4aeda22 to
015e8af
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Okay, I've written a new test that uses the |
| @@ -0,0 +1,8 @@ | |||
| //@ revisions: deny allow | |||
There was a problem hiding this comment.
needs a comment describing the purpose of the test.
This comment has been minimized.
This comment has been minimized.
c561fb1 to
2200ed1
Compare
|
@bors r+ |
…uwer Rollup of 14 pull requests Successful merges: - #159126 (Fix PR number in bootstrap's change tracker) - #155811 (Include AtomicU128/AtomicI128 in docs for any target) - #156968 (diagnostics: suggest generic_const_args for const ops) - #159012 (Shrink mir::Statement to 40 bytes) - #156618 (rustdoc: test ignoring rustc lints in CLI) - #158182 (std: use `OnceLock` for SGX argument storage) - #159114 (Add regression test for $-prefixed fragment specifier in repetition) - #158523 (Fix feature gate for `repr(simd)`) - #158876 (Fix multiple logic bugs in `Arc::make_mut`) - #158928 (std: fix Xous UDP send_to length mismatch and truncation) - #159060 (Look for the cdb architecture that corresponds to the target triple) - #159089 (riscv: update c-variadic test for LLVM changes) - #159093 (pretty-print: use inline asm's actual macro name) - #159122 (doc: use ptr::addr in offset_from docs) Failed merges: - #158732 (Apply MCP 1003 and move diagnostics.rs into its own module)
Rollup merge of #156618 - notriddle:rustdoc-lint-ignore-cli, r=lolbinarycat rustdoc: test ignoring rustc lints in CLI This works, but I couldn't find any tests for it.
This works, but I couldn't find any tests for it.