[INFO] crate async-sse 3.0.0 is already in cache [INFO] documenting async-sse-3.0.0 against try#66dfc4e010913fbed0c4ea91fc2c010004b0f441 for pr-73566 [INFO] extracting crate async-sse 3.0.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate async-sse 3.0.0 on toolchain 66dfc4e010913fbed0c4ea91fc2c010004b0f441 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate async-sse 3.0.0 [INFO] finished tweaking crates.io crate async-sse 3.0.0 [INFO] tweaked toml for crates.io crate async-sse 3.0.0 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 589f95cad3333a2821a0229e0bdaf4fa2ac214ad050ab033de94d6f9145ac8bd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "589f95cad3333a2821a0229e0bdaf4fa2ac214ad050ab033de94d6f9145ac8bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "589f95cad3333a2821a0229e0bdaf4fa2ac214ad050ab033de94d6f9145ac8bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "589f95cad3333a2821a0229e0bdaf4fa2ac214ad050ab033de94d6f9145ac8bd", kill_on_drop: false }` [INFO] [stdout] 589f95cad3333a2821a0229e0bdaf4fa2ac214ad050ab033de94d6f9145ac8bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 91221df74b07cc34d23464ae1d4ed960b05e18b0dbaa08cb12d49bb1af329ce0 [INFO] running `Command { std: "docker" "start" "-a" "91221df74b07cc34d23464ae1d4ed960b05e18b0dbaa08cb12d49bb1af329ce0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.64 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Compiling wasm-bindgen v0.2.64 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Compiling pin-project-internal v0.4.22 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking subtle v2.2.3 [INFO] [stderr] Checking once_cell v1.4.0 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking adler32 v1.1.0 [INFO] [stderr] Checking gimli v0.21.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking subtle v1.0.0 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking tinyvec v0.3.3 [INFO] [stderr] Checking parking v1.0.3 [INFO] [stderr] Checking object v0.20.0 [INFO] [stderr] Checking cache-padded v1.1.0 [INFO] [stderr] Checking waker-fn v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Checking rustc-demangle v0.1.16 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking async-task v3.0.0 [INFO] [stderr] Checking send_wrapper v0.4.0 [INFO] [stderr] Checking fastrand v1.3.2 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking zeroize v1.1.0 [INFO] [stderr] Compiling anyhow v1.0.31 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking dtoa v0.4.6 [INFO] [stderr] Checking pin-project-lite v0.1.7 [INFO] [stderr] Checking data-encoding v2.2.1 [INFO] [stderr] Checking infer v0.1.7 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking concurrent-queue v1.1.1 [INFO] [stderr] Compiling standback v0.2.9 [INFO] [stderr] Compiling error-chain v0.12.2 [INFO] [stderr] Compiling time v0.2.16 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Checking block-cipher-trait v0.6.2 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking universal-hash v0.3.0 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking aead v0.2.0 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Checking aes-soft v0.3.3 [INFO] [stderr] Checking polyval v0.3.3 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking kv-log-macro v1.0.6 [INFO] [stderr] Checking hkdf v0.8.0 [INFO] [stderr] Checking aes v0.3.2 [INFO] [stderr] Checking ghash v0.2.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking aes-gcm v0.5.0 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking addr2line v0.12.2 [INFO] [stderr] Checking backtrace v0.3.49 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.64 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.64 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling async-attributes v1.1.1 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.64 [INFO] [stderr] Checking time-macros v0.1.0 [INFO] [stderr] Checking cookie v0.14.1 [INFO] [stderr] Checking pin-project v0.4.22 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking blocking v0.4.6 [INFO] [stderr] Checking smol v0.1.18 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking serde_qs v0.6.1 [INFO] [stderr] Checking js-sys v0.3.41 [INFO] [stderr] Checking web-sys v0.3.41 [INFO] [stderr] Checking gloo-timers v0.2.1 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Checking async-std v1.6.2 [INFO] [stderr] Checking http-types v2.2.1 [INFO] [stderr] Documenting async-sse v3.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | /// An SSE protocol decoder. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | #![warn(missing_docs, missing_doc_code_examples, unreachable_pub)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | /// The lines decoder. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | /// Have we processed the optional Byte Order Marker on the first line? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | / /// Was the last character of the previous line a \r? [INFO] [stdout] 33 | | /// Bytes that were fed to the decoder but do not yet form a message. [INFO] [stdout] | |_________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | /// The _last event ID_ buffer. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | /// The _event type_ buffer. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | /// The _data_ buffer. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | /// The sending side of the encoder. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:83:19 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct Sender(sync::Sender>); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/message.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | /// An SSE event with a data payload. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/message.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | / /// The ID of this event. [INFO] [stdout] 5 | | /// [INFO] [stdout] 6 | | /// See also the [Server-Sent Events spec](https://html.spec.whatwg.org/multipage/server-sent-events.html#concept-event-stream-last-event-id). [INFO] [stdout] | |__________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/message.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | /// The event name. Defaults to "message" if no event name is provided. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/message.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | /// The data for this event. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/event.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | /// The kind of SSE event sent. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/event.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | /// A retry frame, signaling a new retry duration must be used.. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/event.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | /// A data frame containing a message. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | /// Decode a new incoming SSE connection. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | /// Create a new SSE encoder. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/handshake.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | /// Upgrade an HTTP connection into an SSE session. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use async_std::io::BufRead as AsyncBufRead; [INFO] [stdout] 2 | | use async_std::stream::Stream; [INFO] [stdout] 3 | | use async_std::task::{self, Context, Poll}; [INFO] [stdout] 4 | | [INFO] [stdout] ... | [INFO] [stdout] 163 | | } [INFO] [stdout] 164 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | /// An SSE protocol decoder. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | /// Remove a leading space (code point 0x20) from a string slice. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 158 | / fn strip_leading_space_b(input: &[u8]) -> &[u8] { [INFO] [stdout] 159 | | if input.starts_with(&[b' ']) { [INFO] [stdout] 160 | | &input[1..] [INFO] [stdout] 161 | | } else { [INFO] [stdout] 162 | | input [INFO] [stdout] 163 | | } [INFO] [stdout] 164 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | / impl Decoder { [INFO] [stdout] 44 | | fn take_message(&mut self) -> Option { [INFO] [stdout] 45 | | if self.data.is_empty() { [INFO] [stdout] 46 | | // If the data buffer is an empty string, set the data buffer and [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] 62 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | / fn take_message(&mut self) -> Option { [INFO] [stdout] 45 | | if self.data.is_empty() { [INFO] [stdout] 46 | | // If the data buffer is an empty string, set the data buffer and [INFO] [stdout] 47 | | // the event type buffer to the empty string [and return.] [INFO] [stdout] ... | [INFO] [stdout] 60 | | } [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use async_std::sync; [INFO] [stdout] 2 | | use std::io; [INFO] [stdout] 3 | | use std::time::Duration; [INFO] [stdout] 4 | | [INFO] [stdout] ... | [INFO] [stdout] 130 | | } [INFO] [stdout] 131 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | / impl Sender { [INFO] [stdout] 97 | | /// Send a new message over SSE. [INFO] [stdout] 98 | | pub async fn send(&self, name: &str, data: &str, id: Option<&str>) { [INFO] [stdout] 99 | | // Write the event name [INFO] [stdout] ... | [INFO] [stdout] 124 | | } [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | /// Send a new message over SSE. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | /// Send a new "retry" message over SSE. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/event.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use crate::Message; [INFO] [stdout] 2 | | [INFO] [stdout] 3 | | use std::time::Duration; [INFO] [stdout] 4 | | [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/event.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / impl Event { [INFO] [stdout] 15 | | /// Create a new message. [INFO] [stdout] 16 | | pub(crate) fn new_msg(name: String, data: Vec, id: Option) -> Self { [INFO] [stdout] 17 | | Self::Message(Message { name, data, id }) [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/event.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | /// Create a new message. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/event.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | /// Create a new retry. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/event.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | /// Check whether this is a Retry variant. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/event.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | /// Check whether this is a `Message` variant. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/handshake.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / /// Upgrade an HTTP connection into an SSE session. [INFO] [stdout] 2 | | pub fn upgrade(headers: &mut impl AsMut) { [INFO] [stdout] 3 | | let headers = headers.as_mut(); [INFO] [stdout] 4 | | headers.insert("Cache-Control", "no-cache"); [INFO] [stdout] 5 | | headers.insert("Content-Type", "text/event-stream"); [INFO] [stdout] 6 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lines.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use std::mem; [INFO] [stdout] 2 | | use std::pin::Pin; [INFO] [stdout] 3 | | use std::str; [INFO] [stdout] 4 | | [INFO] [stdout] ... | [INFO] [stdout] 120 | | } [INFO] [stdout] 121 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lines.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | / fn read_line_internal( [INFO] [stdout] 71 | | reader: Pin<&mut R>, [INFO] [stdout] 72 | | cx: &mut Context<'_>, [INFO] [stdout] 73 | | buf: &mut String, [INFO] [stdout] ... | [INFO] [stdout] 91 | | } [INFO] [stdout] 92 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lines.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / fn read_until_internal( [INFO] [stdout] 95 | | mut reader: Pin<&mut R>, [INFO] [stdout] 96 | | cx: &mut Context<'_>, [INFO] [stdout] 97 | | buf: &mut Vec, [INFO] [stdout] ... | [INFO] [stdout] 120 | | } [INFO] [stdout] 121 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lines.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / impl Lines { [INFO] [stdout] 32 | | pub(crate) fn new(reader: R) -> Lines [INFO] [stdout] 33 | | where [INFO] [stdout] 34 | | R: BufRead + Unpin + Sized, [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lines.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | / pub(crate) fn new(reader: R) -> Lines [INFO] [stdout] 33 | | where [INFO] [stdout] 34 | | R: BufRead + Unpin + Sized, [INFO] [stdout] 35 | | { [INFO] [stdout] ... | [INFO] [stdout] 41 | | } [INFO] [stdout] 42 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/message.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / /// An SSE event with a data payload. [INFO] [stdout] 2 | | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] 3 | | pub struct Message { [INFO] [stdout] 4 | | /// The ID of this event. [INFO] [stdout] ... | [INFO] [stdout] 33 | | } [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/message.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / impl Message { [INFO] [stdout] 15 | | /// Get the message id. [INFO] [stdout] 16 | | pub fn id(&self) -> &Option { [INFO] [stdout] 17 | | &self.id [INFO] [stdout] ... | [INFO] [stdout] 33 | | } [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/message.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | /// Get the message id. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/message.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | /// Get the message event name. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/message.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | /// Access the event data. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/message.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | /// Convert the message into the data payload. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:127:1 [INFO] [stdout] | [INFO] [stdout] 127 | / impl Clone for Sender { [INFO] [stdout] 128 | | fn clone(&self) -> Self { [INFO] [stdout] 129 | | Self(self.0.clone()) [INFO] [stdout] 130 | | } [INFO] [stdout] 131 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | / fn clone(&self) -> Self { [INFO] [stdout] 129 | | Self(self.0.clone()) [INFO] [stdout] 130 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / impl AsyncRead for Encoder { [INFO] [stdout] 22 | | fn poll_read( [INFO] [stdout] 23 | | mut self: Pin<&mut Self>, [INFO] [stdout] 24 | | cx: &mut Context<'_>, [INFO] [stdout] ... | [INFO] [stdout] 57 | | } [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/encoder.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | / fn poll_read( [INFO] [stdout] 23 | | mut self: Pin<&mut Self>, [INFO] [stdout] 24 | | cx: &mut Context<'_>, [INFO] [stdout] 25 | | buf: &mut [u8], [INFO] [stdout] ... | [INFO] [stdout] 56 | | Poll::Ready(Ok(max)) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl Stream for Decoder { [INFO] [stdout] 65 | | type Item = http_types::Result; [INFO] [stdout] 66 | | [INFO] [stdout] 67 | | // This function uses two loops: one to get lines from the reader. [INFO] [stdout] ... | [INFO] [stdout] 146 | | } [INFO] [stdout] 147 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | type Item = http_types::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/decoder.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | / fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] 70 | | loop { [INFO] [stdout] 71 | | // Get the next line, if available. [INFO] [stdout] 72 | | let line = match task::ready!(Pin::new(&mut self.lines).poll_next(cx)) { [INFO] [stdout] ... | [INFO] [stdout] 145 | | } [INFO] [stdout] 146 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lines.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | / impl Stream for Lines { [INFO] [stdout] 46 | | type Item = io::Result; [INFO] [stdout] 47 | | [INFO] [stdout] 48 | | fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] ... | [INFO] [stdout] 67 | | } [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lines.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | type Item = io::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lines.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { [INFO] [stdout] 49 | | let this = self.project(); [INFO] [stdout] 50 | | let n = async_std::task::ready!(read_line_internal( [INFO] [stdout] 51 | | this.reader, [INFO] [stdout] ... | [INFO] [stdout] 66 | | Poll::Ready(Some(Ok(mem::replace(this.buf, String::new())))) [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 38s [INFO] running `Command { std: "docker" "inspect" "91221df74b07cc34d23464ae1d4ed960b05e18b0dbaa08cb12d49bb1af329ce0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91221df74b07cc34d23464ae1d4ed960b05e18b0dbaa08cb12d49bb1af329ce0", kill_on_drop: false }` [INFO] [stdout] 91221df74b07cc34d23464ae1d4ed960b05e18b0dbaa08cb12d49bb1af329ce0