From 135d7ca38e87caf79ab23b9b792d2d97d8d2607d Mon Sep 17 00:00:00 2001 From: Hayden Stainsby Date: Tue, 14 Nov 2023 20:17:05 +0100 Subject: [PATCH] taskdump: fix taskdump cargo config example (#6150) The documentation for the `Handle::dump()` method includes a description of the Rust flags needed. However, the sample `.cargo/config.toml` file is incorrect. It gives the Rust flags as: ``` rustflags = ["--cfg tokio_unstable", "--cfg tokio_taskdump"] ``` However, each command line argument needs to be a separate element in the array: ``` rustflags = ["--cfg", "tokio_unstable", "--cfg", "tokio_taskdump"] ``` This change corrects that line. --- tokio/src/runtime/handle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/runtime/handle.rs b/tokio/src/runtime/handle.rs index 91be19ed834..4a833539f38 100644 --- a/tokio/src/runtime/handle.rs +++ b/tokio/src/runtime/handle.rs @@ -487,7 +487,7 @@ cfg_taskdump! { /// `.cargo/config.toml`: /// ```text /// [build] - /// rustflags = ["--cfg tokio_unstable", "--cfg tokio_taskdump"] + /// rustflags = ["--cfg", "tokio_unstable", "--cfg", "tokio_taskdump"] /// ``` /// /// [cargo-config]: