Skip to content

Compiling a file for testing without any tests crashes LLVM #13928

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
jschaf opened this issue May 4, 2014 · 1 comment
Closed

Compiling a file for testing without any tests crashes LLVM #13928

jschaf opened this issue May 4, 2014 · 1 comment

Comments

@jschaf
Copy link
Contributor

jschaf commented May 4, 2014

Compiling an empty file with rustc empty.rs --test fails. I'm using rust-nightly on windows 8.

fn main(){}
$ rustc src/empty.rs  --test
src\empty.rs:3:1: 3:12 warning: code is never used: `main`, #[warn(dead_code)] on by default
src\empty.rs:3 fn main(){}
               ^~~~~~~~~~~
Assertion failed!

Program: C:\Program Files (x86)\Rust\bin\rustc.exe
File: c:/bot/slave/nightly-win/build/src/llvm/lib/MC/WinCOFFObjectWriter.cpp, Line 222

Expression: Section->Number != -1 && "Sections with relocations must be real!"

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

$ rustc --version
C:\Program Files (x86)\Rust\bin\rustc.exe 0.11-pre-nightly (d1ca0b1 2014-05-03 1:26:49 -0700)
host: i686-pc-mingw32
@alexcrichton
Copy link
Member

Closing as a dupe of #13793, but thanks for the report!

bors added a commit to rust-lang-ci/rust that referenced this issue Feb 13, 2023
internal: avoid 'cloning' types that implement 'Copy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants