Skip to content

Conversation

@brson
Copy link
Contributor

@brson brson commented Mar 2, 2011

Graydon,

I've translated the #fmt syntax extension to rustc. It currently builds but doesn't pass tests. The AST it builds depends on vector addition and calls into std, neither of which work yet. Once those are completed I'm interested in fleshing this out and adding tests.

I'd particularly like you to review how I've interpreted the expr_ext AST node, to which I added a new expression parameter. I'm using it as expr_ext(path, argument_exprs, body_expr, expanded_expr, ann). The arguments and body parameters are used by the extension to generate the expanded expression, and only the expanded expression is folded and translated. The 'body' expression isn't used by #fmt.

@brson
Copy link
Contributor Author

brson commented Mar 2, 2011

I forgot, I also added a file pretty.rs to the frontend which does a very small amount of AST pretty printing that I've been using in lieu of working unit tests. I can remove that from the branch if you like.

@brson
Copy link
Contributor Author

brson commented Mar 2, 2011

I just noticed that I accidentally turned TRACK_ALLOCATIONS on. I'll fix that tonight.

keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this pull request Dec 12, 2017
unix: Add openpty(3) and forkpty(3) for non-Apple platforms

The functions were added for Apple in rust-lang#202. Adding them to other
platforms was pending an amendment to RFC 1291 to expand the scope of
libc to include libutil. The amendment was merged as
  rust-lang/rfcs#1529
rchaser53 pushed a commit to rchaser53/rust that referenced this pull request Jan 19, 2019
gi-dellav pushed a commit to gi-dellav/rust that referenced this pull request Dec 9, 2021
…ig-file

Upgrade to GitHub-native Dependabot
workingjubilee pushed a commit to workingjubilee/rustc that referenced this pull request Jul 20, 2022
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this pull request Mar 7, 2023
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Mar 7, 2023
carolynzech pushed a commit to carolynzech/rust that referenced this pull request Feb 19, 2025
This is an automated PR to update Kani metrics.

The metrics have been updated by running `./scripts/run-kani.sh --run
metrics`.

Co-authored-by: github-merge-queue <[email protected]>
noscripter pushed a commit to noscripter/rust that referenced this pull request Sep 8, 2025
This pull request was closed.
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.

1 participant