forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#92860 - CraftSpider:rustdoc-json-impl-ice, …
…r=jsha Fix errors on blanket impls by ignoring the children of generated impls Related to rust-lang#83718 We can safely skip the children, as they don't contain any new info, and may be subtly different for reasons hard to track down, in ways that are consistently worse than the actual generic impl.
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
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
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,14 @@ | ||
// Test for the ICE in rust/83718 | ||
// A blanket impl plus a local type together shouldn't result in mismatched ID issues | ||
|
||
// @has blanket_with_local.json "$.index[*][?(@.name=='Load')]" | ||
pub trait Load { | ||
fn load() {} | ||
} | ||
|
||
impl<P> Load for P { | ||
fn load() {} | ||
} | ||
|
||
// @has - "$.index[*][?(@.name=='Wrapper')]" | ||
pub struct Wrapper {} |