Skip to content

ICE when constructing an array whose size is in an external crate #13664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
radford opened this issue Apr 21, 2014 · 1 comment
Closed

ICE when constructing an array whose size is in an external crate #13664

radford opened this issue Apr 21, 2014 · 1 comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@radford
Copy link
Contributor

radford commented Apr 21, 2014

    extern crate n; // contains only: pub static N: uint = 24;
    pub struct X { n: [u8,..24] }
    fn new() -> X { X { n: [0,..n::N] }}
    fn main() {}

RefCell already borrowed in middle::astencode::decode_side_tables::closure.

@alexcrichton
Copy link
Member

Closing as a dupe of #13763

arcnmx pushed a commit to arcnmx/rust that referenced this issue Dec 17, 2022
Don't show runnable code lenses in libraries outside of the workspace

Addresses rust-lang#13664. For now I'm just disabling runnable code lenses since the ones that display the number of references and implementations do work correctly with external code.

Also made a tiny TypeScript change to use the typed `sendNotification` overload.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants