Skip to content

Rollup of 7 pull requests #94491

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 18 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
6d7d6e1
Add a `process_group` method to UNIX `CommandExt`
krallin Feb 3, 2022
4c7fb9e
Add helper function to suggest multiple constraints
WaffleLapkin Feb 25, 2022
7aa5ea9
7 - Make more use of `let_chains`
c410-f3r Mar 1, 2022
741553e
Fix panic when intra-doc link comes from a generated doc comment
GuillaumeGomez Mar 1, 2022
885e808
Add test to ensure it does not panic when an intra-doc link is genera…
GuillaumeGomez Mar 1, 2022
eb2b944
compiler: fix some typos
cuishuang Mar 1, 2022
765205b
Improve allowness of the unexpected_cfgs lint
Urgau Feb 27, 2022
400d343
Suggest adding `Copy` bound when Adt is moved out
WaffleLapkin Feb 25, 2022
879efa8
Add a test for Adt copy suggestions
WaffleLapkin Feb 25, 2022
f0a16b8
Use rustfix in copy suggestion test
WaffleLapkin Mar 1, 2022
8e04049
Update books
ehuss Mar 1, 2022
8689081
Rollup merge of #93858 - krallin:process-process_group, r=dtolnay
matthiaskrgr Mar 1, 2022
38b1f1d
Rollup merge of #94375 - WaffleLapkin:copy-suggestion, r=estebank
matthiaskrgr Mar 1, 2022
05de9db
Rollup merge of #94433 - Urgau:check-cfg-allowness, r=petrochenkov
matthiaskrgr Mar 1, 2022
e42ecc9
Rollup merge of #94476 - c410-f3r:yet-more-let-chains, r=Dylan-DPC
matthiaskrgr Mar 1, 2022
bf0dfaf
Rollup merge of #94478 - GuillaumeGomez:macro-generated-intra-doc-lin…
matthiaskrgr Mar 1, 2022
80bb09b
Rollup merge of #94482 - cuishuang:master, r=Dylan-DPC
matthiaskrgr Mar 1, 2022
ac04794
Rollup merge of #94490 - ehuss:update-books, r=ehuss
matthiaskrgr Mar 1, 2022
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 test to ensure it does not panic when an intra-doc link is genera…
…ted from a macro
  • Loading branch information
GuillaumeGomez committed Mar 1, 2022
commit 885e80854063e8ad4736aeb100c42230c9ef0a70
1 change: 1 addition & 0 deletions src/test/rustdoc-ui/auxiliary/module_macro_doc.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//! [`long_cat`] is really long
12 changes: 12 additions & 0 deletions src/test/rustdoc-ui/macro-docs.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// check-pass

macro_rules! m {
() => {
/// A
//~^ WARNING
#[path = "auxiliary/module_macro_doc.rs"]
pub mod mymodule;
}
}

m!();
20 changes: 20 additions & 0 deletions src/test/rustdoc-ui/macro-docs.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
warning: unresolved link to `long_cat`
--> $DIR/macro-docs.rs:5:9
|
LL | /// A
| ^^^^^
...
LL | m!();
| ---- in this macro invocation
|
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
= note: the link appears in this line:

[`long_cat`] is really long
^^^^^^^^^^
= note: no item named `long_cat` in scope
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
= note: this warning originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: 1 warning emitted

Empty file.