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 on const &'static closure #25180
Comments
steveklabnik
added
the
I-ICE
label
May 7, 2015
llogiq
referenced this issue
May 7, 2015
Closed
Add thread-local custom panic handlers to customize the behavior of thread panics #1100
This comment has been minimized.
This comment has been minimized.
|
(edit: reduced the example code a bit) |
This comment has been minimized.
This comment has been minimized.
|
Rustc: rustc 1.1.0-nightly (4356220 2015-05-04) (built 2015-05-05) Backtrace:
It appears the By the way, the ICE is reproducible with beta (on playground), too. |
This comment has been minimized.
This comment has been minimized.
|
Same thing goes if I change the |
This comment has been minimized.
This comment has been minimized.
|
Huh, this is not the The assert is indeed faulty, and there are two ways to handle this: either remove the assert and wrap the method in The first way has the disadvantage of duplicating the setup done here, which on second thought, seems entirely pointless (other than for expressions in |
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
May 10, 2015
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
May 11, 2015
bors
added a commit
that referenced
this issue
May 11, 2015
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
May 11, 2015
This was referenced May 14, 2015
This comment has been minimized.
This comment has been minimized.
|
FWIW: The ICE does no longer occur on my system (rustc 1.2.0-nightly (78c4d53 2015-05-30)) |
eddyb
added
the
E-needstest
label
Jun 4, 2015
arielb1
referenced this issue
Jun 14, 2015
Closed
Function call in static results in compiler panic #26289
This comment has been minimized.
This comment has been minimized.
|
I'll create a regression test for this |
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Jun 18, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@llogiq Yep, I did :) It's currently in the queue |
llogiq commentedMay 7, 2015
If I try to create a
const &'static Fn(u32), I trigger an ICE:A small example code snippet is on the playpen (see http://is.gd/U0DmxV):