fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1 2//@aux-build:proc_macros.rs 3#![feature(custom_inner_attributes)] 4#![allow(unused)] 5#![warn(clippy::needless_pub_self)] 6#![no_main] 7#![rustfmt::skip] // rustfmt will remove `in`, understandable 8 // but very annoying for our purposes! 9 10#[macro_use] 11extern crate proc_macros; 12 13 fn a() {} 14 fn b() {} 15 16pub fn c() {} 17mod a { 18 pub(in super) fn d() {} 19 pub(super) fn e() {} 20 fn f() {} 21} 22 23external! { 24 pub(self) fn g() {} 25 pub(in self) fn h() {} 26} 27with_span! { 28 span 29 pub(self) fn i() {} 30 pub(in self) fn j() {} 31} 32 33// not really anything more to test. just a really simple lint overall