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 upNightly regression around HRTBs, likely connected to wf changes #28934
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
cc @arielb1 |
This comment has been minimized.
This comment has been minimized.
|
The above is a reduction of servo/rust-cssparser@29f757d |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
A quick scan of the intervening commits suggests 603a75c may be related. |
SimonSapin
referenced this issue
Oct 9, 2015
Merged
Treat url(<string>) as a normal functions, per spec change. #90
bors-servo
pushed a commit
to servo/rust-cssparser
that referenced
this issue
Oct 9, 2015
This comment has been minimized.
This comment has been minimized.
|
The eta-reduced version fails on all versions of rustc: struct Parser<'i: 't, 't>(&'i u8, &'t u8);
impl<'i, 't> Parser<'i, 't> {
fn parse_nested_block<F, T>(&mut self, parse: F) -> Result<T, ()>
where for<'tt> F: FnOnce(&mut Parser<'i, 'tt>) -> T { panic!() }
fn expect_exhausted(&mut self) -> Result<(), ()> { Ok(()) }
}
fn main() {
let x = 0u8;
Parser(&x, &x).parse_nested_block(Parser::expect_exhausted).unwrap();
}
The wf fixes just bought it in line. |
This comment has been minimized.
This comment has been minimized.
|
The UFCS version fails on 1.4+, but succeeds if you annotate the parameter type - this looks like a closure inference issue. |
SimonSapin
referenced this issue
Oct 12, 2015
Closed
Tracking issue for Rust high-pri or blocking issues for Servo & Gecko #2853
This comment has been minimized.
This comment has been minimized.
|
This was not fixed by #29006 |
nikomatsakis
self-assigned this
Oct 15, 2015
This comment has been minimized.
This comment has been minimized.
|
triage: P-high |
rust-highfive
added
P-high
and removed
I-nominated
labels
Oct 15, 2015
This comment has been minimized.
This comment has been minimized.
|
/me investigating THIS now |
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Oct 26, 2015
This comment has been minimized.
This comment has been minimized.
|
This seems to boil down to a bug in the givens list for region inference. It is fixed by #29188 (at least, it is with the latest commit). |
nikomatsakis
closed this
in
c81ce82
Oct 29, 2015
arcnmx
added a commit
to arcnmx/rust
that referenced
this issue
Nov 2, 2015
bors-servo
added a commit
to servo/rust-cssparser
that referenced
this issue
Nov 2, 2015
brson
added a commit
to brson/rust
that referenced
this issue
Nov 4, 2015
bors-servo
added a commit
to servo/rust-cssparser
that referenced
this issue
Nov 5, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
aturon commentedOct 9, 2015
The following code:
compiles on 1.3 stable and 1.4 beta, but not on nightly. This seems likely related to wf changes.