Skip dead code checks on items that failed typeck
This commit is contained in:
parent
9a8f117d7b
commit
3599c18874
3 changed files with 16 additions and 5 deletions
|
@ -128,7 +128,10 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
|
|||
if let Some(def_id) = self.typeck_results().type_dependent_def_id(id) {
|
||||
self.check_def_id(def_id);
|
||||
} else {
|
||||
bug!("no type-dependent def for method");
|
||||
assert!(
|
||||
self.typeck_results().tainted_by_errors.is_some(),
|
||||
"no type-dependent def for method"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue