Deny bare trait objects in src/libstd
.
This commit is contained in:
parent
77117e3836
commit
560d8079ec
20 changed files with 99 additions and 98 deletions
|
@ -421,6 +421,6 @@ pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
|
|||
/// }
|
||||
/// ```
|
||||
#[stable(feature = "resume_unwind", since = "1.9.0")]
|
||||
pub fn resume_unwind(payload: Box<Any + Send>) -> ! {
|
||||
pub fn resume_unwind(payload: Box<dyn Any + Send>) -> ! {
|
||||
panicking::update_count_then_panic(payload)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue