-
Notifications
You must be signed in to change notification settings - Fork 13k
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_resolve
cleanups
#125105
rustc_resolve
cleanups
#125105
Changes from all commits
41aea27
d1f5bee
7cbb736
5134a04
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ use rustc_middle::middle::privacy::Level; | |
use rustc_middle::middle::privacy::{EffectiveVisibilities, EffectiveVisibility}; | ||
use rustc_middle::ty::Visibility; | ||
use std::mem; | ||
use tracing::info; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are all of these additions from tracing in different files needed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. The |
||
|
||
#[derive(Clone, Copy)] | ||
enum ParentId<'a> { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
error: 4th rule of macro `num` is never used | ||
error: rule #4 of macro `num` is never used | ||
--> $DIR/unused-macro-rules.rs:10:5 | ||
| | ||
LL | (four) => { 4 }; | ||
|
@@ -10,13 +10,13 @@ note: the lint level is defined here | |
LL | #![deny(unused_macro_rules)] | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: 2nd rule of macro `num` is never used | ||
error: rule #2 of macro `num` is never used | ||
--> $DIR/unused-macro-rules.rs:8:5 | ||
| | ||
LL | (two) => { 2 }; | ||
| ^^^^^ | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Future note: we should emit a single error for all of the unused rules in a single macro. |
||
error: 3rd rule of macro `num_rec` is never used | ||
error: rule #3 of macro `num_rec` is never used | ||
--> $DIR/unused-macro-rules.rs:30:5 | ||
| | ||
LL | (three) => { | ||
|
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.
this conflicts with #125042, but I think that one can use just the number too
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.
In #125042, the function is copied, not referenced (put aside whether it is good or not).