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

eprint doesn't work inside the rustc_driver #44244

Closed
MaikKlein opened this issue Sep 1, 2017 · 2 comments
Closed

eprint doesn't work inside the rustc_driver #44244

MaikKlein opened this issue Sep 1, 2017 · 2 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@MaikKlein
Copy link
Contributor

MaikKlein commented Sep 1, 2017

#![feature(rustc_private)]
extern crate rustc_driver;
use rustc_driver::{get_args, run, run_compiler, RustcDefaultCalls};

fn main() {
    let mut calls = RustcDefaultCalls {};
    run(move || {
        println!("Works");
        eprintln!("Doesn't work");
        run_compiler(&get_args(), &mut calls, None, None)
    });
}

playground

Is this expected?

@petrochenkov
Copy link
Contributor

This issue is very similar to #43855

@shepmaster shepmaster added C-enhancement Category: An issue proposing an enhancement or a PR with one. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 1, 2017
@petrochenkov
Copy link
Contributor

Closing as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants