Skip to content
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

Spurious libtest.rmeta file generated #50289

Closed
leonardo-m opened this issue Apr 27, 2018 · 4 comments
Closed

Spurious libtest.rmeta file generated #50289

leonardo-m opened this issue Apr 27, 2018 · 4 comments

Comments

@leonardo-m
Copy link

If I compile a simple program like:

fn main() {
    println!("Hello world");
}

Using:

rustc --emit=metadata test.rs

It generates an empty file titled "libtest.rmeta" since few Nightlies.

I am using:

rustc 1.27.0-nightly (7f3444e1b 2018-04-26)
binary: rustc
commit-hash: 7f3444e1baf0d335b4bf379f845dbc28cdd0509c
commit-date: 2018-04-26
host: x86_64-pc-windows-gnu
release: 1.27.0-nightly
LLVM version: 6.0
@ehuss
Copy link
Contributor

ehuss commented Apr 28, 2018

I think this is a consequence of #49289.

@ishitatsuyuki
Copy link
Contributor

I think this is the intended behaviour. What do you expect otherwise?

@leonardo-m
Copy link
Author

Can I use Rustc to just test the types of a program without generating extra files?

@Mark-Simulacrum
Copy link
Member

I don't think we're inclined to support this sort of "check without emitting files" today so I'm going to go ahead and close. If someone wants this, I think a PR would not be too difficult to implement, maybe via --emit=none or something like that. Bikeshed on the naming, of course.

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

4 participants