mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-27 01:11:38 +00:00
deny(missing_docs) at crate root
To help flag missing documentation on publicly accessible APIs.
This commit is contained in:
parent
9b54630472
commit
cb07a846cd
@ -213,6 +213,7 @@ pub struct StackString {
|
||||
space: MaybeUninit<[usize; 8]>,
|
||||
}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
impl StackString {
|
||||
pub fn new() -> Self {
|
||||
StackString {
|
||||
|
@ -16,6 +16,7 @@ impl Display for Exception {
|
||||
impl std::error::Error for Exception {}
|
||||
|
||||
impl Exception {
|
||||
#[allow(missing_docs)]
|
||||
pub fn what(&self) -> &str {
|
||||
&self.what
|
||||
}
|
||||
|
@ -167,6 +167,7 @@ pub mod kind {
|
||||
/// indirection.
|
||||
pub enum Trivial {}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
pub trait Kind: private::Sealed {}
|
||||
impl Kind for Opaque {}
|
||||
impl Kind for Trivial {}
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use core::ffi::c_void;
|
||||
|
||||
#[repr(C)]
|
||||
|
@ -365,7 +365,7 @@
|
||||
|
||||
#![no_std]
|
||||
#![doc(html_root_url = "https://docs.rs/cxx/1.0.45")]
|
||||
#![deny(improper_ctypes, improper_ctypes_definitions)]
|
||||
#![deny(improper_ctypes, improper_ctypes_definitions, missing_docs)]
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(
|
||||
clippy::cognitive_complexity,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use core::marker::{PhantomData, PhantomPinned};
|
||||
use core::mem;
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use crate::exception::Exception;
|
||||
use alloc::boxed::Box;
|
||||
use alloc::string::{String, ToString};
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use core::mem::{self, MaybeUninit};
|
||||
use core::ptr::{self, NonNull};
|
||||
use core::slice;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use core::mem::{self, MaybeUninit};
|
||||
use core::ptr::NonNull;
|
||||
use core::str;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use alloc::string::String;
|
||||
use core::mem::{self, MaybeUninit};
|
||||
use core::ptr;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
pub unsafe trait RustType {}
|
||||
pub unsafe trait ImplBox {}
|
||||
pub unsafe trait ImplVec {}
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use crate::rust_string::RustString;
|
||||
use alloc::string::String;
|
||||
use alloc::vec::Vec;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use std::io::{self, Write};
|
||||
use std::panic::{self, AssertUnwindSafe};
|
||||
use std::process;
|
||||
|
@ -93,6 +93,7 @@ where
|
||||
|
||||
// Methods are private; not intended to be implemented outside of cxxbridge
|
||||
// codebase.
|
||||
#[allow(missing_docs)]
|
||||
pub unsafe trait WeakPtrTarget {
|
||||
#[doc(hidden)]
|
||||
fn __typename(f: &mut fmt::Formatter) -> fmt::Result;
|
||||
|
Loading…
Reference in New Issue
Block a user