Skip to content

Commit

Permalink
use single line comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cengiz Can authored and cengiz-io committed Jul 3, 2017
1 parent 0e18a9c commit e1a9144
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/librustc_driver/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,17 +344,13 @@ pub trait CompilerCalls<'a> {
#[derive(Copy, Clone)]
pub struct RustcDefaultCalls;

/**
* TODO remove these and use winapi 0.3 instead
*
* These are duplicated in
* - bootstrap/compile.rs#L478
* - librustc_errors/emitter.rs#L1253
*/
// FIXME remove these and use winapi 0.3 instead
// Duplicates: bootstrap/compile.rs, librustc_errors/emitter.rs
#[cfg(unix)]
fn stdout_isatty() -> bool {
unsafe { libc::isatty(libc::STDOUT_FILENO) != 0 }
}

#[cfg(windows)]
fn stdout_isatty() -> bool {
type DWORD = u32;
Expand Down

0 comments on commit e1a9144

Please sign in to comment.