Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upType-check `break value;` even outside of `loop {}`. #43745
Conversation
rust-highfive
assigned
arielb1
Aug 8, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
rust-highfive
Aug 8, 2017
Collaborator
r? @arielb1
(rust_highfive has picked a reviewer for you, use r? to override)
|
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kennytm
Aug 8, 2017
Member
(The break rust; thing is following #43162 (comment). It can be reverted if considered inappropriate.)
|
(The |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zackmdavis
Aug 8, 2017
Contributor
It can be reverted if considered inappropriate.
I don't think the type-checker of a production compiler is a good place for easter eggs.
(For comparison, Python has import this and from __future__ import braces, but it feels significant that those are tucked away in the standard library, rather than affecting the semantics of the language itself.)
I don't think the type-checker of a production compiler is a good place for easter eggs. (For comparison, Python has |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kennytm
Aug 8, 2017
Member
@zachreizner Not saying the feature should stay (I may delete those in 1 or 2 days r+'ed run-pass to ensure normal code is not affected).
|
@zachreizner Not saying the feature should stay ( |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
arielb1
Aug 8, 2017
Contributor
Generally r=me, but we need signoff from @aturon for all new features.
|
Generally r=me, but we need signoff from @aturon for all new features. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
arielb1
Aug 8, 2017
Contributor
I think we could also go with signoff from our release manager, @brson
|
I think we could also go with signoff from our release manager, @brson |
arielb1
added
S-waiting-on-team
T-core
labels
Aug 8, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@bors: r+ for as long as we can get away with it |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
killercup
Aug 9, 2017
Member
This is awesome. I'll wait for the first nightly that includes this and pin all my projects to it!
|
This is awesome. I'll wait for the first nightly that includes this and pin all my projects to it! |
aidanhs
added
S-waiting-on-bors
and removed
S-waiting-on-team
labels
Aug 10, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Does this only work outside of loops? Or is it a breaking change? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
added a commit
that referenced
this pull request
Aug 11, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bors
Aug 11, 2017
Contributor
Approved by: aturon
Pushing 9868352 to master...
|
|
kennytm commentedAug 8, 2017
Fix #43162, fix #43727.