Revert previous 6 commits. Hopefully put out Windows fire.
Revert "rustc: Export only what's needed from middle::ty" This reverts commit4255d58aa5
. Revert "rustc: Make name resolution errors less fatal" This reverts commitb8ab9ea89c
. Revert "rustc: Make import resolution errors less fatal" This reverts commit92a8ae94b9
. Revert "rustc: Export only what's used from middle::resolve" This reverts commit4539a2cf7a
. Revert "rustc: Re-introduce session.span_err, session.err" This reverts commit7fe9a88e31
. Revert "rustc: Rename session.span_err -> span_fatal, err -> fatal" This reverts commitc394a7f49a
.
This commit is contained in:
parent
4255d58aa5
commit
cf9ed08a50
16 changed files with 191 additions and 449 deletions
|
@ -78,7 +78,7 @@ fn new_parser(session::session sess, eval::env env, ast::def_id initial_def,
|
|||
lo = rdr.get_mark_chpos();
|
||||
hi = rdr.get_chpos();
|
||||
}
|
||||
fn err(str m) -> ! { sess.span_fatal(rec(lo=lo, hi=hi), m); }
|
||||
fn err(str m) -> ! { sess.span_err(rec(lo=lo, hi=hi), m); }
|
||||
fn restrict(restriction r) { res = r; }
|
||||
fn get_restriction() -> restriction { ret res; }
|
||||
fn get_session() -> session::session { ret sess; }
|
||||
|
@ -353,7 +353,7 @@ fn parse_ty_field(&parser p) -> ast::ty_field {
|
|||
fn ident_index(&parser p, &vec[ast::arg] args, &ast::ident i) -> uint {
|
||||
auto j = 0u;
|
||||
for (ast::arg a in args) { if (a.ident == i) { ret j; } j += 1u; }
|
||||
p.get_session().span_fatal(p.get_span(),
|
||||
p.get_session().span_err(p.get_span(),
|
||||
"Unbound variable " + i + " in constraint arg");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue