[src]

Function rustc::monitor

pub fn monitor(f: proc())

Run a procedure which will detect failures in the compiler and print nicer error messages rather than just failing the test.

The diagnostic emitter yielded to the procedure should be used for reporting errors of the compiler.