]> git.lizzy.rs Git - rust.git/commitdiff
librustc: Remove the one use of `~fn()`
authorPatrick Walton <pcwalton@mimiga.net>
Mon, 18 Nov 2013 23:40:29 +0000 (15:40 -0800)
committerPatrick Walton <pcwalton@mimiga.net>
Tue, 19 Nov 2013 02:27:30 +0000 (18:27 -0800)
src/librustc/lib.rs

index f67de4456034b211dfd0d772f91724ab401b2072..ec4363e7f05dcda13b97c016671c4e8287b45137 100644 (file)
@@ -322,7 +322,7 @@ fn emit(&self,
 fails without recording a fatal error then we've encountered a compiler
 bug and need to present an error.
 */
-pub fn monitor(f: ~fn(@diagnostic::Emitter)) {
+pub fn monitor(f: proc(@diagnostic::Emitter)) {
     use std::comm::*;
 
     // XXX: This is a hack for newsched since it doesn't support split stacks.