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

rustc: Add Local to the HIR map of parents #43971

Merged
merged 2 commits into from
Aug 21, 2017

Conversation

alexcrichton
Copy link
Member

When walking parents for lints we want to be sure to hit let statements which
can have attributes, so hook up these statements in the HIR map.

Closes #43910

@rust-highfive
Copy link
Collaborator

r? @arielb1

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

@@ -0,0 +1,16 @@
// Copyright 2017cThe Rust Project Developers. See the COPYRIGHT
Copy link
Member

Choose a reason for hiding this comment

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

Needs to remove the "c".

[00:03:51] tidy error: /checkout/src/test/run-pass/issue-43910.rs: incorrect license

@kennytm
Copy link
Member

kennytm commented Aug 18, 2017

The UI test for issue-40402-ref-hints needs to be updated, but I'm not sure if this is intended (the old suggestion seems more idiomatic).

 error[E0507]: cannot move out of indexed content
   --> $DIR/issue-40402-1.rs:19:13
    |
 19 |     let e = f.v[0];
-   |             ^^^^^^
-   |             |
-   |             cannot move out of indexed content
-   |             help: consider using a reference instead: `&f.v[0]`
+   |         -   ^^^^^^ cannot move out of indexed content
+   |         |
+   |         hint: to prevent move, use `ref e` or `ref mut e`
 
 error: aborting due to previous error

When walking parents for lints we want to be sure to hit `let` statements which
can have attributes, so hook up these statements in the HIR map.

Closes rust-lang#43910
@alexcrichton
Copy link
Member Author

Fixed

@arielb1
Copy link
Contributor

arielb1 commented Aug 20, 2017

r? @michaelwoerister

@michaelwoerister
Copy link
Member

@bors r+

Thanks, Alex!

@bors
Copy link
Contributor

bors commented Aug 21, 2017

📌 Commit 4ba2df1 has been approved by michaelwoerister

@bors
Copy link
Contributor

bors commented Aug 21, 2017

⌛ Testing commit 4ba2df1 with merge 1bcf6f6b6cc2b88ab79fcc054ef4a850b5ca170e...

@bors
Copy link
Contributor

bors commented Aug 21, 2017

💔 Test failed - status-travis

@kennytm
Copy link
Member

kennytm commented Aug 21, 2017

@bors retry

x86_64-gnu-aux failed to clone xsv. Temporary GitHub issue, status report at:

[00:46:56] testing https://github.com/BurntSushi/xsv
[00:46:56] Initialized empty Git repository in /checkout/obj/build/ct/xsv/.git/
[00:46:56] fatal: Could not parse object 'a9a7163f2a2953cea426fee1216bec914fe2f56a'.
[00:46:56] From https://github.com/BurntSushi/xsv
[00:46:56]  * branch            master     -> FETCH_HEAD
[00:46:56] fatal: Could not parse object 'a9a7163f2a2953cea426fee1216bec914fe2f56a'.
[00:46:57] From https://github.com/BurntSushi/xsv
[00:46:57]  * branch            master     -> FETCH_HEAD
[00:46:57] fatal: Could not parse object 'a9a7163f2a2953cea426fee1216bec914fe2f56a'.
[00:50:31] fatal: unable to access 'https://github.com/BurntSushi/xsv/': Failed to connect to github.com port 443: Connection timed out
[00:50:31] thread 'main' panicked at 'assertion failed: status.success()', /checkout/src/tools/cargotest/main.rs:106:12
[00:50:31] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[00:50:31] 
[00:50:31] 
[00:50:31] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/cargotest" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "/checkout/obj/build/ct"
[00:50:31] expected success, got: exit code: 101
[00:50:31] 
[00:50:31] 
[00:50:31] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/cargotest src/tools/cargo src/tools/rls src/test/pretty src/test/run-pass/pretty src/test/run-fail/pretty src/test/run-pass-valgrind/pretty src/test/run-pass-fulldeps/pretty src/test/run-fail-fulldeps/pretty
[00:50:31] Build completed unsuccessfully in 0:03:39
[00:50:31] make: *** [check-aux] Error 1
[00:50:31] Makefile:56: recipe for target 'check-aux' failed

@bors
Copy link
Contributor

bors commented Aug 21, 2017

⌛ Testing commit 4ba2df1 with merge de3926901219c14d84062c9020c931c0ae8a9955...

@kennytm
Copy link
Member

kennytm commented Aug 21, 2017

@bors
Copy link
Contributor

bors commented Aug 21, 2017

⌛ Testing commit 4ba2df1 with merge 80be2f8...

bors added a commit that referenced this pull request Aug 21, 2017
rustc: Add `Local` to the HIR map of parents

When walking parents for lints we want to be sure to hit `let` statements which
can have attributes, so hook up these statements in the HIR map.

Closes #43910
@bors
Copy link
Contributor

bors commented Aug 21, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: michaelwoerister
Pushing 80be2f8 to master...

@bors bors merged commit 4ba2df1 into rust-lang:master Aug 21, 2017
@alexcrichton alexcrichton deleted the lint-statements branch August 22, 2017 19:44
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.

6 participants