[INFO] cloning repository https://github.com/mettke/cargo-patch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mettke/cargo-patch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmettke%2Fcargo-patch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmettke%2Fcargo-patch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 306bf9b1a0f2d8701c341e6eb8b37d14aa325437 [INFO] documenting mettke/cargo-patch against master#394e1b40d264aa6928811919c1124fa248e7d802 for pr-73566 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmettke%2Fcargo-patch" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mettke/cargo-patch on toolchain 394e1b40d264aa6928811919c1124fa248e7d802 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mettke/cargo-patch [INFO] finished tweaking git repo https://github.com/mettke/cargo-patch [INFO] tweaked toml for git repo https://github.com/mettke/cargo-patch written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/mettke/cargo-patch already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "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-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+394e1b40d264aa6928811919c1124fa248e7d802" "metadata" "--no-deps" "--format-version=1", 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] 25ada190dcf67782c32f9eac5294d89a68361c02c316a16e399057a14341c4f6 [INFO] running `Command { std: "docker" "start" "-a" "25ada190dcf67782c32f9eac5294d89a68361c02c316a16e399057a14341c4f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25ada190dcf67782c32f9eac5294d89a68361c02c316a16e399057a14341c4f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25ada190dcf67782c32f9eac5294d89a68361c02c316a16e399057a14341c4f6", kill_on_drop: false }` [INFO] [stdout] 25ada190dcf67782c32f9eac5294d89a68361c02c316a16e399057a14341c4f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+394e1b40d264aa6928811919c1124fa248e7d802" "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] 7ff7836fe87d11fcdd42753a833d42d7c0aa9955c72ede210ab559d2388711b7 [INFO] running `Command { std: "docker" "start" "-a" "7ff7836fe87d11fcdd42753a833d42d7c0aa9955c72ede210ab559d2388711b7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling curl v0.4.29 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Compiling anyhow v1.0.31 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling openssl v0.10.29 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking utf8parse v0.1.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking gimli v0.21.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking bytecount v0.3.2 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Checking object v0.19.0 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking remove_dir_all v0.5.2 [INFO] [stderr] Checking rustc-workspace-hack v1.0.0 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking opener v0.4.1 [INFO] [stderr] Checking home v0.5.3 [INFO] [stderr] Checking bytesize v1.0.1 [INFO] [stderr] Checking shell-escape v0.1.4 [INFO] [stderr] Checking humantime v2.0.0 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking fs_extra v1.1.0 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Checking miniz_oxide v0.3.6 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking vte v0.3.3 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling im-rc v14.3.0 [INFO] [stderr] Checking strip-ansi-escapes v0.1.0 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking bstr v0.2.13 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking filetime v0.2.10 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking jobserver v0.1.21 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking crossbeam-channel v0.4.2 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking tar v0.4.28 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking nom_locate v0.3.1 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_xoshiro v0.4.0 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking globset v0.4.5 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking addr2line v0.12.1 [INFO] [stderr] Checking ignore v0.4.16 [INFO] [stderr] Checking sized-chunks v0.5.3 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling libnghttp2-sys v0.1.4+1.41.0 [INFO] [stderr] Compiling libssh2-sys v0.2.17 [INFO] [stderr] Compiling curl-sys v0.4.31+curl-7.70.0 [INFO] [stderr] Compiling libgit2-sys v0.12.7+1.0.0 [INFO] [stderr] Checking patch v0.5.0 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking backtrace v0.3.48 [INFO] [stderr] Checking flate2 v1.0.14 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Checking crypto-hash v0.3.4 [INFO] [stderr] Compiling serde_derive v1.0.111 [INFO] [stderr] Checking git2 v0.13.6 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking git2-curl v0.14.0 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking semver v0.9.0 [INFO] [stderr] Checking serde_ignored v0.1.1 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking cargo-platform v0.1.1 [INFO] [stderr] Checking crates-io v0.31.0 [INFO] [stderr] Checking rustfix v0.5.1 [INFO] [stderr] Checking cargo v0.44.1 [INFO] [stderr] Documenting cargo-patch v0.1.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / //! `Cargo-Patch` is a Cargo Subcommand which allows [INFO] [stdout] 2 | | //! patching dependencies using patch files. [INFO] [stdout] 3 | | //! [INFO] [stdout] 4 | | //! # Installation [INFO] [stdout] ... | [INFO] [stdout] 52 | | //! for a subcommand to intercept the build process. [INFO] [stdout] 53 | | //! [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | missing_doc_code_examples, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 126 | / struct PatchEntry { [INFO] [stdout] 127 | | name: String, [INFO] [stdout] 128 | | version: Option, [INFO] [stdout] 129 | | patches: Vec, [INFO] [stdout] 130 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | version: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | patches: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | / fn clear_patch_folder() -> Result<()> { [INFO] [stdout] 134 | | match fs::remove_dir_all("target/patch") { [INFO] [stdout] 135 | | Ok(_) => Ok(()), [INFO] [stdout] 136 | | Err(err) => match err.kind() { [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [INFO] [stdout] 141 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:143:1 [INFO] [stdout] | [INFO] [stdout] 143 | / fn setup_config() -> Result { [INFO] [stdout] 144 | | let config = Config::default()?; [INFO] [stdout] 145 | | config.shell().set_verbosity(Verbosity::Quiet); [INFO] [stdout] 146 | | Ok(config) [INFO] [stdout] 147 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | / fn find_cargo_toml(path: &Path) -> Result { [INFO] [stdout] 150 | | let path = fs::canonicalize(path)?; [INFO] [stdout] 151 | | find_root_manifest_for_wd(&path) [INFO] [stdout] 152 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | / fn fetch_workspace<'a>(config: &'a Config, path: &Path) -> Result> { [INFO] [stdout] 155 | | Workspace::new(path, config) [INFO] [stdout] 156 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 158 | / fn resolve_ws<'a>(ws: &Workspace<'a>) -> Result<(PackageSet<'a>, Resolve)> { [INFO] [stdout] 159 | | let mut registry = PackageRegistry::new(ws.config())?; [INFO] [stdout] 160 | | registry.lock_patches(); [INFO] [stdout] 161 | | let resolve = { [INFO] [stdout] ... | [INFO] [stdout] 175 | | Ok((packages, resolve)) [INFO] [stdout] 176 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | / fn get_patches(package: &Package) -> Vec { [INFO] [stdout] 179 | | let manifest = package.manifest(); [INFO] [stdout] 180 | | manifest [INFO] [stdout] 181 | | .custom_metadata() [INFO] [stdout] ... | [INFO] [stdout] 191 | | ) [INFO] [stdout] 192 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | / fn parse_patch_entry(name: &str, entry: &Value) -> Option { [INFO] [stdout] 195 | | let entry = match entry.as_table() { [INFO] [stdout] 196 | | None => { [INFO] [stdout] 197 | | eprintln!("Entry {} must contain a table.", name); [INFO] [stdout] ... | [INFO] [stdout] 218 | | }) [INFO] [stdout] 219 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:221:1 [INFO] [stdout] | [INFO] [stdout] 221 | / fn parse_patches(entries: &[Value]) -> Vec { [INFO] [stdout] 222 | | entries [INFO] [stdout] 223 | | .iter() [INFO] [stdout] 224 | | .filter_map(|e| { [INFO] [stdout] ... | [INFO] [stdout] 231 | | .collect() [INFO] [stdout] 232 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:234:1 [INFO] [stdout] | [INFO] [stdout] 234 | / fn get_ids( [INFO] [stdout] 235 | | patches: Vec, [INFO] [stdout] 236 | | resolve: &Resolve, [INFO] [stdout] 237 | | ) -> Vec<(PatchEntry, PackageId)> { [INFO] [stdout] ... | [INFO] [stdout] 255 | | }).collect() [INFO] [stdout] 256 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 258 | / fn copy_package(pkg: &Package) -> Result { [INFO] [stdout] 259 | | fs::create_dir_all("target/patch/")?; [INFO] [stdout] 260 | | let options = CopyOptions::new(); [INFO] [stdout] 261 | | let _ = copy(pkg.root(), "target/patch/", &options)?; [INFO] [stdout] ... | [INFO] [stdout] 270 | | } [INFO] [stdout] 271 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:273:1 [INFO] [stdout] | [INFO] [stdout] 273 | / fn apply_patches(name: &str, patches: &[PathBuf], path: &PathBuf) -> Result<()> { [INFO] [stdout] 274 | | for patch in patches { [INFO] [stdout] 275 | | let data = read_to_string(patch)?; [INFO] [stdout] 276 | | let patches = Patch::from_multiple(&data) [INFO] [stdout] ... | [INFO] [stdout] 294 | | Ok(()) [INFO] [stdout] 295 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:302:1 [INFO] [stdout] | [INFO] [stdout] 302 | / fn apply_patch(diff: Patch, old: &str) -> String { [INFO] [stdout] 303 | | let old_lines = old.lines().collect::>(); [INFO] [stdout] 304 | | let mut out: Vec<&str> = vec![]; [INFO] [stdout] 305 | | let mut old_line = 0; [INFO] [stdout] ... | [INFO] [stdout] 332 | | out.join("\n") [INFO] [stdout] 333 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:336:1 [INFO] [stdout] | [INFO] [stdout] 336 | / fn read_to_string(path: &PathBuf) -> Result { [INFO] [stdout] 337 | | match fs::read_to_string(path) { [INFO] [stdout] 338 | | Ok(data) => Ok(data), [INFO] [stdout] 339 | | Err(err) => match err.kind() { [INFO] [stdout] ... | [INFO] [stdout] 348 | | } [INFO] [stdout] 349 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/main.rs:351:1 [INFO] [stdout] | [INFO] [stdout] 351 | / fn main() -> Result<()> { [INFO] [stdout] 352 | | clear_patch_folder()?; [INFO] [stdout] 353 | | let config = setup_config()?; [INFO] [stdout] 354 | | let _lock = config.acquire_package_cache_lock()?; [INFO] [stdout] ... | [INFO] [stdout] 376 | | Ok(()) [INFO] [stdout] 377 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 39s [INFO] running `Command { std: "docker" "inspect" "7ff7836fe87d11fcdd42753a833d42d7c0aa9955c72ede210ab559d2388711b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ff7836fe87d11fcdd42753a833d42d7c0aa9955c72ede210ab559d2388711b7", kill_on_drop: false }` [INFO] [stdout] 7ff7836fe87d11fcdd42753a833d42d7c0aa9955c72ede210ab559d2388711b7