[INFO] cloning repository https://github.com/andysalerno/async_crawl [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andysalerno/async_crawl" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandysalerno%2Fasync_crawl", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandysalerno%2Fasync_crawl'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 25feed37297cbfb56b0a6d5abd0230263dcba567 [INFO] documenting andysalerno/async_crawl against try#66dfc4e010913fbed0c4ea91fc2c010004b0f441 for pr-73566 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandysalerno%2Fasync_crawl" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andysalerno/async_crawl 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 git repo https://github.com/andysalerno/async_crawl [INFO] finished tweaking git repo https://github.com/andysalerno/async_crawl [INFO] tweaked toml for git repo https://github.com/andysalerno/async_crawl written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/andysalerno/async_crawl already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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] c0704ecd0536798ed5d21e3638895172c53399614a47076923a6ab1e232eeefb [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" "c0704ecd0536798ed5d21e3638895172c53399614a47076923a6ab1e232eeefb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0704ecd0536798ed5d21e3638895172c53399614a47076923a6ab1e232eeefb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0704ecd0536798ed5d21e3638895172c53399614a47076923a6ab1e232eeefb", kill_on_drop: false }` [INFO] [stdout] c0704ecd0536798ed5d21e3638895172c53399614a47076923a6ab1e232eeefb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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] [stdout] 0bd6afb40ad5e93e96596b718bb46a4f44ada39fa05c53d2e257dfe96a205626 [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" "0bd6afb40ad5e93e96596b718bb46a4f44ada39fa05c53d2e257dfe96a205626", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling syn v1.0.31 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Checking once_cell v1.4.0 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Checking async-task v3.0.0 [INFO] [stderr] Checking scoped-tls-hkt v0.1.2 [INFO] [stderr] Checking pin-project-lite v0.1.7 [INFO] [stderr] Checking event-listener v2.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Checking async-channel v1.1.0 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking kv-log-macro v1.0.6 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Compiling pin-project-internal v0.4.22 [INFO] [stderr] Compiling async-attributes v1.1.1 [INFO] [stderr] Checking pin-project v0.4.22 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking piper v0.1.3 [INFO] [stderr] Checking smol v0.1.12 [INFO] [stderr] Checking async-std v1.6.1 [INFO] [stderr] Documenting async_crawl v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | //! Crate-level documentation in progress. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | missing_doc_code_examples, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / fn main() { [INFO] [stdout] 23 | | println!("Hello, world!"); [INFO] [stdout] 24 | | [INFO] [stdout] 25 | | let thread_count: usize = std::env::args() [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/main.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | / fn run_scaled_threaded(thread_count: usize) { [INFO] [stdout] 43 | | use scaled_crawler_threaded::{DirWork, Worker}; [INFO] [stdout] 44 | | use std::sync::atomic::AtomicUsize; [INFO] [stdout] 45 | | use std::sync::Arc; [INFO] [stdout] ... | [INFO] [stdout] 65 | | handles.into_iter().for_each(|h| h.join().unwrap()); [INFO] [stdout] 66 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | / fn run_scaled_single_threaded() { [INFO] [stdout] 69 | | use scaled_crawler_single_thread::Worker; [INFO] [stdout] 70 | | let worker = Worker::new("/home/andy/".into()); [INFO] [stdout] 71 | | worker.run(); [INFO] [stdout] 72 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / fn run_scaled_async(task_count: usize) { [INFO] [stdout] 75 | | use async_std::sync::Arc; [INFO] [stdout] 76 | | use async_std::task; [INFO] [stdout] 77 | | use scaled_crawler_async::{DirWork, Worker}; [INFO] [stdout] ... | [INFO] [stdout] 102 | | }); [INFO] [stdout] 103 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | / fn run_recursive() { [INFO] [stdout] 106 | | use async_std::task; [INFO] [stdout] 107 | | use recursive_crawler_async::Crawler; [INFO] [stdout] 108 | | [INFO] [stdout] ... | [INFO] [stdout] 123 | | }); [INFO] [stdout] 124 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/recursive_crawler_async.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use async_channel::Sender; [INFO] [stdout] 2 | | use async_std::path::{Path, PathBuf}; [INFO] [stdout] 3 | | use async_std::stream::StreamExt; [INFO] [stdout] 4 | | use std::future::Future; [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/recursive_crawler_async.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub(crate) struct Crawler { [INFO] [stdout] 8 | | wait_pool: Sender>, [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/recursive_crawler_async.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | wait_pool: Sender>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/recursive_crawler_async.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / impl Crawler { [INFO] [stdout] 12 | | pub fn new(wait_pool: Sender>) -> Self { [INFO] [stdout] 13 | | Self { wait_pool } [INFO] [stdout] 14 | | } [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/recursive_crawler_async.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / pub fn new(wait_pool: Sender>) -> Self { [INFO] [stdout] 13 | | Self { wait_pool } [INFO] [stdout] 14 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/recursive_crawler_async.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / async fn handle_file(&self, path: &Path) { [INFO] [stdout] 17 | | // println!("{:?}", path); [INFO] [stdout] 18 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/recursive_crawler_async.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / pub fn handle_dir(self, path: PathBuf) -> Pin + Send>> { [INFO] [stdout] 21 | | let result = Box::pin(async move { [INFO] [stdout] 22 | | let is_sym = path [INFO] [stdout] 23 | | .symlink_metadata() [INFO] [stdout] ... | [INFO] [stdout] 57 | | return result; [INFO] [stdout] 58 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use async_std::fs::DirEntry; [INFO] [stdout] 2 | | use async_std::path::PathBuf; [INFO] [stdout] 3 | | use async_std::stream::StreamExt; [INFO] [stdout] 4 | | use async_std::sync::{Arc, Mutex}; [INFO] [stdout] ... | [INFO] [stdout] 126 | | } [INFO] [stdout] 127 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | / pub(crate) struct Worker { [INFO] [stdout] 49 | | stack: SharedStack, [INFO] [stdout] 50 | | idle_count: Arc, [INFO] [stdout] 51 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | stack: SharedStack, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | idle_count: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | / struct WorkerManager { [INFO] [stdout] 59 | | stack: SharedStack, [INFO] [stdout] 60 | | workers: Vec, [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | stack: SharedStack, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | workers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / pub(crate) enum DirWork { [INFO] [stdout] 9 | | Entry(DirEntry), [INFO] [stdout] 10 | | Path(PathBuf), [INFO] [stdout] 11 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Entry(DirEntry), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Path(PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / pub(crate) fn make_stack() -> SharedStack { [INFO] [stdout] 55 | | Arc::new(Mutex::new(vec![])) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) type SharedStack = Arc>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / impl DirWork { [INFO] [stdout] 14 | | fn to_path(self) -> async_std::path::PathBuf { [INFO] [stdout] 15 | | match self { [INFO] [stdout] 16 | | DirWork::Entry(e) => e.path(), [INFO] [stdout] ... | [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | / fn to_path(self) -> async_std::path::PathBuf { [INFO] [stdout] 15 | | match self { [INFO] [stdout] 16 | | DirWork::Entry(e) => e.path(), [INFO] [stdout] 17 | | DirWork::Path(path) => path, [INFO] [stdout] 18 | | } [INFO] [stdout] 19 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | / async fn is_dir(&self) -> bool { [INFO] [stdout] 22 | | match self { [INFO] [stdout] 23 | | DirWork::Entry(e) => e.metadata().await.unwrap().is_dir(), [INFO] [stdout] 24 | | DirWork::Path(path) => path.is_dir().await, [INFO] [stdout] 25 | | } [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / async fn is_symlink(&self) -> bool { [INFO] [stdout] 29 | | match self { [INFO] [stdout] 30 | | DirWork::Entry(e) => e.file_type().await.unwrap().is_symlink(), [INFO] [stdout] 31 | | DirWork::Path(path) => path [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] 38 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / fn path(self) -> PathBuf { [INFO] [stdout] 41 | | match self { [INFO] [stdout] 42 | | DirWork::Entry(e) => e.path(), [INFO] [stdout] 43 | | DirWork::Path(path) => path, [INFO] [stdout] 44 | | } [INFO] [stdout] 45 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl Worker { [INFO] [stdout] 65 | | pub fn new(stack: SharedStack, idle_count: Arc) -> Self { [INFO] [stdout] 66 | | Self { stack, idle_count } [INFO] [stdout] 67 | | } [INFO] [stdout] ... | [INFO] [stdout] 126 | | } [INFO] [stdout] 127 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | / pub fn new(stack: SharedStack, idle_count: Arc) -> Self { [INFO] [stdout] 66 | | Self { stack, idle_count } [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | / pub async fn run(self) { [INFO] [stdout] 70 | | let mut is_idle = false; [INFO] [stdout] 71 | | [INFO] [stdout] 72 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] 101 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | / async fn work_handler(work: DirWork) { [INFO] [stdout] 104 | | // println!("{}", work.to_path().display()); [INFO] [stdout] 105 | | // async_std::task::sleep(std::time::Duration::from_millis(100)).await; [INFO] [stdout] 106 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_async.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | / async fn run_one(&self, work: DirWork) { [INFO] [stdout] 109 | | let is_symlink = work.is_symlink().await; [INFO] [stdout] 110 | | [INFO] [stdout] 111 | | if is_symlink || !work.is_dir().await { [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] 126 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use std::fs::DirEntry; [INFO] [stdout] 2 | | use std::path::PathBuf; [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | pub(crate) enum DirWork { [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] 97 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / pub(crate) struct Worker { [INFO] [stdout] 48 | | stack: Vec, [INFO] [stdout] 49 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | stack: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / pub(crate) enum DirWork { [INFO] [stdout] 5 | | Entry(DirEntry), [INFO] [stdout] 6 | | Path(PathBuf), [INFO] [stdout] 7 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Entry(DirEntry), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Path(PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / impl DirWork { [INFO] [stdout] 10 | | fn to_path(self) -> std::path::PathBuf { [INFO] [stdout] 11 | | match self { [INFO] [stdout] 12 | | DirWork::Entry(e) => e.path(), [INFO] [stdout] ... | [INFO] [stdout] 43 | | } [INFO] [stdout] 44 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / fn to_path(self) -> std::path::PathBuf { [INFO] [stdout] 11 | | match self { [INFO] [stdout] 12 | | DirWork::Entry(e) => e.path(), [INFO] [stdout] 13 | | DirWork::Path(path) => path, [INFO] [stdout] 14 | | } [INFO] [stdout] 15 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / fn is_dir(&self) -> bool { [INFO] [stdout] 18 | | match self { [INFO] [stdout] 19 | | DirWork::Entry(e) => e.metadata().unwrap().is_dir(), [INFO] [stdout] 20 | | DirWork::Path(path) => path.is_dir(), [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / fn is_file(&self) -> bool { [INFO] [stdout] 25 | | match self { [INFO] [stdout] 26 | | DirWork::Entry(e) => e.metadata().unwrap().is_file(), [INFO] [stdout] 27 | | DirWork::Path(path) => path.is_file(), [INFO] [stdout] 28 | | } [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / fn is_symlink(&self) -> bool { [INFO] [stdout] 32 | | match self { [INFO] [stdout] 33 | | DirWork::Entry(e) => e.file_type().unwrap().is_symlink(), [INFO] [stdout] 34 | | DirWork::Path(path) => path.symlink_metadata().unwrap().file_type().is_symlink(), [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | / fn path(self) -> PathBuf { [INFO] [stdout] 39 | | match self { [INFO] [stdout] 40 | | DirWork::Entry(e) => e.path(), [INFO] [stdout] 41 | | DirWork::Path(path) => path, [INFO] [stdout] 42 | | } [INFO] [stdout] 43 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | / impl Worker { [INFO] [stdout] 53 | | pub fn new(path :PathBuf) -> Self { [INFO] [stdout] 54 | | let mut worker = Self::default(); [INFO] [stdout] 55 | | [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] 97 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / pub fn new(path :PathBuf) -> Self { [INFO] [stdout] 54 | | let mut worker = Self::default(); [INFO] [stdout] 55 | | [INFO] [stdout] 56 | | worker.stack = vec![DirWork::Path(path)]; [INFO] [stdout] 57 | | [INFO] [stdout] 58 | | worker [INFO] [stdout] 59 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | / pub fn run(mut self) { [INFO] [stdout] 62 | | let mut is_active = true; [INFO] [stdout] 63 | | [INFO] [stdout] 64 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | / fn work_handler(work: DirWork) { [INFO] [stdout] 76 | | // println!("{}", work.to_path().display()); [INFO] [stdout] 77 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_single_thread.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | / fn run_one(&mut self, work: DirWork) { [INFO] [stdout] 80 | | if work.is_file() { [INFO] [stdout] 81 | | Self::work_handler(work); [INFO] [stdout] 82 | | return; [INFO] [stdout] ... | [INFO] [stdout] 95 | | } [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use std::fs::DirEntry; [INFO] [stdout] 2 | | use std::path::PathBuf; [INFO] [stdout] 3 | | use std::sync::atomic::AtomicUsize; [INFO] [stdout] 4 | | use std::sync::atomic::Ordering; [INFO] [stdout] ... | [INFO] [stdout] 132 | | } [INFO] [stdout] 133 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | / pub(crate) struct Worker { [INFO] [stdout] 50 | | stack: SharedStack, [INFO] [stdout] 51 | | active_count: Arc, [INFO] [stdout] 52 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | stack: SharedStack, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | active_count: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / struct WorkerManager { [INFO] [stdout] 61 | | stack: SharedStack, [INFO] [stdout] 62 | | workers: Vec, [INFO] [stdout] 63 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | stack: SharedStack, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | workers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub(crate) enum DirWork { [INFO] [stdout] 8 | | Entry(DirEntry), [INFO] [stdout] 9 | | Path(PathBuf), [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Entry(DirEntry), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Path(PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | / pub(crate) fn make_stack() -> SharedStack { [INFO] [stdout] 57 | | Arc::new(Mutex::new(vec![])) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) type SharedStack = Arc>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl DirWork { [INFO] [stdout] 13 | | fn to_path(self) -> std::path::PathBuf { [INFO] [stdout] 14 | | match self { [INFO] [stdout] 15 | | DirWork::Entry(e) => e.path(), [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / fn to_path(self) -> std::path::PathBuf { [INFO] [stdout] 14 | | match self { [INFO] [stdout] 15 | | DirWork::Entry(e) => e.path(), [INFO] [stdout] 16 | | DirWork::Path(path) => path, [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / fn is_dir(&self) -> bool { [INFO] [stdout] 21 | | match self { [INFO] [stdout] 22 | | DirWork::Entry(e) => e.metadata().unwrap().is_dir(), [INFO] [stdout] 23 | | DirWork::Path(path) => path.is_dir(), [INFO] [stdout] 24 | | } [INFO] [stdout] 25 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / fn is_file(&self) -> bool { [INFO] [stdout] 28 | | match self { [INFO] [stdout] 29 | | DirWork::Entry(e) => e.metadata().unwrap().is_file(), [INFO] [stdout] 30 | | DirWork::Path(path) => path.is_file(), [INFO] [stdout] 31 | | } [INFO] [stdout] 32 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / fn is_symlink(&self) -> bool { [INFO] [stdout] 35 | | match self { [INFO] [stdout] 36 | | DirWork::Entry(e) => e.file_type().unwrap().is_symlink(), [INFO] [stdout] 37 | | DirWork::Path(path) => path.symlink_metadata().unwrap().file_type().is_symlink(), [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | / fn path(self) -> PathBuf { [INFO] [stdout] 42 | | match self { [INFO] [stdout] 43 | | DirWork::Entry(e) => e.path(), [INFO] [stdout] 44 | | DirWork::Path(path) => path, [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / impl Worker { [INFO] [stdout] 67 | | pub fn new(stack: SharedStack, active_count: Arc) -> Self { [INFO] [stdout] 68 | | Self { [INFO] [stdout] 69 | | stack, [INFO] [stdout] ... | [INFO] [stdout] 132 | | } [INFO] [stdout] 133 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | / pub fn new(stack: SharedStack, active_count: Arc) -> Self { [INFO] [stdout] 68 | | Self { [INFO] [stdout] 69 | | stack, [INFO] [stdout] 70 | | active_count, [INFO] [stdout] 71 | | } [INFO] [stdout] 72 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | / pub fn run(self) { [INFO] [stdout] 75 | | let mut is_active = true; [INFO] [stdout] 76 | | [INFO] [stdout] 77 | | loop { [INFO] [stdout] ... | [INFO] [stdout] 105 | | } [INFO] [stdout] 106 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | / fn work_handler(work: DirWork) { [INFO] [stdout] 109 | | // println!("{}", work.to_path().display()); [INFO] [stdout] 110 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/scaled_crawler_threaded.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | / fn run_one(&self, work: DirWork) { [INFO] [stdout] 113 | | if work.is_file() { [INFO] [stdout] 114 | | Self::work_handler(work); [INFO] [stdout] 115 | | return; [INFO] [stdout] ... | [INFO] [stdout] 131 | | } [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 75 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 43.79s [INFO] running `Command { std: "docker" "inspect" "0bd6afb40ad5e93e96596b718bb46a4f44ada39fa05c53d2e257dfe96a205626", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bd6afb40ad5e93e96596b718bb46a4f44ada39fa05c53d2e257dfe96a205626", kill_on_drop: false }` [INFO] [stdout] 0bd6afb40ad5e93e96596b718bb46a4f44ada39fa05c53d2e257dfe96a205626