Skip to content

add {Receiver,Sender,SyncSender}::{is_empty,len} - #165248

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
malezjaa:is_empty-len
Nov 2, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
malezjaa:is_empty-len

Conversation

@malezjaa

Copy link
Copy Markdown
Contributor

Tracking issue: #165247
ACP only mentions .len(), but I think is_empty() should be added for API parity with mpmc.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 31, 2026
@rustbot

rustbot commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

r? @ChrisDenton

rustbot has assigned @ChrisDenton.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 37 candidates
  • Random selection from ChrisDenton, JohnTitor, Mark-Simulacrum, hanna-kruppe

@joboet

joboet commented Nov 2, 2026

Copy link
Copy Markdown
Member

Thanks!
@bors r+ rollup
r? joboet

@rust-bors

rust-bors Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

📌 Commit b142f31 has been approved by joboet

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 2, 2026
@joboet joboet mentioned this pull request Nov 2, 2026
1 of 4 tasks
jhpratt added a commit to jhpratt/rust that referenced this pull request Nov 2, 2026
add {Receiver,Sender,SyncSender}::{is_empty,len}

Tracking issue: rust-lang#165247
ACP only mentions `.len()`, but I think `is_empty()` should be added for API parity with mpmc.
rust-bors Bot pushed a commit that referenced this pull request Nov 2, 2026
Rollup of 15 pull requests

Successful merges:

 - #165271 (Re-enable most of `test-aarch64-apple-macos-26-2`)
 - #165331 (miri subtree update)
 - #165211 (Streamline function_item_references lint)
 - #165273 (Add some docs for our allocator `unstable_feature_bound`s)
 - #165279 (explicitly test the win32 symbol byte count suffix)
 - #162688 (Fix invalid suggestions and misleading notes for imports)
 - #165198 (expand the docs of `Complex<T>`)
 - #165231 (Remove redundant parameter from `AttributeParser::parse_attribute_list()` & `AttributeParser::parse_single_args()`)
 - #165248 (add {Receiver,Sender,SyncSender}::{is_empty,len})
 - #165284 (Ensure the display impl of uXX is small with optimize_for_size)
 - #165287 (Add example of implementing Allocator to its docs)
 - #165297 (Cleanup `rustdoc-html` tests)
 - #165298 (Improve diagnostics for notable-trait color arguments)
 - #165336 (Refactor `analyze_attr` to use a match)
 - #165338 (`rust-analyzer` subtree update)
rust-bors Bot pushed a commit that referenced this pull request Nov 2, 2026
Rollup of 15 pull requests

Successful merges:

 - #165271 (Re-enable most of `test-aarch64-apple-macos-26-2`)
 - #165331 (miri subtree update)
 - #165211 (Streamline function_item_references lint)
 - #165273 (Add some docs for our allocator `unstable_feature_bound`s)
 - #165279 (explicitly test the win32 symbol byte count suffix)
 - #162688 (Fix invalid suggestions and misleading notes for imports)
 - #165198 (expand the docs of `Complex<T>`)
 - #165231 (Remove redundant parameter from `AttributeParser::parse_attribute_list()` & `AttributeParser::parse_single_args()`)
 - #165248 (add {Receiver,Sender,SyncSender}::{is_empty,len})
 - #165284 (Ensure the display impl of uXX is small with optimize_for_size)
 - #165287 (Add example of implementing Allocator to its docs)
 - #165297 (Cleanup `rustdoc-html` tests)
 - #165298 (Improve diagnostics for notable-trait color arguments)
 - #165336 (Refactor `analyze_attr` to use a match)
 - #165338 (`rust-analyzer` subtree update)
rust-bors Bot pushed a commit that referenced this pull request Nov 2, 2026
…uwer

Rollup of 14 pull requests

Successful merges:

 - #165271 (Re-enable most of `test-aarch64-apple-macos-26-2`)
 - #165211 (Streamline function_item_references lint)
 - #165273 (Add some docs for our allocator `unstable_feature_bound`s)
 - #165279 (explicitly test the win32 symbol byte count suffix)
 - #162688 (Fix invalid suggestions and misleading notes for imports)
 - #165198 (expand the docs of `Complex<T>`)
 - #165231 (Remove redundant parameter from `AttributeParser::parse_attribute_list()` & `AttributeParser::parse_single_args()`)
 - #165248 (add {Receiver,Sender,SyncSender}::{is_empty,len})
 - #165284 (Ensure the display impl of uXX is small with optimize_for_size)
 - #165287 (Add example of implementing Allocator to its docs)
 - #165297 (Cleanup `rustdoc-html` tests)
 - #165298 (Improve diagnostics for notable-trait color arguments)
 - #165336 (Refactor `analyze_attr` to use a match)
 - #165338 (`rust-analyzer` subtree update)
@rust-bors
rust-bors Bot merged commit 5d1bac4 into rust-lang:main Nov 2, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Nov 2, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 2, 2026
Rollup merge of #165248 - malezjaa:is_empty-len, r=joboet

add {Receiver,Sender,SyncSender}::{is_empty,len}

Tracking issue: #165247
ACP only mentions `.len()`, but I think `is_empty()` should be added for API parity with mpmc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants