rustc: When encountering "mutable" as a tycon, parse it, drop it on the floor, and emit a warning

This commit is contained in:
Patrick Walton 2011-03-18 13:44:13 -07:00
parent 8aa946ff5e
commit 8b82a549bf
2 changed files with 17 additions and 0 deletions

View file

@ -40,6 +40,14 @@ obj session(cfg targ) {
fail;
}
fn span_warn(span sp, str msg) {
log #fmt("%s:%u:%u:%u:%u: warning: %s",
sp.filename,
sp.lo.line, sp.lo.col,
sp.hi.line, sp.hi.col,
msg);
}
fn bug(str msg) {
log #fmt("error: internal compiler error %s", msg);
fail;