Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upLifetime regression in kick 0.1.2 #38390
Comments
brson
added
I-nominated
regression-from-stable-to-beta
T-lang
labels
Dec 15, 2016
This comment has been minimized.
This comment has been minimized.
|
Namely the signature of failing function looks like this; pub enum Slot<'a, 'b: 'a, T: 'a, Tr: Transaction<'b> + 'b> {
Nothing,
Ref(&'a SlotFn<'a, 'b, T, Tr>),
SRef(Rc<SlotFn<'a, 'b, T, Tr>>),
WRef(Weak<SlotFn<'a, 'b, T, Tr>>),
Mut(&'a mut SlotFnMut<'a, 'b, T, Tr>),
Boxed(Box<SlotFnMut<'a, 'b, T, Tr>>),
#[cfg(feature="nightly")]
Once(Box<SlotFnBox<'a, 'b, T, Tr>>),
}
impl<'a, T, Tr: Transaction<'a> + 'a> Stream<'a, Tr> for Variable<'a, T, Tr>
where T: Clone
{
type Output = T;
type Listen = <Event<'a, T, Tr> as Stream<'a, Tr>>::Listen;
fn listen<F>(&self, f: F) -> Self::Listen
where F: Into<Slot<'a, 'a, T, Tr>>
{
self.updates.listen(f)
}
}Note the |
nikomatsakis
added
T-compiler
and removed
T-lang
labels
Dec 22, 2016
This comment has been minimized.
This comment has been minimized.
|
triage: P-high |
rust-highfive
added
P-high
and removed
I-nominated
labels
Dec 22, 2016
nikomatsakis
self-assigned this
Dec 22, 2016
This comment has been minimized.
This comment has been minimized.
|
I'll investigate, but seems like it is likely expected behavior. |
This comment has been minimized.
This comment has been minimized.
|
I agree with @nagisa that this is expected behavior, though I'm not sure what caused it to change. |
brson
added
the
E-needstest
label
Jan 3, 2017
This comment has been minimized.
This comment has been minimized.
|
Seems like we just need to add the test case. |
This comment has been minimized.
This comment has been minimized.
|
Yeah, I'll have to try and minimize it though. |
This comment has been minimized.
This comment has been minimized.
|
If this is expected behavior and just needs a test case, I'll also remove the regression tag. |
alexcrichton
removed
P-high
regression-from-stable-to-beta
labels
Jan 4, 2017
This comment has been minimized.
This comment has been minimized.
|
Can anyone verify that this used to work? It seems like if we are going to make a test case, we'd also want to verify that the test case used to pass... |
brson commentedDec 15, 2016
Original report.
It's not clear what the change was here but @nagisa remembers something about:
cc @nikomatsakis @rust-lang/lang