-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Internal lints: usage_of_qualified_ty & ty_pass_by_reference #60317
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
The job Click to expand the log.
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 |
6f39b2c
to
cf1a63f
Compare
☔ The latest upstream changes (presumably #60329) made this pull request unmergeable. Please resolve the merge conflicts. |
needs a rebase, r=me with that @bors delegate+ |
✌️ @flip1995 can now approve this pull request |
cf1a63f
to
cf772ae
Compare
☔ The latest upstream changes (presumably #60351) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors p=1 super bitrotty apparently |
- USAGE_OF_QUALIFIED_TY - TY_PASS_BY_REFERENCE
cf772ae
to
6567853
Compare
6567853
to
2e5f0b3
Compare
📌 Commit 2e5f0b3 has been approved by |
☀️ Test successful - checks-travis, status-appveyor |
Rustup to rustc 1.36.0-nightly (c7fcbfb 2019-04-29) Updates to pass the lint introduced in rust-lang/rust#60317 r? @oli-obk @mikerite
Rustup to rustc 1.36.0-nightly (c7fcbfb 2019-04-29) Updates to pass the lint introduced in rust-lang/rust#60317 r? @oli-obk @mikerite
@@ -198,7 +198,7 @@ macro_rules! make_mir_visitor { | |||
} | |||
|
|||
fn visit_ty(&mut self, | |||
ty: & $($mutability)? Ty<'tcx>, | |||
ty: $(& $mutability)? Ty<'tcx>, |
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.
Wow, that's a neat trick! cc @nikomatsakis how did we not think of this?
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.
{visit,super}_{local,region,const}
(and maybe a few others?) should probably get the same treatment.
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.
heh, a good question.
Closes #59952
Implements internal lints:
USAGE_OF_QUALIFIED_TY
TY_PASS_BY_REFERENCE
r? @oli-obk