-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put back
is_derive_trait_collision
check
- Loading branch information
1 parent
537fdbd
commit 415a3ca
Showing
2 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tests/rustdoc-ui/intra-doc/issue-108653-associated-items-10.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// This test ensures that this warning doesn't show up: | ||
// warning: `PartialEq` is both a trait and a derive macro | ||
// --> tests/rustdoc-ui/intra-doc/issue-108653-associated-items-10.rs:1:7 | ||
// | | ||
// 1 | //! [`PartialEq`] | ||
// | ^^^^^^^^^ ambiguous link | ||
// | | ||
// = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default | ||
// help: to link to the trait, prefix with `trait@` | ||
// | | ||
// 1 | //! [`trait@PartialEq`] | ||
// | ++++++ | ||
// help: to link to the derive macro, prefix with `derive@` | ||
// | | ||
// 1 | //! [`derive@PartialEq`] | ||
// | +++++++ | ||
|
||
// check-pass | ||
|
||
#![deny(rustdoc::broken_intra_doc_links)] | ||
|
||
//! [`PartialEq`] |