-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustc: Add Local
to the HIR map of parents
#43971
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
src/test/run-pass/issue-43910.rs
Outdated
@@ -0,0 +1,16 @@ | |||
// Copyright 2017cThe Rust Project Developers. See the COPYRIGHT |
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.
Needs to remove the "c".
[00:03:51] tidy error: /checkout/src/test/run-pass/issue-43910.rs: incorrect license
95ccdc4
to
a175573
Compare
The UI test for 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
a175573
to
4ba2df1
Compare
Fixed |
@bors r+ Thanks, Alex! |
📌 Commit 4ba2df1 has been approved by |
⌛ Testing commit 4ba2df1 with merge 1bcf6f6b6cc2b88ab79fcc054ef4a850b5ca170e... |
💔 Test failed - status-travis |
@bors retry
|
⌛ Testing commit 4ba2df1 with merge de3926901219c14d84062c9020c931c0ae8a9955... |
|
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
☀️ Test successful - status-appveyor, status-travis |
When walking parents for lints we want to be sure to hit
let
statements whichcan have attributes, so hook up these statements in the HIR map.
Closes #43910