fn emit_diag(&self, diag: &str) -> CargoResult<bool> {
        let h = util::hash_u64(diag);
        if !self.seen.borrow_mut().insert(h) {
            return Ok(false);
        }
        let mut shell = self.config.shell();
        shell.print_ansi_stderr(diag.as_bytes())?;
        shell.err().write_all(b"\n")?;
        Ok(true)
    }
/// Emits a diagnostic message.
///
/// Returns `true` if the message was emitted, or `false` if it was
/// suppressed for being a duplicate.
Emits a diagnostic message.
Returns `true` if the message was emitted, or `false` if it was
suppressed for being a duplicate.
Emits a diagnostic message . Returns ` true ` if the message was emitted or ` false ` if it was suppressed for being a duplicate .
fn emit_diag(&self, diag: &str) -> CargoResult<bool> {
        let h = util::hash_u64(diag);
        if !self.seen.borrow_mut().insert(h) {
            return Ok(false);
        }
        let mut shell = self.config.shell();
        shell.print_ansi_stderr(diag.as_bytes())?;
        shell.err().write_all(b"\n")?;
        Ok(true)
    }
fn emit_diag ( & self , diag : & str ) -> CargoResult < bool > { let h = util :: hash_u64 ( diag ) ; if ! self . seen . borrow_mut ( ) . insert ( h ) { return Ok ( false ) ; } let mut shell = self . config . shell ( ) ; shell . print_ansi_stderr ( diag . as_bytes ( ) ) ? ; shell . err ( ) . write_all ( b" \n " ) ? ; Ok ( true ) }
Emits a diagnostic message.
Emits a diagnostic message .
&self
diag
&str
&self
diag
&str