1
Fork 0

Accept less invalid Rust in rustdoc

This commit is contained in:
Oli Scherer 2023-10-31 13:58:03 +00:00
parent 22b27120b9
commit 4512f211ae
35 changed files with 428 additions and 127 deletions

View file

@ -9,21 +9,21 @@ pub struct Error;
pub trait Write {
// @snapshot 'declaration' - '//*[@class="rust item-decl"]//code'
fn poll_write(
self: Option<String>,
self,
cx: &mut Option<String>,
buf: &mut [usize]
) -> Option<Result<usize, Error>>;
fn poll_flush(
self: Option<String>,
self,
cx: &mut Option<String>
) -> Option<Result<(), Error>>;
fn poll_close(
self: Option<String>,
self,
cx: &mut Option<String>,
) -> Option<Result<(), Error>>;
fn poll_write_vectored(
self: Option<String>,
self,
cx: &mut Option<String>,
bufs: &[usize]
) -> Option<Result<usize, Error>> {}