Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 3 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
c100e72
Stabilize intra-doc links
Manishearth Jul 17, 2020
63d5bee
Move intra-doc-links documentation out of unstable section
Manishearth Jul 17, 2020
bc06674
Mention super/crate/self in docs
Manishearth Jul 17, 2020
f072e4a
Mention URL fragments
Manishearth Jul 17, 2020
2a98409
Fill out docs on intra-doc resolution failure lint
Manishearth Jul 29, 2020
4e0eb0b
Update src/doc/rustdoc/src/linking-to-items-by-name.md
Manishearth Aug 9, 2020
175e305
Update src/doc/rustdoc/src/linking-to-items-by-name.md
Manishearth Aug 9, 2020
51c1351
Resolve some conflicts
Manishearth Sep 14, 2020
6f1fa2b
Fix lint name in docs
Manishearth Sep 14, 2020
792b2ea
Update src/doc/rustdoc/src/lints.md
Manishearth Sep 15, 2020
ff1a9e4
Fix underflow when calculating the number of no-op jumps folded
tmiasko Sep 16, 2020
6928041
Update src/doc/rustdoc/src/linking-to-items-by-name.md
Manishearth Sep 18, 2020
5fd6301
ICEs should print the top of the query stack
hosseind75 Sep 19, 2020
132c9ef
run full query stack print just when RUST_BACKTRACE is set
hosseind75 Sep 19, 2020
767e84a
change approach and run ui tests
hosseind75 Sep 19, 2020
339181a
show a message when we are showing limited slice of query stack
hosseind75 Sep 19, 2020
51c32f4
fix invalid-punct-ident-1 test
hosseind75 Sep 19, 2020
d8af4b3
add filter regexes to load-panic-backtraces test
hosseind75 Sep 20, 2020
3f0f409
Documented From impls in std/sync/mpsc/mod.rs
duckymirror Sep 20, 2020
16eee2a
Applied review comments
duckymirror Sep 21, 2020
4a6bc77
Liballoc bench vec use mem take not replace
pickfire Sep 22, 2020
0082d20
Typo fix: "satsify" -> "satisfy"
follower Sep 22, 2020
4b6a482
Fix dest prop miscompilation around references
jonas-schievink Sep 22, 2020
928a29f
Bless mir-opt tests
jonas-schievink Sep 22, 2020
9f27f37
Include libunwind in the rust-src component.
ehuss Sep 23, 2020
6586c37
Move MiniSet to data_structures
andjo403 Sep 23, 2020
631c688
Make [].as_[mut_]ptr_range() (unstably) const.
m-ou-se Sep 23, 2020
b5d47bf
clarify that `changelog-seen = 1` goes to the beginning of config.toml
matthiaskrgr Sep 23, 2020
cdd3126
fix show we're just showing... message instead of the end of query st…
hosseind75 Sep 23, 2020
947536f
Make delegation methods of `std::net::IpAddr` unstable const
CDirkx Sep 7, 2020
c7d68ed
Rollup merge of #74430 - Manishearth:stabilize-intra-doc, r=Manishearth
Dylan-DPC Sep 24, 2020
4893b4f
Rollup merge of #76304 - CDirkx:const-ip, r=ecstatic-morse
Dylan-DPC Sep 24, 2020
8836966
Rollup merge of #76748 - tmiasko:no-op-jumps, r=matthewjasper
Dylan-DPC Sep 24, 2020
0e4149d
Rollup merge of #76920 - hosseind75:ICEs_should_always_print_the_top_…
Dylan-DPC Sep 24, 2020
bd7f3f1
Rollup merge of #76978 - duckymirror:mpsc-from-doc, r=jyn514
Dylan-DPC Sep 24, 2020
63ea0cf
Rollup merge of #77028 - andjo403:mini, r=matthewjasper
Dylan-DPC Sep 24, 2020
af24b83
Rollup merge of #77044 - pickfire:patch-4, r=jyn514
Dylan-DPC Sep 24, 2020
7075433
Rollup merge of #77050 - follower:patch-1, r=oli-obk
Dylan-DPC Sep 24, 2020
1a66e27
Rollup merge of #77066 - jonas-schievink:dest-prop-borrow, r=oli-obk
Dylan-DPC Sep 24, 2020
9a85615
Rollup merge of #77086 - ehuss:src-libunwind, r=Mark-Simulacrum
Dylan-DPC Sep 24, 2020
5572820
Rollup merge of #77097 - fusion-engineering-forks:slice-ptr-range-con…
Dylan-DPC Sep 24, 2020
feb6392
Rollup merge of #77106 - matthiaskrgr:changelog_seen, r=Mark-Simulacrum
Dylan-DPC Sep 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions library/std/src/sync/mpsc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,11 @@ impl<T: Send> error::Error for TrySendError<T> {

#[stable(feature = "mpsc_error_conversions", since = "1.24.0")]
impl<T> From<SendError<T>> for TrySendError<T> {
/// Converts a `SendError<T>` into a `TrySendError<T>`.
///
/// This conversion always returns a `TrySendError::Disconnected` containing the data in the `SendError<T>`.
///
/// No data is allocated on the heap.
fn from(err: SendError<T>) -> TrySendError<T> {
match err {
SendError(t) => TrySendError::Disconnected(t),
Expand Down Expand Up @@ -1576,6 +1581,11 @@ impl error::Error for TryRecvError {

#[stable(feature = "mpsc_error_conversions", since = "1.24.0")]
impl From<RecvError> for TryRecvError {
/// Converts a `RecvError` into a `TryRecvError`.
///
/// This conversion always returns `TryRecvError::Disconnected`.
///
/// No data is allocated on the heap.
fn from(err: RecvError) -> TryRecvError {
match err {
RecvError => TryRecvError::Disconnected,
Expand Down Expand Up @@ -1606,6 +1616,11 @@ impl error::Error for RecvTimeoutError {

#[stable(feature = "mpsc_error_conversions", since = "1.24.0")]
impl From<RecvError> for RecvTimeoutError {
/// Converts a `RecvError` into a `RecvTimeoutError`.
///
/// This conversion always returns `RecvTimeoutError::Disconnected`.
///
/// No data is allocated on the heap.
fn from(err: RecvError) -> RecvTimeoutError {
match err {
RecvError => RecvTimeoutError::Disconnected,
Expand Down