Skip to content
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

Add non_autolinks lint #77856

Merged
merged 13 commits into from
Nov 6, 2020
Merged

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Oct 12, 2020

Part of #77501.

r? @jyn514

@GuillaumeGomez GuillaumeGomez added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Oct 12, 2020
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 12, 2020
@jyn514 jyn514 added the A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. label Oct 12, 2020
src/doc/rustdoc/src/lints.md Outdated Show resolved Hide resolved
src/doc/rustdoc/src/lints.md Outdated Show resolved Hide resolved
src/doc/rustdoc/src/lints.md Outdated Show resolved Hide resolved
src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
@jyn514 jyn514 added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 13, 2020
@GuillaumeGomez
Copy link
Member Author

Updated!

@GuillaumeGomez GuillaumeGomez force-pushed the automatic-links-lint branch 2 times, most recently from 83a13cf to 6c04735 Compare October 13, 2020 15:07
Cargo.lock Outdated Show resolved Hide resolved
compiler/rustc_session/src/lint/builtin.rs Outdated Show resolved Hide resolved
src/doc/rustdoc/src/lints.md Outdated Show resolved Hide resolved
src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
src/test/rustdoc-ui/automatic-links.rs Outdated Show resolved Hide resolved
@GuillaumeGomez GuillaumeGomez force-pushed the automatic-links-lint branch 3 times, most recently from c23dd19 to edb3444 Compare October 14, 2020 21:06
src/doc/rustdoc/src/lints.md Outdated Show resolved Hide resolved
src/doc/rustdoc/src/lints.md Outdated Show resolved Hide resolved
src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
src/test/rustdoc-ui/automatic-links.rs Outdated Show resolved Hide resolved
@GuillaumeGomez GuillaumeGomez force-pushed the automatic-links-lint branch 2 times, most recently from d9741d0 to 7b68234 Compare October 15, 2020 11:55
@GuillaumeGomez
Copy link
Member Author

Updated!

src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost done I think 😆

src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me with nit fixed. This looks great!

src/librustdoc/passes/automatic_links.rs Outdated Show resolved Hide resolved
@jyn514
Copy link
Member

jyn514 commented Oct 15, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Oct 15, 2020

📌 Commit d7272ea has been approved by jyn514

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 15, 2020
@bors
Copy link
Contributor

bors commented Nov 5, 2020

📌 Commit 99200f7 has been approved by jyn514,ollie27

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 5, 2020
@bors
Copy link
Contributor

bors commented Nov 5, 2020

⌛ Testing commit 99200f7 with merge e6005c8699c550cac9e9067c6810cbfc98fde193...

@bors
Copy link
Contributor

bors commented Nov 5, 2020

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 5, 2020
@GuillaumeGomez
Copy link
Member Author

Clang build segfaulted O.o

@jyn514
Copy link
Member

jyn514 commented Nov 5, 2020

@bors retry

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 5, 2020
@bors
Copy link
Contributor

bors commented Nov 5, 2020

⌛ Testing commit 99200f7 with merge 5e9eb53b7cbcb57eb9127d94c57424978b5b5ec9...

@bors
Copy link
Contributor

bors commented Nov 5, 2020

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 5, 2020
@jyn514
Copy link
Member

jyn514 commented Nov 5, 2020

I think this is spurious? cc @rust-lang/infra

failures:

---- src\iter\traits\iterator.rs - iter::traits::iterator::Iterator::all (line 2094) stdout ----
error: linking with `link.exe` failed: exit code: 0xc0000374
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustdoctestLmUaDM\\rust_out.rust_out.7rcbfp3g-cgu.0.rcgu.o" "/OUT:C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustdoctestLmUaDM\\rust_out" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustdoctestLmUaDM\\rust_out.33dyzt1ekirinwy8.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/LIBPATH:D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1-std\\x86_64-pc-windows-msvc\\release\\deps" "/LIBPATH:D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1-std\\release\\deps" "/LIBPATH:D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1-std\\x86_64-pc-windows-msvc\\release\\build\\compiler_builtins-e9846a1ba5da4b30\\out" "/LIBPATH:D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-5daa8f2861899387.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-55f9a87fcbb5c69c.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-1de2da4a837999ca.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-83f583c91688d1ff.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-7869c68dc13262c8.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-8a37dd3c063bee5c.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-8e2543b9bb4b6c4a.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-18be2175fdc4eed3.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-2853593ef96980af.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-675cd8e44a769b7c.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-52a35ce5ec9c1329.rlib" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage1\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-b619ff4555382b9e.rlib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib"
  = note: 

note: `link.exe` returned an unexpected error

note: the Visual Studio build tools may need to be repaired using the Visual Studio installer

note: or a necessary component may be missing from the "C++ build tools" workload

error: aborting due to previous error

Couldn't compile the test.

failures:
    src\iter\traits\iterator.rs - iter::traits::iterator::Iterator::all (line 2094)

test result: FAILED. 2723 passed; 1 failed; 26 ignored; 0 measured; 0 filtered out

@bors retry

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 5, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Nov 6, 2020
…, r=jyn514,ollie27

Add non_autolinks lint

Part of rust-lang#77501.

r? `@jyn514`
@bors
Copy link
Contributor

bors commented Nov 6, 2020

⌛ Testing commit 99200f7 with merge f92b931...

@bors
Copy link
Contributor

bors commented Nov 6, 2020

☀️ Test successful - checks-actions
Approved by: jyn514,ollie27
Pushing f92b931 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Nov 6, 2020
@bors bors merged commit f92b931 into rust-lang:master Nov 6, 2020
@rustbot rustbot added this to the 1.49.0 milestone Nov 6, 2020
@GuillaumeGomez GuillaumeGomez deleted the automatic-links-lint branch November 6, 2020 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants