-
Notifications
You must be signed in to change notification settings - Fork 162
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
Inherit Implementation of type outside current crate - Internal Compile Error #2423
Comments
MahadMuhammad
moved this to Internal Compile Error
in Error Code Support & Improving User Errors
Jul 15, 2023
The |
Marking as good first PR as this should be a simple fix to remove the assertion and do error handling to continue resolving |
MahadMuhammad
moved this from Internal Compile Error
to Todo
in Error Code Support & Improving User Errors
Aug 9, 2023
Hello, I would like to work on this issue |
philberty
added a commit
that referenced
this issue
Dec 2, 2024
This was a handy debug assertion but only works for valid rust code. This needs to handle the case where the type is not resolved which is a valid case. Fixes #2423 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-item.cc (ResolveItem::visit): remove assertions gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 can't handle this * rust/compile/issue-2423.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
github-merge-queue bot
pushed a commit
that referenced
this issue
Dec 2, 2024
This was a handy debug assertion but only works for valid rust code. This needs to handle the case where the type is not resolved which is a valid case. Fixes #2423 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-item.cc (ResolveItem::visit): remove assertions gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 can't handle this * rust/compile/issue-2423.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
tschwinge
pushed a commit
that referenced
this issue
Dec 4, 2024
This was a handy debug assertion but only works for valid rust code. This needs to handle the case where the type is not resolved which is a valid case. Fixes #2423 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-item.cc (ResolveItem::visit): remove assertions gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 can't handle this * rust/compile/issue-2423.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Kamiinarii78
pushed a commit
to Kamiinarii78/gccrs
that referenced
this issue
Dec 12, 2024
This was a handy debug assertion but only works for valid rust code. This needs to handle the case where the type is not resolved which is a valid case. Fixes Rust-GCC#2423 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-item.cc (ResolveItem::visit): remove assertions gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 can't handle this * rust/compile/issue-2423.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
matthewjasper
pushed a commit
to matthewjasper/gccrs
that referenced
this issue
Dec 21, 2024
This was a handy debug assertion but only works for valid rust code. This needs to handle the case where the type is not resolved which is a valid case. Fixes Rust-GCC#2423 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-item.cc (ResolveItem::visit): remove assertions gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 can't handle this * rust/compile/issue-2423.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inherit Implementation of type outside current crate:
here
&here
I tried this code from
E0116
:I Expected to see this happen:
error[E0116]: cannot define inherent impl for a type outside of the crate where the type is defined
Instead this happened:
failed to resolve TypePath: x in this scope
Meta
The text was updated successfully, but these errors were encountered: