Skip to content

rustc: emitting only metadata causes no output #40109

Closed
@Ruin0x11

Description

@Ruin0x11

I'm trying to obtain the rustc analysis metadata for a single .rs file, but not specifying a binary object type inside emit causes no output.

test.rs:

//! # Documentation Example
//! An example for figuring out metadata emission.

/// Begins the program.
fn main() {
    println!("Hello, world!");
}

Commands:

 » ls -a
.	..	test.rs
 » rustc --emit=metadata test.rs
 » ls -a
.	..	test.rs
 » rustc --emit=metadata,link test.rs
 » ls -a
.		..		libtest.rmeta	test		test.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions