-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Add type_ascribe!
macro as placeholder syntax for type ascription
#104614
Conversation
This macro serves as a placeholder for future type ascription syntax to make sure that the semantic implementation keeps working.
Use it in all UI tests that are about the semantics and not the syntax of type ascription.
r? @TaKO8Ki (rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
Seems reasonable. We may, at some future time, want to drop this from the compiler entirely (if we decide we're never going to have syntax for it), but in the meantime this decouples the parser changes from the rest. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution. I left some comments. r=me after they are addressed
Co-authored-by: Takayuki Maeda <[email protected]>
@bors r=TaKO8Ki |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#104614 (Add `type_ascribe!` macro as placeholder syntax for type ascription) - rust-lang#105126 (Make `VecDeque::new_in` unstably const) - rust-lang#105132 (Migrate summary toggle filter to CSS variable) - rust-lang#105136 (clarify comment on Deref promotion) - rust-lang#105137 (Add tracking issue number for `file_create_new` feature) - rust-lang#105143 (rustdoc: use simpler CSS for setting the font on scraped examples) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This makes it still possible to test the internal semantics of type ascription even once the
:
-syntax is removed from the parser. The macro now gets used in a bunch of UI tests that test the semantics and not syntax of type ascription.I might have forgotten a few tests but this should hopefully be most of them. The remaining ones will certainly be found once type ascription is removed from the parser altogether.
Part of #101728