Skip to content

Conversation

alexcrichton
Copy link
Member

At the same time remove the pub use of the variants in favor of accessing
through the enum type itself. This is a breaking change as the Found and
NotFound variants must now be imported through BinarySearchResult instead of
just std::slice.

[breaking-change]
Closes #19271

At the same time remove the `pub use` of the variants in favor of accessing
through the enum type itself. This is a breaking change as the `Found` and
`NotFound` variants must now be imported through `BinarySearchResult` instead of
just `std::slice`.

[breaking-change]
Closes rust-lang#19272
@tomjakubowski
Copy link
Contributor

edit: never mind

@SimonSapin
Copy link
Contributor

Although this fixes the specific issue in #19271 and #19275 might be “as intended”, the same issue could easy happen for some other item (not) re-exported by the libstd facade. Is there a more general strategy to avoid or look for such bugs?

@Gankra
Copy link
Contributor

Gankra commented Nov 25, 2014

In the libcollections facade (and std collections facade) I used globs as much as possible to ensure nothing was missed, and that stuff added to the child modules propagated automatically. Not perfect (as some collections had some special requirements), but it's pretty nice. Actually looking at them again, I probably could have just globbed in all of core_collections into std::collections.

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Nov 27, 2014
At the same time remove the `pub use` of the variants in favor of accessing
through the enum type itself. This is a breaking change as the `Found` and
`NotFound` variants must now be imported through `BinarySearchResult` instead of
just `std::slice`.

[breaking-change]
Closes rust-lang#19271
@bors bors merged commit 36372b9 into rust-lang:master Nov 27, 2014
@alexcrichton alexcrichton deleted the issue-19272 branch December 28, 2014 06:44
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

Successfully merging this pull request may close these issues.

core::slice::BinarySearchResult is not re-exported in std::slice

6 participants