Add better ICE messages for some undescriptive panics
This commit is contained in:
parent
03515c6a22
commit
663bea5a96
3 changed files with 11 additions and 4 deletions
|
@ -1597,7 +1597,9 @@ impl<'a> State<'a> {
|
|||
}
|
||||
match bound {
|
||||
ast::GenericBound::Outlives(lt) => self.print_lifetime(*lt),
|
||||
_ => panic!(),
|
||||
_ => {
|
||||
panic!("expected a lifetime bound, found a trait bound")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue