Skip to content

Commit e60cb91

Browse files
committed
Add session.note method
1 parent 4ffa5dd commit e60cb91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/comp/driver/session.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ obj session(ast::crate_num cnum,
109109

110110
emit_diagnostic(some(sp), msg, "note", 10u8, cm);
111111
}
112+
fn note(str msg) {
113+
emit_diagnostic(none, msg, "note", 10u8, cm);
114+
}
112115
fn span_bug(span sp, str msg) -> ! {
113116
self.span_fatal(sp, #fmt("internal compiler error %s", msg));
114117
}

0 commit comments

Comments
 (0)