[INFO] crate cargo-patch 0.1.7 is already in cache [INFO] documenting cargo-patch-0.1.7 against try#66dfc4e010913fbed0c4ea91fc2c010004b0f441 for pr-73566 [INFO] extracting crate cargo-patch 0.1.7 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate cargo-patch 0.1.7 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 cargo-patch 0.1.7 [INFO] finished tweaking crates.io crate cargo-patch 0.1.7 [INFO] tweaked toml for crates.io crate cargo-patch 0.1.7 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate crates.io crate cargo-patch 0.1.7 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-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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] 0cd53e81e77ba18e53ef2449719a4704cc54e10cbc8a10b0f795d552ac949201 [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" "0cd53e81e77ba18e53ef2449719a4704cc54e10cbc8a10b0f795d552ac949201", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0cd53e81e77ba18e53ef2449719a4704cc54e10cbc8a10b0f795d552ac949201", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cd53e81e77ba18e53ef2449719a4704cc54e10cbc8a10b0f795d552ac949201", kill_on_drop: false }` [INFO] [stdout] 0cd53e81e77ba18e53ef2449719a4704cc54e10cbc8a10b0f795d552ac949201 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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] 118d63f094ec02e1037ea45844cf512ec1c9c0c48169dd427c3339076049db74 [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" "118d63f094ec02e1037ea45844cf512ec1c9c0c48169dd427c3339076049db74", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Compiling anyhow v1.0.31 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Compiling curl v0.4.29 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking utf8parse v0.1.1 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking rustc-demangle v0.1.16 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking bytecount v0.3.2 [INFO] [stderr] Checking rustc-workspace-hack v1.0.0 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking opener v0.4.1 [INFO] [stderr] Checking bytesize v1.0.1 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Checking home v0.5.3 [INFO] [stderr] Checking shell-escape v0.1.4 [INFO] [stderr] Checking humantime v2.0.0 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking fs_extra v1.1.0 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking vte v0.3.3 [INFO] [stderr] Checking addr2line v0.12.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking miniz_oxide v0.3.6 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking typenum v1.12.0 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking filetime v0.2.10 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking jobserver v0.1.21 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking strip-ansi-escapes v0.1.0 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Checking backtrace v0.3.48 [INFO] [stderr] Checking tar v0.4.28 [INFO] [stderr] Checking crossbeam-channel v0.4.2 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Compiling im-rc v14.3.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_xoshiro v0.4.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Checking nom_locate v0.3.1 [INFO] [stderr] Checking patch v0.5.0 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking regex v1.3.9 [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 flate2 v1.0.14 [INFO] [stderr] Compiling openssl v0.10.29 [INFO] [stderr] Checking globset v0.4.5 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking sized-chunks v0.5.3 [INFO] [stderr] Checking ignore v0.4.16 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.111 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking crypto-hash v0.3.4 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking git2 v0.13.6 [INFO] [stderr] Checking git2-curl v0.14.0 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking cargo-platform v0.1.1 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking semver v0.9.0 [INFO] [stderr] Checking serde_ignored v0.1.1 [INFO] [stderr] Checking rustfix v0.5.1 [INFO] [stderr] Checking crates-io v0.31.0 [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 28s [INFO] running `Command { std: "docker" "inspect" "118d63f094ec02e1037ea45844cf512ec1c9c0c48169dd427c3339076049db74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "118d63f094ec02e1037ea45844cf512ec1c9c0c48169dd427c3339076049db74", kill_on_drop: false }` [INFO] [stdout] 118d63f094ec02e1037ea45844cf512ec1c9c0c48169dd427c3339076049db74