rust/library/core/src/ops
许杰友 Jieyou Xu (Joe) 049b3e549e
Rollup merge of #128954 - zachs18:fromresidual-no-default, r=scottmcm
Explicitly specify type parameter on FromResidual for Option and ControlFlow.

~~Remove type parameter default `R = <Self as Try>::Residual` from `FromResidual`~~ _Specify default type parameter on `FromResidual` impls in the stdlib_ to work around https://github.com/rust-lang/rust/issues/99940 / https://github.com/rust-lang/rust/issues/87350 ~~as mentioned in https://github.com/rust-lang/rust/issues/84277#issuecomment-1773259264~~.

This does not completely fix the issue, but works around it for `Option` and `ControlFlow` specifically (`Result` does not have the issue since it already did not use the default parameter of `FromResidual`).

~~(Does this need an ACP or similar?)~~ ~~This probably needs at least an FCP since it changes the API described in [the RFC](https://github.com/rust-lang/rfcs/pull/3058). Not sure if T-lang, T-libs-api, T-libs, or some combination (The tracking issue is tagged T-lang, T-libs-api).~~ This probably doesn't need T-lang input, since it is not changing the API of `FromResidual` from the RFC? Maybe needs T-libs-api FCP?
2024-08-14 21:43:08 +08:00
..
arith.rs Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
async_function.rs Gate AsyncFn* under async_closure feature 2024-07-23 19:56:06 -04:00
bit.rs Replace some usage of #[rustc_on_unimplemented] with 2024-01-05 15:23:09 +01:00
control_flow.rs Explicitly specify type parameter on FromResidual impls in stdlib. 2024-08-12 12:54:18 -05:00
coroutine.rs Add must_use attribute to Coroutine trait 2024-08-12 19:27:57 -07:00
deref.rs Remove spurious backticks detected by rustdoc::unescaped_backticks 2024-07-29 00:57:08 +02:00
drop.rs fix dropck documentation for [T;0] special-case 2024-08-01 17:44:14 +03:00
function.rs Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
index.rs Replace some usage of #[rustc_on_unimplemented] with 2024-01-05 15:23:09 +01:00
index_range.rs Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methods 2024-05-23 21:02:31 -04:00
mod.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
range.rs Bump version placeholders 2024-02-08 07:43:38 -05:00
try_trait.rs Simplify [T; N]::try_map signature 2024-06-11 01:50:43 -07:00
unsize.rs Update coerce_unsized tracking issue from #27732 to #18598 2022-12-19 23:09:47 -08:00