File tree 5 files changed +7
-0
lines changed
5 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0
2
2
3
+ check-private-items = true
4
+
3
5
disallowed-macros = [
4
6
# The `clippy::dbg_macro` lint only works with `std::dbg!`, thus we simulate
5
7
# it here, see: https://github.com/rust-lang/rust-clippy/issues/11303.
Original file line number Diff line number Diff line change 125
125
//! use core::{ptr::addr_of_mut, marker::PhantomPinned, pin::Pin};
126
126
//! # mod bindings {
127
127
//! # #![allow(non_camel_case_types)]
128
+ //! # #![allow(clippy::missing_safety_doc)]
128
129
//! # pub struct foo;
129
130
//! # pub unsafe fn init_foo(_ptr: *mut foo) {}
130
131
//! # pub unsafe fn destroy_foo(_ptr: *mut foo) {}
Original file line number Diff line number Diff line change 54
54
pub unsafe trait HasPinData {
55
55
type PinData : PinData ;
56
56
57
+ #[ allow( clippy:: missing_safety_doc) ]
57
58
unsafe fn __pin_data ( ) -> Self :: PinData ;
58
59
}
59
60
@@ -83,6 +84,7 @@ pub unsafe trait PinData: Copy {
83
84
pub unsafe trait HasInitData {
84
85
type InitData : InitData ;
85
86
87
+ #[ allow( clippy:: missing_safety_doc) ]
86
88
unsafe fn __init_data ( ) -> Self :: InitData ;
87
89
}
88
90
Original file line number Diff line number Diff line change @@ -989,6 +989,7 @@ macro_rules! __pin_data {
989
989
//
990
990
// The functions are `unsafe` to prevent accidentally calling them.
991
991
#[ allow( dead_code) ]
992
+ #[ allow( clippy:: missing_safety_doc) ]
992
993
impl <$( $impl_generics) * > $pin_data<$( $ty_generics) * >
993
994
where $( $whr) *
994
995
{
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ use core::{
14
14
use crate :: str:: RawFormatter ;
15
15
16
16
// Called from `vsprintf` with format specifier `%pA`.
17
+ #[ allow( clippy:: missing_safety_doc) ]
17
18
#[ no_mangle]
18
19
unsafe extern "C" fn rust_fmt_argument (
19
20
buf : * mut c_char ,
You can’t perform that action at this time.
0 commit comments