Add warn(unreachable_pub)
to rustc_expand
.
Plus a tiny bit of reformatting.
This commit is contained in:
parent
5fd503ab44
commit
df5fbf05a1
7 changed files with 22 additions and 21 deletions
|
@ -414,7 +414,7 @@ impl ToInternal<rustc_errors::Level> for Level {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct FreeFunctions;
|
||||
pub(crate) struct FreeFunctions;
|
||||
|
||||
pub(crate) struct Rustc<'a, 'b> {
|
||||
ecx: &'a mut ExtCtxt<'b>,
|
||||
|
@ -426,7 +426,7 @@ pub(crate) struct Rustc<'a, 'b> {
|
|||
}
|
||||
|
||||
impl<'a, 'b> Rustc<'a, 'b> {
|
||||
pub fn new(ecx: &'a mut ExtCtxt<'b>) -> Self {
|
||||
pub(crate) fn new(ecx: &'a mut ExtCtxt<'b>) -> Self {
|
||||
let expn_data = ecx.current_expansion.id.expn_data();
|
||||
Rustc {
|
||||
def_site: ecx.with_def_site_ctxt(expn_data.def_site),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue