Skip to content

Revert overloaded slice notation being merged with library slicing #17715

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

Merged
merged 4 commits into from
Oct 3, 2014

Conversation

aturon
Copy link
Member

@aturon aturon commented Oct 2, 2014

This PR reverts #17620, which caused a significant regression for slices.

As discussed with @alexcrichton, all of the public-facing changes of the earlier PR need to be rolled back, and it's not clear that we should move the libraries over to this new notation yet anyway (especially given its feature-gated status).

Closes #17710

@rust-highfive
Copy link
Contributor

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@aturon
Copy link
Member Author

aturon commented Oct 2, 2014

r? @alexcrichton

@aturon aturon changed the title Revert slice ops libs Revert overloaded slice notation being merged with library slicing Oct 2, 2014
bors added a commit that referenced this pull request Oct 2, 2014
This PR reverts #17620, which caused a significant regression for slices.

As discussed with @alexcrichton, all of the public-facing changes of the earlier PR need to be rolled back, and it's not clear that we should move the libraries over to this new notation yet anyway (especially given its feature-gated status).

Closes #17710
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Oct 2, 2014
bors added a commit that referenced this pull request Oct 2, 2014
This PR reverts #17620, which caused a significant regression for slices.

As discussed with @alexcrichton, all of the public-facing changes of the earlier PR need to be rolled back, and it's not clear that we should move the libraries over to this new notation yet anyway (especially given its feature-gated status).

Closes #17710
@bors bors closed this Oct 3, 2014
@bors bors merged commit d2ea031 into rust-lang:master Oct 3, 2014
@@ -70,7 +70,6 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
("tuple_indexing", Active),
("associated_types", Active),
("visible_private_types", Active),
("slicing_syntax", Active),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this mean to revert the actual feature gate itself?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not intentionally, but we were trying to revert the commits on master as quickly as possible and didn't notice this until too late. @nick29581 was planning to send in a PR to add back the feature gate right away, not sure if that happened yet.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its #17807, which you're r?'ed for :-)

RalfJung pushed a commit to RalfJung/rust that referenced this pull request Aug 1, 2024
… r=Veykril

fix: let glob imports override other globs' visibility

Follow up to rust-lang#14930

Fixes rust-lang#11858
Fixes rust-lang#14902
Fixes rust-lang#17704

I haven't reworked the code here at all - I don't feel confident in the codebase to do so - just rebased it onto the current main branch and fixed conflicts.

I'm not _entirely_ sure I understand the structure of the `check` function in `crates/hir-def/src/nameres` tests. I think the change to the test expectation from rust-lang#14930 is correct, marking the `crate::reexport::inner` imports with `i`, and I understand it to mean there's a specific token in the import that we can match it to (in this case, `Trait`, `function` and `makro` of `pub use crate::defs::{Trait, function, makro};` respectively), but I had some trouble understanding the meaning of the different parts of `PerNs` to be sure.
Does this make sense?

I tested building and using RA locally with `cargo xtask install` and after this change the documentation for `arrow_array::ArrowPrimitiveType` seems to be picked up correctly!
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.

std::ops::Slice is not in the prelude
6 participants