Skip to content

More naming cleanup of syntax::ast types. #7903

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

Conversation

michaelwoerister
Copy link
Member

Continuation of #7826.

AST spanned refactoring, AST type renamings:

crate => Crate
local => Local
blk => Block
crate_num => CrateNum
crate_cfg => CrateConfig
field => Field

Also, Crate, Field and Local are not wrapped in spanned anymore.

@thestinger
Copy link
Contributor

@michaelwoerister: looks like this needs to be rebased already

…rate_cfg.

`crate => Crate`
`local => Local`
`blk => Block`
`crate_num => CrateNum`
`crate_cfg => CrateConfig`

Also, Crate and Local are not wrapped in spanned<T> anymore.
@michaelwoerister
Copy link
Member Author

Rebased :)

bors added a commit that referenced this pull request Jul 22, 2013
Continuation of #7826.

AST spanned<T> refactoring, AST type renamings:

`crate => Crate`
`local => Local`
`blk => Block`
`crate_num => CrateNum`
`crate_cfg => CrateConfig`
`field => Field`

Also, Crate, Field and Local are not wrapped in spanned<T> anymore.
@@ -33,7 +33,7 @@ trait fake_ext_ctxt {
type fake_session = parse::parse_sess;

impl fake_ext_ctxt for fake_session {
fn cfg() -> ast::crate_cfg { ~[] }
fn cfg() -> ast::Crate_cfg { ~[] }
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be CrateConfig as above?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it should :/
I always run make check before a PR or after a rebase, but I guess this does not run the full-deps tests, does it?

Thanks for pointing this out!

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, and I just saw some of the above tests are x-failed, so they slip through the compiler checks too.

@bors bors closed this Jul 22, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 4, 2021
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 4, 2021
Fix rust-lang#7903

Fixes rust-lang#7903 (cc: `@Arnavion)`

changelog: none (bug is in same release)

r? `@camsteffen`
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.

5 participants