Skip to content

Rollup of 10 pull requests #78019

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 28 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
54bf8a6
Don't link to nightly primitives on stable channel
jyn514 Oct 11, 2020
4b96049
BTreeMap: refactor Entry out of map.rs into its own file
Oct 12, 2020
7e4028f
Add new lint for automatic_links improvements
GuillaumeGomez Oct 12, 2020
2e832c9
Add documentation for automatic_links lint
GuillaumeGomez Oct 12, 2020
3649620
Add tests for automatic_links lint
GuillaumeGomez Oct 12, 2020
8c0c7ec
Use fdatasync for File::sync_data on more OSes
Thomasdezeeuw Oct 13, 2020
28af355
BTreeMap: improve gdb introspection of BTreeMap with ZST keys or values
ssomers Oct 8, 2020
6fdd98d
Extend automatic_links lint to take into account URLs without link sy…
GuillaumeGomez Oct 13, 2020
e833cd3
Improve automatic_links globally
GuillaumeGomez Oct 14, 2020
d7272ea
Fix automatic_links warnings
GuillaumeGomez Oct 14, 2020
adf31e9
resolve: suggest variants with placeholders
davidtwco Oct 12, 2020
f897162
resolve: improve "try using tuple struct" message
davidtwco Oct 12, 2020
1588e34
llvm: backport SystemZ fix for AGR clobbers
cuviper Oct 15, 2020
865c30d
Bump backtrace-rs
Aaron1011 Oct 15, 2020
65835d1
Deny broken intra-doc links in linkchecker
jyn514 Oct 15, 2020
b221819
Update submodules for link fixes
jyn514 Oct 16, 2020
6a32e79
stabilize union with 'ManuallyDrop' fields and 'impl Drop for Union'
RalfJung Oct 4, 2020
defcd7f
stop relying on feature(untagged_unions) in stdlib
RalfJung Oct 5, 2020
f0b4427
Rollup merge of #77547 - RalfJung:stable-union-drop, r=matthewjasper
Dylan-DPC Oct 16, 2020
d15f263
Rollup merge of #77827 - jyn514:stable-primitives, r=GuillaumeGomez
Dylan-DPC Oct 16, 2020
ffbecf5
Rollup merge of #77851 - exrook:split-btreemap, r=dtolnay
Dylan-DPC Oct 16, 2020
4969437
Rollup merge of #77855 - davidtwco:pr-77341-follow-up-non-constructab…
Dylan-DPC Oct 16, 2020
6488861
Rollup merge of #77856 - GuillaumeGomez:automatic-links-lint, r=jyn514
Dylan-DPC Oct 16, 2020
9f0229e
Rollup merge of #77900 - Thomasdezeeuw:fdatasync, r=dtolnay
Dylan-DPC Oct 16, 2020
181deb4
Rollup merge of #77932 - ssomers:btree_cleanup_gdb, r=Mark-Simulacrum
Dylan-DPC Oct 16, 2020
5398a4a
Rollup merge of #77971 - jyn514:broken-intra-doc-links, r=mark-simula…
Dylan-DPC Oct 16, 2020
a934284
Rollup merge of #77985 - cuviper:systemz-agr-clobbers-cc, r=nikic
Dylan-DPC Oct 16, 2020
236caf2
Rollup merge of #77991 - Aaron1011:bump-backtrace-again, r=Mark-Simul…
Dylan-DPC Oct 16, 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 tests for automatic_links lint
  • Loading branch information
GuillaumeGomez committed Oct 13, 2020
commit 3649620810cb02c1ee0bbce7bd0afaee38106d6d
17 changes: 17 additions & 0 deletions src/test/rustdoc-ui/automatic-links.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#![deny(automatic_links)]

/// [http://a.com](http://a.com)
//~^ ERROR Unneeded long form for URL
/// [http://b.com]
//~^ ERROR Unneeded long form for URL
///
/// [http://b.com]: http://b.com
///
/// [http://c.com][http://c.com]
pub fn a() {}

/// [a](http://a.com)
/// [b]
///
/// [b]: http://b.com
pub fn everything_is_fine_here() {}
23 changes: 23 additions & 0 deletions src/test/rustdoc-ui/automatic-links.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
error: Unneeded long form for URL
--> $DIR/automatic-links.rs:3:5
|
LL | /// [http://a.com](http://a.com)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> $DIR/automatic-links.rs:1:9
|
LL | #![deny(automatic_links)]
| ^^^^^^^^^^^^^^^
= help: Try with `<http://a.com>` instead

error: Unneeded long form for URL
--> $DIR/automatic-links.rs:5:5
|
LL | /// [http://b.com]
| ^^^^^^^^^^^^^^
|
= help: Try with `<http://b.com>` instead

error: aborting due to 2 previous errors