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 upgive_expl_lifetime_param is behaving non-deterministically #13057
Comments
pnkfelix
referenced this issue
Mar 21, 2014
Closed
give_expl_lifetime_param is silently dropping other formal lifetime params #13058
This comment has been minimized.
This comment has been minimized.
|
I tested it a bit, and the issue seems to be In the constraint graph for some node |
ktt3ja
referenced this issue
Mar 22, 2014
Merged
Prefer lifetime suggestion over generic error #13071
bors
closed this
in
2c71cdf
Mar 26, 2014
This comment has been minimized.
This comment has been minimized.
maxsnew
commented
Oct 3, 2014
|
I'm getting a non-deterministic error message using the latest nightlies: https://gist.github.com/maxsnew/9d3d30b469e7e39909d0 It's non-deterministic on my Fedora 20 machine but not my OSX machine. |
pnkfelix commentedMar 21, 2014
For the input file below, the two distinct invocations of
rustc(but with identical arguments) are non-deterministically deciding whether or not to prompt with the "consider using an explicit lifetime parameter" hint.Input file (demo.rs):
Transcript:
(See also #13058 for a problem with the suggestion actually provided by
give_expl_lifetime_paramwhen it chooses to actually provide one.)