Skip to content

Rust should support multiple imports of extension methods #2386

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

Closed
eholk opened this issue May 15, 2012 · 1 comment
Closed

Rust should support multiple imports of extension methods #2386

eholk opened this issue May 15, 2012 · 1 comment
Labels
A-type-system Area: Type system C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@eholk
Copy link
Contributor

eholk commented May 15, 2012

If you import vec::extensions, then you can no longer use the extension methods because they are imported already by default, and you get multiple candidate method errors. It would be good if Rust could tell that these are actually the same methods.

@yichoi
Copy link
Contributor

yichoi commented Apr 25, 2013

vec::extensions does not exist anymore

bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
cargo-miri: write the Xargo project files atomically

`@matthiaskrgr` this should fix rust-lang/miri#2340. Any chance you could test this before we land it?
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
…led (rust-lang#2386)

This PR adds the new opt-in option for users to enable unstable features (via -Z option or unstable table in Cargo.toml). This PR also adds logic to parse and verify APIs tagged with unstable.

Co-authored-by: Zyad Hassan <[email protected]>
Co-authored-by: Adrian Palacios <[email protected]>
tshepang added a commit to tshepang/rust that referenced this issue Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

3 participants