add last std diagnostic items for clippy
This commit is contained in:
parent
ce36a966c7
commit
a72402a0f9
5 changed files with 14 additions and 0 deletions
|
@ -192,6 +192,7 @@ symbols! {
|
||||||
Capture,
|
Capture,
|
||||||
Cell,
|
Cell,
|
||||||
Center,
|
Center,
|
||||||
|
Child,
|
||||||
Cleanup,
|
Cleanup,
|
||||||
Clone,
|
Clone,
|
||||||
CoercePointee,
|
CoercePointee,
|
||||||
|
@ -336,6 +337,7 @@ symbols! {
|
||||||
SliceIter,
|
SliceIter,
|
||||||
Some,
|
Some,
|
||||||
SpanCtxt,
|
SpanCtxt,
|
||||||
|
Stdin,
|
||||||
String,
|
String,
|
||||||
StructuralPartialEq,
|
StructuralPartialEq,
|
||||||
SubdiagMessage,
|
SubdiagMessage,
|
||||||
|
@ -599,6 +601,9 @@ symbols! {
|
||||||
cfi,
|
cfi,
|
||||||
cfi_encoding,
|
cfi_encoding,
|
||||||
char,
|
char,
|
||||||
|
char_is_ascii,
|
||||||
|
child_id,
|
||||||
|
child_kill,
|
||||||
client,
|
client,
|
||||||
clippy,
|
clippy,
|
||||||
clobber_abi,
|
clobber_abi,
|
||||||
|
@ -1468,6 +1473,7 @@ symbols! {
|
||||||
panic_2015,
|
panic_2015,
|
||||||
panic_2021,
|
panic_2021,
|
||||||
panic_abort,
|
panic_abort,
|
||||||
|
panic_any,
|
||||||
panic_bounds_check,
|
panic_bounds_check,
|
||||||
panic_cannot_unwind,
|
panic_cannot_unwind,
|
||||||
panic_const_add_overflow,
|
panic_const_add_overflow,
|
||||||
|
@ -1573,6 +1579,7 @@ symbols! {
|
||||||
proc_macro_mod,
|
proc_macro_mod,
|
||||||
proc_macro_non_items,
|
proc_macro_non_items,
|
||||||
proc_macro_path_invoc,
|
proc_macro_path_invoc,
|
||||||
|
process_abort,
|
||||||
process_exit,
|
process_exit,
|
||||||
profiler_builtins,
|
profiler_builtins,
|
||||||
profiler_runtime,
|
profiler_runtime,
|
||||||
|
|
|
@ -1168,6 +1168,7 @@ impl char {
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||||
#[rustc_const_stable(feature = "const_char_is_ascii", since = "1.32.0")]
|
#[rustc_const_stable(feature = "const_char_is_ascii", since = "1.32.0")]
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "char_is_ascii")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub const fn is_ascii(&self) -> bool {
|
pub const fn is_ascii(&self) -> bool {
|
||||||
*self as u32 <= 0x7F
|
*self as u32 <= 0x7F
|
||||||
|
|
|
@ -239,6 +239,7 @@ fn handle_ebadf_lazy<T>(r: io::Result<T>, default: impl FnOnce() -> T) -> io::Re
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "Stdin")]
|
||||||
pub struct Stdin {
|
pub struct Stdin {
|
||||||
inner: &'static Mutex<BufReader<StdinRaw>>,
|
inner: &'static Mutex<BufReader<StdinRaw>>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,6 +255,7 @@ pub use crate::panicking::{set_hook, take_hook};
|
||||||
#[stable(feature = "panic_any", since = "1.51.0")]
|
#[stable(feature = "panic_any", since = "1.51.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "panic_any")]
|
||||||
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
|
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
|
||||||
crate::panicking::begin_panic(msg);
|
crate::panicking::begin_panic(msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -217,6 +217,7 @@ use crate::{fmt, fs, str};
|
||||||
///
|
///
|
||||||
/// [`wait`]: Child::wait
|
/// [`wait`]: Child::wait
|
||||||
#[stable(feature = "process", since = "1.0.0")]
|
#[stable(feature = "process", since = "1.0.0")]
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "Child")]
|
||||||
pub struct Child {
|
pub struct Child {
|
||||||
pub(crate) handle: imp::Process,
|
pub(crate) handle: imp::Process,
|
||||||
|
|
||||||
|
@ -2115,6 +2116,7 @@ impl Child {
|
||||||
/// [`ErrorKind`]: io::ErrorKind
|
/// [`ErrorKind`]: io::ErrorKind
|
||||||
/// [`InvalidInput`]: io::ErrorKind::InvalidInput
|
/// [`InvalidInput`]: io::ErrorKind::InvalidInput
|
||||||
#[stable(feature = "process", since = "1.0.0")]
|
#[stable(feature = "process", since = "1.0.0")]
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "child_kill")]
|
||||||
pub fn kill(&mut self) -> io::Result<()> {
|
pub fn kill(&mut self) -> io::Result<()> {
|
||||||
self.handle.kill()
|
self.handle.kill()
|
||||||
}
|
}
|
||||||
|
@ -2135,6 +2137,7 @@ impl Child {
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[stable(feature = "process_id", since = "1.3.0")]
|
#[stable(feature = "process_id", since = "1.3.0")]
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "child_id")]
|
||||||
pub fn id(&self) -> u32 {
|
pub fn id(&self) -> u32 {
|
||||||
self.handle.id()
|
self.handle.id()
|
||||||
}
|
}
|
||||||
|
@ -2375,6 +2378,7 @@ pub fn exit(code: i32) -> ! {
|
||||||
/// [panic hook]: crate::panic::set_hook
|
/// [panic hook]: crate::panic::set_hook
|
||||||
#[stable(feature = "process_abort", since = "1.17.0")]
|
#[stable(feature = "process_abort", since = "1.17.0")]
|
||||||
#[cold]
|
#[cold]
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "process_abort")]
|
||||||
pub fn abort() -> ! {
|
pub fn abort() -> ! {
|
||||||
crate::sys::abort_internal();
|
crate::sys::abort_internal();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue