-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
error: internal compiler error: no errors encountered even though delay_span_bug
issued
#115033
Comments
@jackh726 this is due to #109356. It turns out that skipping over projection goals that we get back from This isn't fixed by #114787 because the infer var is coming from within |
I'll take a look. |
Pretty rough, but here's an MCVE. Still can probably minimize a bit more: use std::marker::PhantomData;
trait Data {
type Elem;
}
struct DatasetBase<R, T> {
pub records: R,
pub targets: T,
}
trait Records: Sized {
type Elem;
}
trait AsTargets {
type Elem;
}
impl<F, S: Data<Elem = F>> Records for ArrayBase<S> {
type Elem = F;
}
impl<R, T: AsTargets> AsTargets for DatasetBase<R, T> {
type Elem = T::Elem;
}
struct DatasetIter<'a, R: Records, T> {
dataset: T,
phantom: PhantomData<&'a R::Elem>,
}
pub struct ArrayBase<S> {
data: S,
}
impl<'a, F, D, T: AsTargets> Iterator for DatasetIter<'a, ArrayBase<D>, T>
where
D: Data<Elem = F>,
{
type Item = DatasetBase<F, T::Elem>;
fn next(&mut self) -> Option<Self::Item> {
panic!();
}
} (edit: updating as I minimize a bit more) |
Okay, here's the simplest MCVE I can make: trait Data {
type Elem;
}
impl<F, S: Data<Elem = F>> Data for ArrayBase<S> {
type Elem = F;
}
struct DatasetIter<'a, R: Data> {
data: &'a R::Elem,
}
pub struct ArrayBase<S> {
data: S,
}
trait Trait {
type Item;
fn next() -> Option<Self::Item>;
}
impl<'a, D: Data> Trait for DatasetIter<'a, ArrayBase<D>> {
type Item = ();
fn next() -> Option<Self::Item> {
None
}
} |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-high -needs-triage |
can't compile linfa, please show me how to fix
Code
<code>
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: