2023-07-27 06:40:22 -05:00
|
|
|
|
2023-07-27 08:23:04 -05:00
|
|
|
//@aux-build:proc_macros.rs
|
2023-06-16 10:51:47 -05:00
|
|
|
#![feature(custom_inner_attributes)]
|
|
|
|
#![allow(clippy::needless_pub_self, unused)]
|
|
|
|
#![warn(clippy::pub_without_shorthand)]
|
|
|
|
#![no_main]
|
|
|
|
#![rustfmt::skip] // rustfmt will remove `in`, understandable
|
|
|
|
// but very annoying for our purposes!
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate proc_macros;
|
|
|
|
|
|
|
|
pub(self) fn a() {}
|
|
|
|
pub(in self) fn b() {}
|
|
|
|
|
|
|
|
pub fn c() {}
|
|
|
|
mod a {
|
|
|
|
pub(in super) fn d() {}
|
|
|
|
pub(super) fn e() {}
|
|
|
|
pub(self) fn f() {}
|
|
|
|
pub(crate) fn k() {}
|
|
|
|
pub(in crate) fn m() {}
|
|
|
|
mod b {
|
|
|
|
pub(in crate::a) fn l() {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
external! {
|
|
|
|
pub(self) fn g() {}
|
|
|
|
pub(in self) fn h() {}
|
|
|
|
}
|
|
|
|
with_span! {
|
|
|
|
span
|
|
|
|
pub(self) fn i() {}
|
|
|
|
pub(in self) fn j() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
// not really anything more to test. just a really simple lint overall
|