Skip to content

Conversation

@pcwalton
Copy link
Contributor

RFC #27; issue #12778.

After a snapshot, the old syntax will be removed.

This can break some code that looked like foo as &Trait:Send. Now you
will need to write foo as (&Trait+Send).

[breaking-change]

r? @alexcrichton

Copy link
Member

Choose a reason for hiding this comment

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

It looks like this method may want to get renamed, and the second value of the tuple should be OwnedSlice instead of Option<OwnedSlice<...>>

@alexcrichton
Copy link
Member

The tests added here seem quite light. Can you add more tests dealing with the precedence of + and as?

@alexcrichton
Copy link
Member

Could you also add Closes #12778 to the commit?

@pcwalton
Copy link
Contributor Author

re-r? @alexcrichton

Copy link
Member

Choose a reason for hiding this comment

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

I normally grep for the string stage0 as well, could you put that in the comment?

@alexcrichton
Copy link
Member

r=me with one minor comment

RFC rust-lang#27.

After a snapshot, the old syntax will be removed.

This can break some code that looked like `foo as &Trait:Send`. Now you
will need to write `foo as (&Trait+Send)`.

Closes rust-lang#12778.

[breaking-change]
@alexcrichton
Copy link
Member

I canceled the most recent build because this is contained within the rollup (trying to land that all at once)

lnicola pushed a commit to lnicola/rust that referenced this pull request Jun 19, 2023
…Veykril

autopublish: Offset version number

The workflow is currently failing because it's trying to publish 0.0.16, while the last version published was 0.0.149.
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.

3 participants