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 upIncorrect resolution with module paths and closure analysis #29522
Comments
aturon
added
I-wrong
A-resolve
labels
Nov 2, 2015
nikomatsakis
added
the
A-lifetimes
label
Nov 2, 2015
This comment has been minimized.
This comment has been minimized.
|
This is certainly creepy, nominating. Also I marked it as |
nikomatsakis
added
the
I-nominated
label
Nov 2, 2015
This comment has been minimized.
This comment has been minimized.
|
(This happens in 1.4 stable, 1.5 beta, and the 2015-10-31 nightly) |
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis Note that the particular error here may be misleading. The original report was getting an error about |
This comment has been minimized.
This comment has been minimized.
|
@aturon yes, I saw that, though it seems likely related |
Aatch
changed the title
Incorrent resolution with module paths and closure analysis
Incorrect resolution with module paths and closure analysis
Nov 3, 2015
This comment has been minimized.
This comment has been minimized.
|
Figured this out. Apparently resolve registers |
arielb1
self-assigned this
Nov 3, 2015
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Nov 3, 2015
arielb1
referenced this issue
Nov 3, 2015
Merged
resolve: don't speculatively create freevars when resolving #29547
bors
added a commit
that referenced
this issue
Nov 4, 2015
bors
closed this
in
#29547
Nov 4, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
aturon commentedNov 2, 2015
The following code incorrectly fails to compile:
with error:
However, if you change the name
scopein the closure withinmain, it works fine: