Fix bad argument type of pprust::print_type

AST types are boxed, there's no need for every caller to do the unboxing
This commit is contained in:
Marijn Haverbeke 2011-08-15 13:45:04 +02:00
parent 1570949ef1
commit a21ebb2f5e
3 changed files with 27 additions and 29 deletions

View file

@ -151,7 +151,7 @@ fn check_states_against_conditions(fcx: &fn_ctxt, f: &_fn,
return a value");
fcx.ccx.tcx.sess.span_fatal(f.decl.output.span,
"see declared return type of '" +
ty_to_str(*f.decl.output) + "'");
ty_to_str(f.decl.output) + "'");
} else if (f.decl.cf == noreturn) {
// check that this really always fails
// Note that it's ok for i_diverge and i_return to both be true.