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 upbeta regression: assembunny-plus 0.0.3 #40951
Comments
alexcrichton
added
the
regression-from-stable-to-beta
label
Mar 31, 2017
This comment has been minimized.
This comment has been minimized.
|
OK, I did some digging around. I believe this regression is a bug. Here is a minimal test case: const FOO: [&'static str; 1] = ["foo"];
fn find<T: PartialEq>(t: &[T], element: &T) { }
fn main() {
let x = format!("hi");
find(&FOO, &&*x);
}Specifically what is happening is that we used to infer the cc @eddyb |
This comment has been minimized.
This comment has been minimized.
|
(Nominating for compiler team triage -- I can't attend mtg this week, but suggest P-high.) |
nikomatsakis
added
I-nominated
T-compiler
labels
Apr 4, 2017
This comment has been minimized.
This comment has been minimized.
|
There should be enough subtyping to make that work, I'm not sure where it goes wrong. It's broken on nightly too, right? |
This comment has been minimized.
This comment has been minimized.
|
This is actually #18653. I will see about fixing that. |
This comment has been minimized.
This comment has been minimized.
|
I'm going to mark this as P-high and assign myself. I am investigating. |
This comment has been minimized.
This comment has been minimized.
|
triage: P-high |
rust-highfive
added
P-high
and removed
I-nominated
labels
Apr 6, 2017
This comment has been minimized.
This comment has been minimized.
|
assigning niko to hold him to his earlier comment. |
pnkfelix
assigned
nikomatsakis
Apr 6, 2017
alexcrichton
added this to the 1.17 milestone
Apr 10, 2017
This comment has been minimized.
This comment has been minimized.
|
Backports are best in by this friday, next thursday is the absolute deadline. cc @nikomatsakis |
This comment has been minimized.
This comment has been minimized.
|
@brson working on it :) |
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Apr 11, 2017
nikomatsakis
referenced this issue
Apr 11, 2017
Merged
Handle subtyping in inference through obligations #40570
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Apr 11, 2017
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Apr 12, 2017
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Apr 12, 2017
This comment has been minimized.
This comment has been minimized.
|
OK, this is fixed be #40570, but I think I also have a more tailored fix that we can backport to beta. |
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Apr 13, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
After discussion in the @rust-lang/compiler meeting, we decided not to backport the fix for this to beta, as it is non-trivial. The problem is fixed on nightly, and I'll offer a patch to the |
This comment has been minimized.
This comment has been minimized.
|
Looks fixed on nightly in assembunny-plus as well, and due to decision to not backport closing. Thanks for the fixes @nikomatsakis! |
alexcrichton commentedMar 31, 2017
The assembunny-plus crate has regressed on beta:
cc @broad-well
broad-well/assembunny-plus@4ed0f0d