Rollup merge of #47307 - dlrobertson:fix_panic_strings, r=kennytm
Fix panic strings. - Fix panic string in `check_ast_crate`. - Update panic string for Duration subtraction on overflow/underflow. Not sure if the changes to `Duration` are helpful/needed. Mostly just a nit. Otherwise this is just a one character change :) On another note: I hit the panic in `check_ast_crate` when compiling [m-labs/smoltcp] with the following: ``` cargo test --doc --no-default-features --features "std socket-raw"` ``` [m-labs/smoltcp]: https://github.com/m-labs/smoltcp
This commit is contained in:
commit
9bedbcc9bf
1 changed files with 1 additions and 1 deletions
|
@ -1046,7 +1046,7 @@ pub fn check_ast_crate(sess: &Session, krate: &ast::Crate) {
|
||||||
// calculated the lint levels for all AST nodes.
|
// calculated the lint levels for all AST nodes.
|
||||||
for (_id, lints) in cx.buffered.map {
|
for (_id, lints) in cx.buffered.map {
|
||||||
for early_lint in lints {
|
for early_lint in lints {
|
||||||
span_bug!(early_lint.span, "failed to process bufferd lint here");
|
span_bug!(early_lint.span, "failed to process buffered lint here");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue