Skip to content

Revert using the ? syntax for try! in libsyntax #34311

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
erickt opened this issue Jun 16, 2016 · 4 comments
Closed

Revert using the ? syntax for try! in libsyntax #34311

erickt opened this issue Jun 16, 2016 · 4 comments
Labels
A-syntaxext Area: Syntax extensions

Comments

@erickt
Copy link
Contributor

erickt commented Jun 16, 2016

The use of ...?instead of try!(...) in libsyntax makes extracting libsyntax into syntex quite painful since it's not stable yet. This makes backports take a much longer time and causes a lot of problems for the syntex dependencies. Even if it was, it'd take a few release cycles until syntex would be able to use it. Since it's not stable and that this feature is just syntax sugar, it would be most helpful if we could remove it.

@erickt erickt added the A-syntaxext Area: Syntax extensions label Jun 16, 2016
erickt added a commit to erickt/rust that referenced this issue Jun 16, 2016
The use of ...?instead of try!(...) in libsyntax makes
extracting libsyntax into syntex quite painful since it's
not stable yet. This makes backports take a much longer time
and causes a lot of problems for the syntex dependencies. Even
if it was, it'd take a few release cycles until syntex would
be able to use it. Since it's not stable and that this feature
is just syntax sugar, it would be most helpful if we could remove
it.

cc rust-lang#34311
Manishearth added a commit to Manishearth/rust that referenced this issue Jun 16, 2016
Revert using ? for try! in the libsyntax pretty printer

The use of ...?instead of try!(...) in libsyntax makes extracting libsyntax into syntex quite painful since it's not stable yet. This makes backports take a much longer time and causes a lot of problems for the syntex dependencies. Even if it was, it'd take a few release cycles until syntex would be able to use it. Since it's not stable and that this feature is just syntax sugar, it would be most helpful if we could remove it.

cc rust-lang#34311
@tbu-
Copy link
Contributor

tbu- commented Jun 23, 2016

Looks fixed?

@pnkfelix
Copy link
Member

Until this line is gone, I'd say this should stay open:

https://github.com/rust-lang/rust/blob/master/src/libsyntax/lib.rs#L35

#![feature(question_mark)]

@frewsxcv
Copy link
Member

Update: it's now:

#![cfg_attr(stage0, feature(question_mark))]

@Mark-Simulacrum
Copy link
Member

Closing, I am fairly certain that question_mark is stable now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-syntaxext Area: Syntax extensions
Projects
None yet
Development

No branches or pull requests

5 participants