-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
More naming cleanup of syntax::ast types. #7903
Conversation
@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.
Rebased |
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 { ~[] } |
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.
Shouldn't this be CrateConfig
as above?
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.
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!
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.
Oh, and I just saw some of the above tests are x-failed
, so they slip through the compiler checks too.
Fix rust-lang#7903 Fixes rust-lang#7903 (cc: `@Arnavion)` changelog: none (bug is in same release) r? `@camsteffen`
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.