Skip to content
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

Use Idents for fields in HIR #51072

Merged
merged 2 commits into from
May 26, 2018
Merged

Use Idents for fields in HIR #51072

merged 2 commits into from
May 26, 2018

Conversation

petrochenkov
Copy link
Contributor

Continuation of #49718, part of #49300

@rust-highfive
Copy link
Collaborator

r? @cramertj

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 26, 2018
@petrochenkov
Copy link
Contributor Author

r? @eddyb

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-3.9 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
Requirement already satisfied: PyYAML<=3.12,>=3.10 in /usr/lib/python2.7/dist-packages (from awscli)
Collecting botocore==1.10.28 (from awscli)
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading https://files.pythonhosted.org/packages/2e/91/f0870d4de8eb78897ce781f3ff22fc492bbb9849b5c91f26db20b125ef36/botocore-1.10.28-py2.py3-none-any.whl (4.2MB)
    0% |                                | 10kB 43.6MB/s eta 0:00:01
    0% |▏                               | 20kB 40.1MB/s eta 0:00:01
    0% |▎                               | 30kB 47.4MB/s eta 0:00:01
    0% |▎                               | 40kB 18.2MB/s eta 0:00:01
---
[00:33:38]    Compiling aho-corasick v0.6.4
[00:33:44]    Compiling tempdir v0.3.7
[00:34:15]    Compiling minifier v0.0.11
[00:34:17]    Compiling rustdoc v0.0.0 (file:///checkout/src/librustdoc)
[00:34:22] error[E0609]: no field `name` on type `&&rustc::ty::FieldDef`
[00:34:22]     --> librustdoc/clean/mod.rs:1094:75
[00:34:22]      |
[00:34:22] 1094 |                         cx.tcx.adt_def(did).all_fields().find(|item| item.name == item_name)
[00:34:22] 
[00:34:22] 
[00:34:22] error[E0609]: no field `name` on type `&&rustc::ty::FieldDef`
[00:34:22]     --> librustdoc/clean/mod.rs:1100:49
[00:34:22]      |
[00:34:22] 1100 |                               .find(|item| item.name == item_name)
[00:34:22] 
[00:34:22] error[E0609]: no field `name` on type `&rustc::ty::FieldDef`
[00:34:22]     --> librustdoc/clean/mod.rs:1106:47
[00:34:22]      |
[00:34:22]      |
[00:34:22] 1106 |                                          item.name))))
[00:34:22] 
[00:34:24] error[E0609]: no field `name` on type `&rustc::hir::StructField`
[00:34:24]     --> librustdoc/clean/mod.rs:2993:29
[00:34:24]      |
[00:34:24]      |
[00:34:24] 2993 |             name: Some(self.name).clean(cx),
[00:34:24] 
[00:34:24] error[E0609]: no field `name` on type `&rustc::ty::FieldDef`
[00:34:24]     --> librustdoc/clean/mod.rs:3008:29
[00:34:24]      |
[00:34:24]      |
[00:34:24] 3008 |             name: Some(self.name).clean(cx),
[00:34:24] 
[00:34:24] error[E0609]: no field `name` on type `&rustc::ty::FieldDef`
[00:34:24]     --> librustdoc/clean/mod.rs:3204:46
[00:34:24]      |
[00:34:24]      |
[00:34:24] 3204 |                             name: Some(field.name.clean(cx)),
[00:34:24] 
[00:34:24] 
[00:34:24] error[E0609]: no field `name` on type `&rustc::hir::FieldPat`
[00:34:24]     --> librustdoc/clean/mod.rs:3853:56
[00:34:24]      |
[00:34:24] 3853 |                                   format!("{}: {}", fp.name, name_from_pat(&*fp.pat)))
[00:34:24] 
own-linux-gnu/stage0-sysroot/lib
70344 ./obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib
70340 ./obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@eddyb
Copy link
Member

eddyb commented May 26, 2018

r=me with rustdoc fixed

@petrochenkov
Copy link
Contributor Author

@bors r=eddyb

@bors
Copy link
Contributor

bors commented May 26, 2018

📌 Commit 1e4269c has been approved by eddyb

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 26, 2018
@petrochenkov
Copy link
Contributor Author

petrochenkov commented May 26, 2018

@bors p=1
Conflict prone

@bors
Copy link
Contributor

bors commented May 26, 2018

⌛ Testing commit 1e4269c with merge 1e504d3...

bors added a commit that referenced this pull request May 26, 2018
Use `Ident`s for fields in HIR

Continuation of #49718, part of #49300
@bors
Copy link
Contributor

bors commented May 26, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: eddyb
Pushing 1e504d3 to master...

@bors bors merged commit 1e4269c into rust-lang:master May 26, 2018
bors added a commit that referenced this pull request Jun 11, 2018
Use `Ident`s in HIR and remove emulation of hygiene with gensyms

continuation of #51072, part of #49300

Not all `Name`s in HIR are replaced with `Ident`s, only those needed for hygiene or already having attached spans.
bors added a commit that referenced this pull request Jun 28, 2018
Use `Ident`s in HIR and remove emulation of hygiene with gensyms

continuation of #51072, part of #49300

Not all `Name`s in HIR are replaced with `Ident`s, only those needed for hygiene or already having attached spans.
@petrochenkov petrochenkov deleted the ifield branch June 5, 2019 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants