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 upICE with RUST_LOG=debug and dependency rand #36622
Comments
apasel422
added
the
I-ICE
label
Sep 21, 2016
This comment has been minimized.
This comment has been minimized.
|
As rbml is gone now (#36551), maybe worth a try to re-test? |
This comment has been minimized.
This comment has been minimized.
|
Suprisingly, this is still reproducible with
Also, it doesn't happen on the 1.12.0 release, so its a regression. |
This comment has been minimized.
This comment has been minimized.
|
It happens on beta as well... |
TimNN
added
regression-from-stable-to-beta
T-compiler
labels
Oct 2, 2016
This comment has been minimized.
This comment has been minimized.
|
I think this is the closure bug (closures don't have generics atm, may change later). Technically not a language regression as this is from compiler logging and AFAIK that's disabled in non-nightly. The correct way to use |
This comment has been minimized.
This comment has been minimized.
|
@eddyb: it reproduces on beta, so it will probably also reproduce on the next stable. |
This comment has been minimized.
This comment has been minimized.
|
Introduced between |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@est31 Title is misleading, rustc "debug" logging (literally It's one of those rare cases where the information is essential to debugging ICEs and whatnot. One reasonable workaround that can be backported to beta is adding a loop like this before this line, and the namespace Actually giving closures generics can be done after the refactor I'm working on lands, but right now it'd just be a messier hack, and printing code has to be rewritten anyway to handle multi-level generics. EDIT: willing to mentor this as it's not too complicated but testing it would be time-consuming. |
eddyb
added
the
E-mentor
label
Oct 2, 2016
brson
added
I-nominated
and removed
T-compiler
labels
Oct 6, 2016
This comment has been minimized.
This comment has been minimized.
|
compiler team please prioritize. |
This comment has been minimized.
This comment has been minimized.
|
If the solution to this involves changing the name of |
This comment has been minimized.
This comment has been minimized.
|
@brson Did you remove T-compiler on purpose? |
This comment has been minimized.
This comment has been minimized.
|
@eddyb nope |
brson
added
the
T-compiler
label
Oct 20, 2016
This comment has been minimized.
This comment has been minimized.
|
I'll take this on, will ping @eddyb when I have a chance to work on it. Shouldn't be too long. |
This comment has been minimized.
This comment has been minimized.
|
triage: P-medium We should fix this (and both @arielb1 and @Mark-Simulacrum seem to be interested) but it's not considered a "high priority" regression, since it's not visible on stable and using |
rust-highfive
added
P-medium
and removed
I-nominated
labels
Oct 20, 2016
This comment has been minimized.
This comment has been minimized.
|
@Mark-Simulacrum |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I'll be happy to mentor you tomorrow. |
Mark-Simulacrum
referenced this issue
Oct 28, 2016
Merged
Fix ICE when attempting to print closure generics #37459
bors
added a commit
that referenced
this issue
Oct 30, 2016
bors
closed this
in
#37459
Oct 31, 2016
This comment has been minimized.
This comment has been minimized.
|
@camlorn: This has been fixed; I understand you were waiting on that. |
This comment has been minimized.
This comment has been minimized.
|
Not sure closing this is the best idea, don't think |
This comment has been minimized.
This comment has been minimized.
|
I feel like renaming RUST_LOG is unrelated to the ICE and as such should probably be filed as a separate issue? |
This comment has been minimized.
This comment has been minimized.
|
Fix is incomplete, reopening. |
eddyb
reopened this
Oct 31, 2016
Mark-Simulacrum
referenced this issue
Oct 31, 2016
Merged
Fix ICE when printing closures, and other similar types #37491
This comment has been minimized.
This comment has been minimized.
|
I thought this issue was for the RUST_LOG crash. |
Eroc33 commentedSep 21, 2016
•
edited by nikomatsakis
UPDATE: Note that @eddyb would like to mentor and wrote out some steps to fix this in a comment below.
cargo 0.13.0-nightly (2ef3cde 2016-09-04)rustc 1.13.0-nightly (cbe4de78e 2016-09-05)repro steps:
cargo new --bin whateverRUST_LOG=debug cargo run(Edit:
RUST_LOG=debug cargo buildalso triggers the ICE)(Note that using various different crates as dependencies will also cause various different ICEs)
(Also note that most of these ICEs do not occur if not setting
RUST_LOGwhile compiling)full log: ice_log.txt
Relevant excerpt: