-
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
ICE: node HirId ... cannot be placed in TypeckResults with hir_owner DefId...
#124022
Comments
this really needs minimization -- there's a lot going on in that test that's probably hiding the underlying cause |
hmm got is as far as extern crate serde as _serde;
fn visit_map<__A>(self) -> _serde::__private::Result<Self::Value, __A::Error> {
match __key {
__Field::__field0 => {
__field0 = _serde::__private::Some({
struct __DeserializeWith<'de, 'a, D> {}
impl<'de, 'a, D> _serde::Deserialize<'de> for __DeserializeWith<'de, 'a, D> {
fn deserialize<__D>(
__deserializer: __D,
) -> _serde::__private::Result<Self, __D::Error>
where
__D: _serde::Deserializer<'de>,
{
_serde::__private::Ok(__DeserializeWith {})
}
}
});
}
}
} |
Minimized further: struct Type<T>;
fn visit_map() {
{
impl<T> Type<T> {
fn new() -> Type<T> {
Type
}
}
};
} |
Regression in nightly-2023-10-24 fetching (via remote github) commits from max(54b0434, 2023-10-21) to cd674d6 |
I found it @rustbot claim |
Rollup merge of rust-lang#124037 - compiler-errors:dont-parent-body, r=michaelwoerister Don't ascend into parent bodies when collecting stmts for possible return suggestion Fixes rust-lang#124022
auto-reduced (treereduce-rust):
original code
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: