Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::select::select only works on ports of the same type #10624

Closed
mstewartgallus opened this issue Nov 23, 2013 · 1 comment
Closed

std::select::select only works on ports of the same type #10624

mstewartgallus opened this issue Nov 23, 2013 · 1 comment

Comments

@mstewartgallus
Copy link
Contributor

Currently, std::select::select is defined like pub fn select<A: Select>(ports: &mut [A]) -> uint but that is too strict. What if one wants to select over two ports of different types? It seems ugly to me that the alternative is to box the ports into pub fn select(ports: &mut [&Select]) but I can't think of a better alternative. This issue also applies to selecting between a Port, and a PortOne. I guess another way to work around this would be to implement Select for &Select objects.

@alexcrichton
Copy link
Member

Closing, this was fixed long ago.

flip1995 pushed a commit to flip1995/rust that referenced this issue Apr 11, 2023
…r=xFrednet

remove unusued `#![feature(drain_filter)]`

The unstable feature does not appear to be used and its presence blocks work in rust-lang#104455

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants