rustc: Make monitor public.

It's harder to run rustc correctly without it.
This commit is contained in:
Brian Anderson 2014-07-19 01:29:57 -07:00 committed by Alex Crichton
parent d32fe7e51b
commit 9631bf2e25

View file

@ -418,7 +418,7 @@ pub fn list_metadata(sess: &Session, path: &Path,
/// ///
/// The diagnostic emitter yielded to the procedure should be used for reporting /// The diagnostic emitter yielded to the procedure should be used for reporting
/// errors of the compiler. /// errors of the compiler.
fn monitor(f: proc():Send) { pub fn monitor(f: proc():Send) {
// FIXME: This is a hack for newsched since it doesn't support split stacks. // FIXME: This is a hack for newsched since it doesn't support split stacks.
// rustc needs a lot of stack! When optimizations are disabled, it needs // rustc needs a lot of stack! When optimizations are disabled, it needs
// even *more* stack than usual as well. // even *more* stack than usual as well.