rustc: Make some typechecker errors non-fatal
auto merge of #5924 : catamorphism/rust/non-fatal-errors, r=catamorphism