-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Internal compiler error at compiling openssl-sys-0.4.0 #22432
Comments
The same thing happens with openssl-sys 0.4.1:
|
For anyone running into this, you can disable debug info to work around the issue until it's fixed: [profile.dev]
debug = false |
Same problem here.
Rust version: rustc 1.0.0-nightly (6c065fc 2015-02-17) (built 2015-02-18) Operating System: OS X Yosemite 10.10.2 |
It looks like I have the same problem: |
A minimized version: use std::sync::MUTEX_INIT;
fn foo() {
(0..1).map(|_| MUTEX_INIT).count();
} |
Minimized a bit further actually, @sfackler perhaps you could publish a version which uses |
Er, nevermind, I have submitted a PR against rust-openssl to temporarily fix this. |
I encountered a similar problem with constants in match patterns. This very probably has the same root cause, which is that the AST of constants gets substituted for the constant-reference during trans, but then we suddenly have a bunch of unrelated AST node ids in there. I'll try to fix this this week. |
My minimal case: #![crate_type = "lib"]
#![crate_name = "icetest"]
#![no_std]
#![feature(no_std, core)]
extern crate core;
const ZERO: [u32; 8] = [0; 8];
pub fn problematic() {
let mut _zero = ZERO;
} |
…cs, r=alexcrichton With this PR in-place constants are handled correctly with respect to debug location assignment. The PR also adds an (unrelated) test case for debug locations in `extern \"C\"` functions. Fixes rust-lang#22432
This is blocked on rust-lang/rust#22432.
Rust version:
OS: Gentoo Linux AMD64
The text was updated successfully, but these errors were encountered: