-
Notifications
You must be signed in to change notification settings - Fork 13.4k
index out of bounds at middle::subst:405 #15557
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I've tried looking at this unfortunately it appears to be a bit deep for the time I have available. I found this patch to be somewhat helpful for debugging. It produces,
Unfortunately I'm not familiar enough with the relevant code to know why this might be the case. |
Here is a more minimal test case, use std::ty::Unsafe;
struct AReg1<'a>(&'a u32);
impl<'a> Drop for AReg1<'a> {
fn drop(&mut self) {}
} If one comments out the |
Here is a rough call graph that I've worked out
|
The problem appears to be here where a new |
Perhaps the check, if !struct_tpt.generics.has_type_params(subst::TypeSpace) { ... } is supposed to read,
|
Closing in favor of the pull request. |
This branch has a fix for #15557 (a2bcef9) as well as a variety of patches I found useful while debugging this issue. These include adding `Show` impls to a variety of types, including the majority of `syntax::ast` and some of `middle::ty`.
Parse builtin# syntax and add typechecking for builtin#offset_of expression Also removes box syntax, fixes rust-lang/rust-analyzer#14504 cc rust-lang/compiler-team#580 rust-lang/rust-analyzer#15082
Compiling this program results in the following error with rustc 00cdd63,
The text was updated successfully, but these errors were encountered: