Skip to content

librustc: Remove the &LIFETIME EXPR production from the language. #15405

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
wants to merge 1 commit into from

Conversation

pcwalton
Copy link
Contributor

@pcwalton pcwalton commented Jul 4, 2014

This was parsed by the parser but completely ignored; not even stored in
the AST!

This breaks code that looks like:

static X: &'static [u8] = &'static [1, 2, 3];

Change this code to the shorter:

static X: &'static [u8] = &[1, 2, 3];

Closes #15312.

[breaking-change]

r? @nick29581

This was parsed by the parser but completely ignored; not even stored in
the AST!

This breaks code that looks like:

    static X: &'static [u8] = &'static [1, 2, 3];

Change this code to the shorter:

    static X: &'static [u8] = &[1, 2, 3];

Closes rust-lang#15312.

[breaking-change]
@lilyball
Copy link
Contributor

lilyball commented Jul 4, 2014

It seems a shame to remove this instead of making it work.

@pnkfelix
Copy link
Member

pnkfelix commented Jul 4, 2014

@kballard we can put it back in later and make it work at that time. The point right now is to reduce the surface of potential future backwards-incompatible changes. So by removing this now, we improve our ability to make it work in the future, by ensuring that no one is using it in incompatible contexts.

bors added a commit that referenced this pull request Jul 4, 2014
This was parsed by the parser but completely ignored; not even stored in
the AST!

This breaks code that looks like:

    static X: &'static [u8] = &'static [1, 2, 3];

Change this code to the shorter:

    static X: &'static [u8] = &[1, 2, 3];

Closes #15312.

[breaking-change]

r? @nick29581
@bors bors closed this Jul 4, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 21, 2023
…kril

Support doc links that resolve to fields

Fixes rust-lang#15331

Also removes `Resolver::resolve_module_path_in_trait_assoc_items()` and reimplements it in hir with other `Resolver` methods to decouple things a bit.
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.

Remove & LIFETIME EXPR from the language
5 participants