Skip to content

Rollup of 11 pull requests #78792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 44 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
7cae9e8
`#![deny(unsafe_op_in_unsafe_fn)]` in sys/hermit
maekawatoshiki Jul 31, 2020
3a46cca
Revert "`#![deny(unsafe_op_in_unsafe_fn)]` in sys/hermit"
maekawatoshiki Aug 21, 2020
d94258e
Add `#![allow(unsafe_op_in_unsafe_fn)]` in sys/hermit
maekawatoshiki Aug 21, 2020
14158f5
Remove #![allow(unsafe_op_in_unsafe_fn)] except for mod.rs
maekawatoshiki Oct 8, 2020
b3246e0
Set the proper sysroot for clippy
jyn514 Sep 29, 2020
51f8076
Add --fix support to `x.py clippy`
jyn514 Sep 30, 2020
bdbb542
x.py fmt
jyn514 Oct 10, 2020
31ecd2a
Allow using clippy with either beta or nightly
jyn514 Oct 10, 2020
e099138
BTreeMap: stop mistaking node for an orderly place
ssomers Oct 26, 2020
b0df3f7
fix some incorrect aliasing in the BTree
RalfJung Oct 28, 2020
1e73724
Allow using 1/2/3/4 for `x.py setup` options
jyn514 Oct 29, 2020
be01d54
BTreeMap: document a curious assumption in test cases
ssomers Oct 29, 2020
d2bc8a9
inliner: Use substs_for_mir_body
tmiasko Nov 3, 2020
2980367
Add new lint for automatic_links improvements
GuillaumeGomez Oct 12, 2020
a54f043
Add documentation for automatic_links lint
GuillaumeGomez Oct 12, 2020
6bc8965
Add tests for automatic_links lint
GuillaumeGomez Oct 12, 2020
f467b8d
Extend automatic_links lint to take into account URLs without link sy…
GuillaumeGomez Oct 13, 2020
7f839b2
Improve automatic_links globally
GuillaumeGomez Oct 14, 2020
55b4d21
Fix automatic_links warnings
GuillaumeGomez Oct 14, 2020
60caf51
Rename automatic_links to url_improvements
GuillaumeGomez Oct 17, 2020
fce2be0
Update URLs used in the lint example
GuillaumeGomez Oct 17, 2020
1fb404b
Don't check for URLs inside codeblocks
GuillaumeGomez Oct 17, 2020
6be97e2
Improve lint even more
GuillaumeGomez Oct 31, 2020
9d11450
Rename lint to non_autolinks
GuillaumeGomez Oct 31, 2020
16ed850
Fix more URLs
GuillaumeGomez Nov 5, 2020
54a0a98
ci: gate on aarch64-gnu passing tests
pietroalbini Oct 22, 2020
1274fae
doc/rustc: promote aarch64-unknown-linux-gnu to tier 1
pietroalbini Oct 22, 2020
874cbb8
ci: build docs for aarch64-unknown-linux-gnu
pietroalbini Oct 22, 2020
eed0ceb
Recognize `private_intra_doc_links` as a lint
jyn514 Oct 19, 2020
47b21b8
Add PRIVATE_INTRA_DOC_LINKS to rustdoc special-casing
jyn514 Nov 5, 2020
99200f7
Fix even more URLs
GuillaumeGomez Nov 5, 2020
3863dee
Infer the default host target from the host toolchain if possible
jyn514 Oct 29, 2020
8d2fa72
Get `--fix` working for everything except rustdoc
jyn514 Oct 27, 2020
4f4ce1c
Rollup merge of #74979 - maekawatoshiki:fix, r=Mark-Simulacrum
Dylan-DPC Nov 6, 2020
3124e79
Rollup merge of #77351 - jyn514:clippy-sysroot, r=Mark-Simulacrum
Dylan-DPC Nov 6, 2020
d6bd33d
Rollup merge of #77856 - GuillaumeGomez:automatic-links-lint, r=jyn51…
Dylan-DPC Nov 6, 2020
e422bef
Rollup merge of #78114 - jyn514:private, r=oli-obk
Dylan-DPC Nov 6, 2020
a8d4297
Rollup merge of #78228 - pietroalbini:finally, r=Mark-Simulacrum
Dylan-DPC Nov 6, 2020
d22cc21
Rollup merge of #78437 - ssomers:btree_no_ord_at_node_level, r=Mark-S…
Dylan-DPC Nov 6, 2020
e6f601e
Rollup merge of #78476 - RalfJung:btree-alias, r=Mark-Simulacrum
Dylan-DPC Nov 6, 2020
691cfad
Rollup merge of #78513 - jyn514:rustup-toolchain, r=Mark-Simulacrum
Dylan-DPC Nov 6, 2020
03eec1d
Rollup merge of #78514 - jyn514:setup-number, r=Mark-Simulacrum
Dylan-DPC Nov 6, 2020
f926cd3
Rollup merge of #78538 - ssomers:btree_testing_rng, r=Mark-Simulacrum
Dylan-DPC Nov 6, 2020
e71644d
Rollup merge of #78674 - tmiasko:inline-substs-for-mir-body, r=oli-obk
Dylan-DPC Nov 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add PRIVATE_INTRA_DOC_LINKS to rustdoc special-casing
This is really starting to get out of hand. Rustdoc should instead allow
all lints in the rustdoc lint group.
  • Loading branch information
jyn514 committed Nov 5, 2020
commit 47b21b84f3ed88cff31fccc78a57a66241a26496
11 changes: 6 additions & 5 deletions src/librustdoc/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ pub fn run_core(
let cpath = Some(input.clone());
let input = Input::File(input);

let intra_link_resolution_failure_name = lint::builtin::BROKEN_INTRA_DOC_LINKS.name;
let broken_intra_doc_links = lint::builtin::BROKEN_INTRA_DOC_LINKS.name;
let private_intra_doc_links = lint::builtin::PRIVATE_INTRA_DOC_LINKS.name;
let missing_docs = rustc_lint::builtin::MISSING_DOCS.name;
let missing_doc_example = rustc_lint::builtin::MISSING_DOC_CODE_EXAMPLES.name;
let private_doc_tests = rustc_lint::builtin::PRIVATE_DOC_TESTS.name;
Expand All @@ -335,7 +336,8 @@ pub fn run_core(
// In addition to those specific lints, we also need to allow those given through
// command line, otherwise they'll get ignored and we don't want that.
let lints_to_show = vec![
intra_link_resolution_failure_name.to_owned(),
broken_intra_doc_links.to_owned(),
private_intra_doc_links.to_owned(),
missing_docs.to_owned(),
missing_doc_example.to_owned(),
private_doc_tests.to_owned(),
Expand All @@ -347,9 +349,8 @@ pub fn run_core(
];

let (lint_opts, lint_caps) = init_lints(lints_to_show, lint_opts, |lint| {
if lint.name == intra_link_resolution_failure_name
|| lint.name == invalid_codeblock_attributes_name
{
// FIXME: why is this necessary?
if lint.name == broken_intra_doc_links || lint.name == invalid_codeblock_attributes_name {
None
} else {
Some((lint.name_lower(), lint::Allow))
Expand Down