-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustdoc-json: ICE when same item is represented in different ways #97986
Labels
A-rustdoc-json
Area: Rustdoc JSON backend
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Comments
rustbot
added
A-rustdoc-json
Area: Rustdoc JSON backend
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
labels
Jun 11, 2022
Enselic
changed the title
rustdoc-json: ICE when equivalent items is represented in different ways
rustdoc-json: ICE when equivalent item is represented in different ways
Jun 11, 2022
Enselic
changed the title
rustdoc-json: ICE when equivalent item is represented in different ways
rustdoc-json: ICE when same item is represented in different ways
Jun 11, 2022
matthiaskrgr
added a commit
to matthiaskrgr/glacier
that referenced
this issue
Jun 11, 2022
In this case, the problem is that the generic impl (and therefore its method) has the same |
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Jun 13, 2022
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Jun 15, 2022
…n-ice, r=notriddle Fix generic impl rustdoc json output Fixes rust-lang#97986. The problem in case of generic trait impl is that the trait's items are the same for all the types afterward. But since they're the same, it's safe for rustdoc-json to just ignore them. A little representation of what's going on: ```rust trait T { fn f(); // <- defid 0 } impl<Y> T for Y { fn f() {} // <- defid 1 } struct S; // <- defid 1 (since it matches `impl<Y> T for Y` ``` cc `@Urgau` r? `@CraftSpider`
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Jun 15, 2022
…n-ice, r=notriddle Fix generic impl rustdoc json output Fixes rust-lang#97986. The problem in case of generic trait impl is that the trait's items are the same for all the types afterward. But since they're the same, it's safe for rustdoc-json to just ignore them. A little representation of what's going on: ```rust trait T { fn f(); // <- defid 0 } impl<Y> T for Y { fn f() {} // <- defid 1 } struct S; // <- defid 1 (since it matches `impl<Y> T for Y` ``` cc ``@Urgau`` r? ``@CraftSpider``
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-rustdoc-json
Area: Rustdoc JSON backend
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Minimal reproducer:
The panic happens because
ResolvedPath { name: "S"
!=ResolvedPath { name: "m::S"
, but they are of course equivalent, so we should not panic because of that.This is (at least partially) a minimal reproducer for #93588.
@rustbot labels +A-rustdoc-json +I-ICE +T-rustdoc
The text was updated successfully, but these errors were encountered: