Home
last modified time | relevance | path

Searched +full:async +full:- +full:io (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/third_party/rust/rust/src/tools/clippy/tests/ui/
Dunused_io_amount.rs5 use futures::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt};
6 use std::io::{self, Read};
8 fn question_mark<T: io::Read + io::Write>(s: &mut T) -> io::Result<()> { in question_mark()
15 fn unwrap<T: io::Read + io::Write>(s: &mut T) { in unwrap()
21 fn vectored<T: io::Read + io::Write>(s: &mut T) -> io::Result<()> { in vectored()
22 s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?; in vectored()
23 s.write_vectored(&[io::IoSlice::new(&[])])?; in vectored()
27 fn ok(file: &str) -> Option<()> { in ok()
36 fn or_else(file: &str) -> io::Result<()> { in or_else()
48 fn or(file: &str) -> Result<(), Error> { in or()
[all …]
Ddoc_errors.rs5 use std::io;
7 pub fn pub_fn_missing_errors_header() -> Result<(), ()> { in pub_fn_missing_errors_header()
11 pub async fn async_pub_fn_missing_errors_header() -> Result<(), ()> { in async_pub_fn_missing_errors_header()
16 pub fn pub_fn_returning_io_result() -> io::Result<()> { in pub_fn_returning_io_result()
21 pub async fn async_pub_fn_returning_io_result() -> io::Result<()> { in async_pub_fn_returning_io_result()
27 pub fn pub_fn_with_errors_header() -> Result<(), ()> { in pub_fn_with_errors_header()
33 pub async fn async_pub_fn_with_errors_header() -> Result<(), ()> { in async_pub_fn_with_errors_header()
38 fn priv_fn_missing_errors_header() -> Result<(), ()> { in priv_fn_missing_errors_header()
43 async fn async_priv_fn_missing_errors_header() -> Result<(), ()> { in async_priv_fn_missing_errors_header()
51 pub fn pub_method_missing_errors_header() -> Result<(), ()> { in pub_method_missing_errors_header()
[all …]
/third_party/rust/rust/tests/ui/async-await/
Dasync-trait-fn.stderr1 error[E0706]: functions in traits cannot be declared `async`
2 --> $DIR/async-trait-fn.rs:4:5
4 LL | async fn foo() {}
5 | -----^^^^^^^^^
7 | `async` because of this
9 = note: `async` trait functions are not currently supported
10 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
11 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
14 error[E0706]: functions in traits cannot be declared `async`
15 --> $DIR/async-trait-fn.rs:5:5
[all …]
Dasync-trait-fn.next.stderr1 error[E0706]: functions in traits cannot be declared `async`
2 --> $DIR/async-trait-fn.rs:6:5
4 LL | async fn foo() {}
5 | -----^^^^^^^^^
7 | `async` because of this
9 = note: `async` trait functions are not currently supported
10 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
11 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
14 error[E0706]: functions in traits cannot be declared `async`
15 --> $DIR/async-trait-fn.rs:7:5
[all …]
Dasync-trait-fn.current.stderr1 error[E0706]: functions in traits cannot be declared `async`
2 --> $DIR/async-trait-fn.rs:6:5
4 LL | async fn foo() {}
5 | -----^^^^^^^^^
7 | `async` because of this
9 = note: `async` trait functions are not currently supported
10 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
11 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
14 error[E0706]: functions in traits cannot be declared `async`
15 --> $DIR/async-trait-fn.rs:7:5
[all …]
Dfeature-gate-async_fn_in_trait.stderr1 error[E0706]: functions in traits cannot be declared `async`
2 --> $DIR/feature-gate-async_fn_in_trait.rs:8:5
4 LL | async fn foo();
5 | -----^^^^^^^^^^
7 | `async` because of this
9 = note: `async` trait functions are not currently supported
10 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
11 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
14 error[E0706]: functions in traits cannot be declared `async`
15 --> $DIR/feature-gate-async_fn_in_trait.rs:14:5
[all …]
Dmutually-recursive-async-impl-trait-type.drop_tracking_mir.stderr1 error[E0733]: recursion in an `async fn` requires boxing
2 --> $DIR/mutually-recursive-async-impl-trait-type.rs:9:18
4 LL | async fn rec_1() {
5 | ^ recursive `async fn`
7 = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
8 = note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
10 error[E0733]: recursion in an `async fn` requires boxing
11 --> $DIR/mutually-recursive-async-impl-trait-type.rs:13:18
13 LL | async fn rec_2() {
14 | ^ recursive `async fn`
[all …]
Dmutually-recursive-async-impl-trait-type.drop_tracking.stderr1 error[E0733]: recursion in an `async fn` requires boxing
2 --> $DIR/mutually-recursive-async-impl-trait-type.rs:9:18
4 LL | async fn rec_1() {
5 | ^ recursive `async fn`
7 = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
8 = note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
10 error[E0733]: recursion in an `async fn` requires boxing
11 --> $DIR/mutually-recursive-async-impl-trait-type.rs:13:18
13 LL | async fn rec_2() {
14 | ^ recursive `async fn`
[all …]
Dmutually-recursive-async-impl-trait-type.no_drop_tracking.stderr1 error[E0733]: recursion in an `async fn` requires boxing
2 --> $DIR/mutually-recursive-async-impl-trait-type.rs:9:18
4 LL | async fn rec_1() {
5 | ^ recursive `async fn`
7 = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
8 = note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
10 error[E0733]: recursion in an `async fn` requires boxing
11 --> $DIR/mutually-recursive-async-impl-trait-type.rs:13:18
13 LL | async fn rec_2() {
14 | ^ recursive `async fn`
[all …]
Dunnecessary-await.rs3 async fn foo () { } in foo()
4 fn bar() -> impl std::future::Future { async {} } in bar()
7 async fn baz() -> std::io::Result<()> { in baz()
11 std::io::Result::Ok(()) in baz()
27 async fn with_macros() { in with_macros()
Drecursive-async-impl-trait-type.drop_tracking_mir.stderr1 error[E0733]: recursion in an `async fn` requires boxing
2 --> $DIR/recursive-async-impl-trait-type.rs:8:40
4 LL | async fn recursive_async_function() -> () {
5 | ^^ recursive `async fn`
7 = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
8 = note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
12 For more information about this error, try `rustc --explain E0733`.
Drecursive-async-impl-trait-type.drop_tracking.stderr1 error[E0733]: recursion in an `async fn` requires boxing
2 --> $DIR/recursive-async-impl-trait-type.rs:8:40
4 LL | async fn recursive_async_function() -> () {
5 | ^^ recursive `async fn`
7 = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
8 = note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
12 For more information about this error, try `rustc --explain E0733`.
Drecursive-async-impl-trait-type.no_drop_tracking.stderr1 error[E0733]: recursion in an `async fn` requires boxing
2 --> $DIR/recursive-async-impl-trait-type.rs:8:40
4 LL | async fn recursive_async_function() -> () {
5 | ^^ recursive `async fn`
7 = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
8 = note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
12 For more information about this error, try `rustc --explain E0733`.
/third_party/rust/rust/tests/ui/parser/
Dfn-header-semantic-fail.stderr1 error: functions cannot be both `const` and `async`
2 --> $DIR/fn-header-semantic-fail.rs:12:5
4 LL | const async unsafe extern "C" fn ff5() {}
5 | ^^^^^-^^^^^------------------------------
7 | | `async` because of this
11 --> $DIR/fn-header-semantic-fail.rs:18:9
17 --> $DIR/fn-header-semantic-fail.rs:20:9
19 LL | const async unsafe extern "C" fn ft5();
22 error: functions cannot be both `const` and `async`
23 --> $DIR/fn-header-semantic-fail.rs:20:9
[all …]
/third_party/rust/rust/compiler/rustc_error_codes/src/error_codes/
DE0706.md1 `async fn`s are not yet supported in traits in Rust.
8 async fn foo() {}
9 async fn bar(&self) {}
13 `async fn`s return an `impl Future`, making the following two examples
16 ```edition2018,ignore (example-of-desugaring-equivalence)
17 async fn foo() -> User {
20 // The async fn above gets desugared as follows:
21 fn foo(&self) -> impl Future<Output = User> + '_ {
27 issues][async-is-hard]. One of them is returning `impl Trait` in traits is not
30 ```edition2018,ignore (example-of-desugaring-equivalence)
[all …]
/third_party/rust/rust/tests/ui/resolve/
Dissue-70736-async-fn-no-body-def-collector.stderr2 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:3:1
4 LL | async fn free();
5 | ^^^^^^^^^^^^^^^-
10 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:7:5
12 LL | async fn inherent();
13 | ^^^^^^^^^^^^^^^^^^^-
18 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5
20 LL | async fn associated();
21 | ^^^^^^^^^^^^^^^^^^^^^-
25 error[E0706]: functions in traits cannot be declared `async`
[all …]
/third_party/rust/rust/tests/ui/mir/
Dissue-106062.stderr2 --> $DIR/issue-106062.rs:15:64
4 LL | async fn connection_handler(handler: impl Sized) -> Result<Ok, std::io::Error> {
9 LL | async fn connection_handler(handler: impl Sized) -> Result<core::result::Result, std::io::…
11 LL | async fn connection_handler(handler: impl Sized) -> Result<std::result::Result, std::io::E…
16 For more information about this error, try `rustc --explain E0573`.
/third_party/ltp/lib/
Dtlibio.c21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
38 * program and only a io type field value would have to change to
39 * do different types of io. There is even a couple of functions that
45 * Functions declared in this module - see individual function code for
124 #if 0 /* disabled until it's needed -- roehrich 6/11/97 */
139 "async i/o using a loop to wait for a signal"},
140 {"b", LIO_IO_ASYNC | LIO_WAIT_SIGPAUSE, "async i/o using pause"},
142 "async i/o using recall/aio_suspend"},
160 "single stride async listio using recall"},
162 "single stride async listio using pause"},
[all …]
/third_party/ltp/include/old/
Dtlibio.h21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
36 #define LIO_IO_ALISTIO 00010 /* single stride async listio */
37 #define LIO_IO_SYNCV 00020 /* single-buffer readv/writev */
41 #define LIO_IO_ATYPES 00077 /* all io types */
42 #define LIO_IO_TYPES 00061 /* all io types, non-async */
45 #define LIO_IO_TYPES 00061 /* all io types */
46 #define LIO_IO_ATYPES 00077 /* all io types */
49 #define LIO_IO_TYPES 00021 /* all io types except pread/pwrite */
52 #define LIO_IO_TYPES 00017 /* all io types */
59 #define LIO_WAIT_NONE 00010000 /* return asap -- use with care */
[all …]
/third_party/rust/rust/tests/ui/suggestions/
Dissue-79843-impl-trait-with-missing-bounds-on-async-fn.stderr2 --> $DIR/issue-79843-impl-trait-with-missing-bounds-on-async-fn.rs:14:20
5 | -------------- ^^^^ `<impl Foo as Foo>::Bar` cannot be sent between threads safely
11 --> $DIR/issue-79843-impl-trait-with-missing-bounds-on-async-fn.rs:30:22
17 LL | async fn run<F: Foo>(_: &(), foo: F) -> std::io::Result<()> where <F as Foo>::Bar: Send {
21 --> $DIR/issue-79843-impl-trait-with-missing-bounds-on-async-fn.rs:24:20
24 | -------------- ^^^^ `<impl Foo as Foo>::Bar` cannot be sent between threads safely
30 --> $DIR/issue-79843-impl-trait-with-missing-bounds-on-async-fn.rs:30:22
36 LL | async fn run2<F: Foo>(_: &(), foo: F) -> std::io::Result<()> where <F as Foo>::Bar: Send {
41 For more information about this error, try `rustc --explain E0277`.
Dissue-79843-impl-trait-with-missing-bounds-on-async-fn.rs1 // Regression test: if we suggest replacing an `impl Trait` argument to an async
3 // signature should be well-formed.
9 fn bar(&self) -> Self::Bar; in bar()
12 async fn run(_: &(), foo: impl Foo) -> std::io::Result<()> { in run()
22 async fn run2< >(_: &(), foo: impl Foo) -> std::io::Result<()> { in run2()
/third_party/rust/crates/io-lifetimes/
DCargo.toml2 name = "io-lifetimes"
4 description = "A low-level I/O ownership and borrowing library"
6 license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
7 keywords = ["api", "io"]
8 categories = ["os", "rust-patterns"]
10 repository = "https://github.com/sunfishcode/io-lifetimes"
14 # io-lifetimes only depends on libc/windows-sys for the ability to close
16 # dependencies to add foreign-type impls for the traits. In the future,
21 fs-err = { version = "2.6.0", optional = true }
27 # The following dependencies allow io-lifetimes to define impls for various
[all …]
/third_party/liburing/test/
Dsync-cancel.c1 /* SPDX-License-Identifier: MIT */
18 static int test_sync_cancel_timeout(struct io_uring *ring, int async) in test_sync_cancel_timeout() argument
34 sqe->user_data = 0x89; in test_sync_cancel_timeout()
35 if (async) in test_sync_cancel_timeout()
36 sqe->flags |= IOSQE_ASYNC; in test_sync_cancel_timeout()
49 if (async) { in test_sync_cancel_timeout()
50 /* we expect -ETIME here, but can race and get 0 */ in test_sync_cancel_timeout()
51 if (ret != -ETIME && ret != 0) { in test_sync_cancel_timeout()
64 * a small gap where io-wq is done with the request and on in test_sync_cancel_timeout()
66 * yet. the request is canceled and won't be doing any IO in test_sync_cancel_timeout()
[all …]
/third_party/rust/crates/rustix/
DCargo.toml8 description = "Safe Rust bindings to POSIX/Unix/Linux/Winsock2-like syscalls"
10 license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
14 categories = ["os::unix-apis", "date-and-time", "filesystem", "network-programming"]
16 rust-version = "1.48"
18 [build-dependencies]
23 itoa = { version = "1.0.1", default-features = false, optional = true }
24 io-lifetimes = { version = "1.0.0", default-features = false, features = ["close"], optional = true…
26 # Special dependencies used in rustc-dep-of-std mode.
27 core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
28 alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" }
[all …]
/third_party/rust/rust/tests/ui/async-await/in-trait/
Dasync-recursive-generic.next.stderr1 error[E0733]: recursion in an `async fn` requires boxing
2 --> $DIR/async-recursive-generic.rs:13:48
4 LL | async fn foo_recursive(&self, n: usize) -> T {
5 | ^ recursive `async fn`
7 = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
8 = note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
12 For more information about this error, try `rustc --explain E0733`.

12345678910>>...13