use crate;
use RwLock;
use Arc;
/// An in-memory diagnostics emitter.
///
/// Diagnostics are pushed to a shared buffer as-is.
///
/// # Warning
///
/// Do **NOT** hold a read lock on the buffer across compiler passes as this will prevent the
/// compiler from pushing diagnostics.