-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: panicked at 'RefCell<T> already borrowed', /Users/carllerche/Code/oss/rust/src/libcore/cell.rs:317 #18711
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
cc me -- note this a refcell failure. first step is probably to figure out which hashmap is being written into, then figure out who is iterating over it etc |
I enabled debug logs, this is what I got when filtering to middle::astencode
|
The ICE is happening somewhere here: https://github.com/rust-lang/rust/blob/master/src/librustc/middle/astencode.rs#L1881-L1889 |
I think I see the conflicting borrow, it's really silly. Coming up with a reduced test case will probably be harder than fixing it. |
Taking a raw ref of a deref is always safe
rustc version: rustc 0.13.0-dev (60a669a 2014-11-06 14:06:59 +0000)
Repro:
I have not yet been able to isolate to a small case, but clone the following repo on the "ice-repo2" branch (sorry, typos) and run
cargo test
, it should ICEhttps://github.com/carllerche/astaire/tree/ice-repo2
Backtrace
The text was updated successfully, but these errors were encountered: