[INFO] cloning repository https://github.com/phaazon/kit-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/phaazon/kit-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphaazon%2Fkit-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphaazon%2Fkit-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa97b51651479658ee06c92a3bbafd613e0a961c [INFO] checking phaazon/kit-test against try#c8bdaa84ec1b37f18f30375e196a65b7602f3790 for pr-73345 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphaazon%2Fkit-test" "/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/phaazon/kit-test on toolchain c8bdaa84ec1b37f18f30375e196a65b7602f3790 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/phaazon/kit-test [INFO] finished tweaking git repo https://github.com/phaazon/kit-test [INFO] tweaked toml for git repo https://github.com/phaazon/kit-test written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/phaazon/kit-test already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded al-sys v0.5.3 [INFO] [stderr] Downloaded luminance-glfw v0.4.3 [INFO] [stderr] Downloaded rental v0.5.0 [INFO] [stderr] Downloaded warmy v0.7.2 [INFO] [stderr] Downloaded spectra v0.12.0 [INFO] [stderr] Downloaded rental-impl v0.5.0 [INFO] [stderr] Downloaded luminance-windowing v0.1.1 [INFO] [stderr] Downloaded luminance v0.25.7 [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:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 18ccf37f194cf5df07fed05fd8ea53eaa9e935aade5265cff6928fd33a4efc6e [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" "18ccf37f194cf5df07fed05fd8ea53eaa9e935aade5265cff6928fd33a4efc6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "18ccf37f194cf5df07fed05fd8ea53eaa9e935aade5265cff6928fd33a4efc6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18ccf37f194cf5df07fed05fd8ea53eaa9e935aade5265cff6928fd33a4efc6e", kill_on_drop: false }` [INFO] [stdout] 18ccf37f194cf5df07fed05fd8ea53eaa9e935aade5265cff6928fd33a4efc6e [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" "RUSTFLAGS=--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:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "check" "--frozen" "--all" "--all-targets" "--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] 107995f2d4a0d76005414a602de17175db1c5173614d13079ea8f3fedaecd11d [INFO] running `Command { std: "docker" "start" "-a" "107995f2d4a0d76005414a602de17175db1c5173614d13079ea8f3fedaecd11d", kill_on_drop: false }` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Checking libc v0.2.40 [INFO] [stderr] Checking cfg-if v0.1.3 [INFO] [stderr] Checking num-traits v0.2.2 [INFO] [stderr] Compiling pkg-config v0.3.11 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Compiling cc v1.0.15 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking nodrop v0.1.12 [INFO] [stderr] Compiling bitflags v1.0.3 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling rayon-core v1.4.0 [INFO] [stderr] Checking stable_deref_trait v1.0.0 [INFO] [stderr] Checking byteorder v1.2.2 [INFO] [stderr] Checking same-file v1.0.2 [INFO] [stderr] Checking smallvec v0.6.1 [INFO] [stderr] Checking bytes v0.3.0 [INFO] [stderr] Checking nom v1.2.4 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking slab v0.1.3 [INFO] [stderr] Checking serde v1.0.52 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking any-cache v0.2.3 [INFO] [stderr] Checking itoa v0.4.1 [INFO] [stderr] Compiling spectra v0.12.0 [INFO] [stderr] Checking luminance-windowing v0.1.1 [INFO] [stderr] Checking wavefront_obj v5.1.0 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling ws2_32-sys v0.2.1 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Checking inflate v0.3.4 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Checking owning_ref v0.3.3 [INFO] [stderr] Checking arrayvec v0.4.7 [INFO] [stderr] Compiling proc-macro2 v0.3.8 [INFO] [stderr] Checking walkdir v2.1.4 [INFO] [stderr] Checking deflate v0.7.18 [INFO] [stderr] Checking semver v0.2.3 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Compiling cmake v0.1.31 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking time v0.1.39 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking net2 v0.2.32 [INFO] [stderr] Checking nix v0.5.1 [INFO] [stderr] Checking inotify v0.3.0 [INFO] [stderr] Checking filetime v0.1.15 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking atty v0.2.10 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking num-integer v0.1.36 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Compiling quote v0.5.2 [INFO] [stderr] Checking nom v3.2.1 [INFO] [stderr] Checking clap v2.31.2 [INFO] [stderr] Checking miow v0.1.5 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Compiling syn v0.13.7 [INFO] [stderr] Checking num-iter v0.1.35 [INFO] [stderr] Checking chrono v0.4.2 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Checking png v0.11.0 [INFO] [stderr] Compiling ogg-sys v0.0.9 [INFO] [stderr] Compiling vorbis-sys v0.0.8 [INFO] [stderr] Compiling vorbisfile-sys v0.0.8 [INFO] [stderr] Compiling vorbis-encoder v0.1.4 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking num-bigint v0.1.43 [INFO] [stderr] Checking parking_lot_core v0.2.14 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking glsl v0.7.2 [INFO] [stderr] Checking cgmath v0.15.0 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling glfw-sys v3.2.2 [INFO] [stderr] Checking parking_lot v0.4.8 [INFO] [stderr] Checking rayon v1.0.1 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking mio v0.5.1 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Checking vorbis v0.1.0 [INFO] [stderr] Checking notify v4.0.3 [INFO] [stderr] Checking warmy v0.7.2 [INFO] [stderr] Checking glfw v0.20.0 [INFO] [stderr] Checking jpeg-decoder v0.1.14 [INFO] [stderr] Checking image v0.17.0 [INFO] [stderr] Checking serde_json v1.0.17 [INFO] [stderr] Checking luminance-glfw v0.4.3 [INFO] [stderr] Checking luminance v0.25.7 [INFO] [stderr] Compiling rental-impl v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.52 [INFO] [stderr] Checking rental v0.5.0 [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rental-0.5.0/src/lib.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | #[derive(__rental_traits)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | define_rental_traits!(32); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: message: expected prefix "#[allow(unused)]" not found in "# [allow(unused)] enum ProceduralMasqueradeDummyType\n{ Input = (0, stringify ! (32)) . 0, }" [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rental-0.5.0/src/lib.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | #[derive(__rental_structs_and_impls)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | / rental! { [INFO] [stdout] 280 | | /// Example types that demonstrate the API generated by the rental macro. [INFO] [stdout] 281 | | pub mod examples { [INFO] [stdout] 282 | | use std::sync; [INFO] [stdout] ... | [INFO] [stdout] 339 | | } [INFO] [stdout] 340 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: message: expected prefix "#[allow(unused)]" not found in "# [allow(unused)] enum ProceduralMasqueradeDummyType\n{\n Input =\n (0, stringify !\n (use std :: sync ; #\n [doc =\n r\" The simplest shared rental. The head is a boxed integer, and the suffix is a ref to that integer. This struct demonstrates the basic API that all shared rental structs have. See [`SimpleMut`](struct.SimpleMut.html) for the mutable analog.\"]\n # [rental] pub struct SimpleRef\n { head : Box < i32 >, iref : & \'head i32, } #\n [doc =\n r\" The simplest mutable rental. Mutable rentals have a slightly different API; compare this struct to [`SimpleRef`](struct.SimpleRef.html) for the clearest picture of how they differ.\"]\n # [rental_mut] pub struct SimpleMut\n { head : Box < i32 >, iref : & \'head mut i32, } #\n [doc =\n r\" Identical to [`SimpleRef`](struct.SimpleRef.html), but with the `debug` flag enabled. This will provide a `Debug` impl for the struct as long as all of the fields are `Debug`.\"]\n # [rental(debug)] pub struct SimpleRefDebug\n { head : Box < i32 >, iref : & \'head i32, } #\n [doc =\n r\" Similar to [`SimpleRef`](struct.SimpleRef.html), but with the `clone` flag enabled. This will provide a `Clone` impl for the struct as long as the prefix fields are `CloneStableDeref` and the suffix is `Clone` . Notice that the head is an `Arc`, since a clone of an `Arc` will deref to the same object as the original.\"]\n # [rental(clone)] pub struct SimpleRefClone\n { head : sync :: Arc < i32 >, iref : & \'head i32, } #\n [doc =\n r\" Identical to [`SimpleRef`](struct.SimpleRef.html), but with the `deref_suffix` flag enabled. This will provide a `Deref` impl for the struct, which will in turn deref the suffix. Notice that this flag also removes the `self` param from all methods, replacing it with an explicit param. This prevents any rental methods from blocking deref.\"]\n # [rental(deref_suffix)] pub struct SimpleRefDeref\n { head : Box < i32 >, iref : & \'head i32, } #\n [doc =\n r\" Identical to [`SimpleMut`](struct.SimpleMut.html), but with the `deref_mut_suffix` flag enabled. This will provide a `DerefMut` impl for the struct, which will in turn deref the suffix.Notice that this flag also removes the `self` param from all methods, replacing it with an explicit param. This prevents any rental methods from blocking deref.\"]\n # [rental_mut(deref_mut_suffix)] pub struct SimpleMutDeref\n { head : Box < i32 >, iref : & \'head mut i32, } #\n [doc =\n r\" Identical to [`SimpleRef`](struct.SimpleRef.html), but with the `covariant` flag enabled. For rental structs where the field types have covariant lifetimes, this will allow you to directly borrow the fields, as they can be safely reborrowed to a shorter lifetime. See the [`all`](struct.SimpleRefCovariant.html#method.all) and [`suffix`](struct.SimpleRefCovariant.html#method.suffix) methods.\"]\n # [rental(covariant)] pub struct SimpleRefCovariant\n { head : Box < i32 >, iref : & \'head i32, } #\n [doc =\n r\" Identical to [`SimpleRef`](struct.SimpleRef.html), but with the `map_suffix` flag enabled. This will allow the type of the suffix to be changed by mapping it to another instantiation of the same struct with the different type param. See the [`map`](struct.SimpleRefMap.html#method.map), [`try_map`](struct.SimpleRefMap.html#method.try_map), and [`try_map_or_drop`](struct.SimpleRefMap.html#method.try_map_or_drop) methods.\"]\n # [rental(map_suffix = \"T\")] pub struct SimpleRefMap < T : \'static >\n { head : Box < i32 >, iref : & \'head T, })) . 0\n}" [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rental-0.5.0/src/lib.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | #[derive(__rental_structs_and_impls)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | / rental! { [INFO] [stdout] 345 | | /// Premade types for the most common use cases. [INFO] [stdout] 346 | | pub mod common { [INFO] [stdout] 347 | | use std::ops::DerefMut; [INFO] [stdout] ... | [INFO] [stdout] 478 | | } [INFO] [stdout] 479 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: message: expected prefix "#[allow(unused)]" not found in "# [allow(unused)] enum ProceduralMasqueradeDummyType\n{\n Input =\n (0, stringify !\n (use std :: ops :: DerefMut ; use stable_deref_trait :: StableDeref ; use\n std :: cell ; use std :: sync ; #\n [doc = r\" Stores an owner and a shared reference in the same struct.\"] #\n [doc = r\"\"] # [doc = r\" ```rust\"] # [doc = r\" # extern crate rental;\"] #\n [doc = r\" # use rental::common::RentRef;\"] # [doc = r\" # fn main() {\"] #\n [doc = r\" let r = RentRef::new(Box::new(5), |i| &*i);\"] #\n [doc = r\" assert_eq!(*r, RentRef::rent(&r, |iref| **iref));\"] #\n [doc = r\" # }\"] # [doc = r\" ```\"] #\n [rental(debug, clone, deref_suffix, covariant, map_suffix = \"T\")] pub\n struct RentRef < H : \'static + StableDeref, T : \'static >\n { head : H, suffix : & \'head T, } #\n [doc = r\" Stores an owner and a mutable reference in the same struct.\"]\n # [doc = r\"\"] # [doc = r\" ```rust\"] # [doc = r\" # extern crate rental;\"]\n # [doc = r\" # use rental::common::RentMut;\"] # [doc = r\" # fn main() {\"]\n # [doc = r\" let mut r = RentMut::new(Box::new(5), |i| &mut *i);\"] #\n [doc = r\" *r = 12;\"] #\n [doc = r\" assert_eq!(12, RentMut::rent(&mut r, |iref| **iref));\"] #\n [doc = r\" # }\"] # [doc = r\" ```\"] #\n [rental_mut(debug, deref_mut_suffix, covariant, map_suffix = \"T\")] pub\n struct RentMut < H : \'static + StableDeref + DerefMut, T : \'static >\n { head : H, suffix : & \'head mut T, } #\n [doc = r\" Stores a `RefCell` and a `Ref` in the same struct.\"] #\n [doc = r\"\"] # [doc = r\" ```rust\"] # [doc = r\" # extern crate rental;\"] #\n [doc = r\" # use rental::common::RentRefCell;\"] #\n [doc = r\" # fn main() {\"] # [doc = r\" use std::cell;\"] # [doc = r\"\"] #\n [doc =\n r\" let r = RentRefCell::new(Box::new(cell::RefCell::new(5)), |c| c.borrow());\"]\n # [doc = r\" assert_eq!(*r, RentRefCell::rent(&r, |c| **c));\"] #\n [doc = r\" # }\"] # [doc = r\" ```\"] #\n [rental(debug, clone, deref_suffix, covariant, map_suffix = \"T\")] pub\n struct RentRefCell < H : \'static + StableDeref, T : \'static >\n { head : H, suffix : cell :: Ref < \'head, T >, } #\n [doc = r\" Stores a `RefCell` and a `RefMut` in the same struct.\"] #\n [doc = r\"\"] # [doc = r\" ```rust\"] # [doc = r\" # extern crate rental;\"] #\n [doc = r\" # use rental::common::RentRefCellMut;\"] #\n [doc = r\" # fn main() {\"] # [doc = r\" use std::cell;\"] # [doc = r\"\"] #\n [doc =\n r\" let mut r = RentRefCellMut::new(Box::new(cell::RefCell::new(5)), |c| c.borrow_mut());\"]\n # [doc = r\" *r = 12;\"] #\n [doc = r\" assert_eq!(12, RentRefCellMut::rent(&r, |c| **c));\"] #\n [doc = r\" # }\"] # [doc = r\" ```\"] #\n [rental_mut(debug, deref_mut_suffix, covariant, map_suffix = \"T\")] pub\n struct RentRefCellMut < H : \'static + StableDeref + DerefMut, T :\n \'static > { head : H, suffix : cell :: RefMut < \'head, T >, } #\n [doc = r\" Stores a `Mutex` and a `MutexGuard` in the same struct.\"] #\n [doc = r\"\"] # [doc = r\" ```rust\"] # [doc = r\" # extern crate rental;\"] #\n [doc = r\" # use rental::common::RentMutex;\"] # [doc = r\" # fn main() {\"]\n # [doc = r\" use std::sync;\"] # [doc = r\"\"] #\n [doc =\n r\" let mut r = RentMutex::new(Box::new(sync::Mutex::new(5)), |c| c.lock().unwrap());\"]\n # [doc = r\" *r = 12;\"] #\n [doc = r\" assert_eq!(12, RentMutex::rent(&r, |c| **c));\"] #\n [doc = r\" # }\"] # [doc = r\" ```\"] #\n [rental(debug, clone, deref_mut_suffix, covariant, map_suffix = \"T\")]\n pub struct RentMutex < H : \'static + StableDeref + DerefMut, T : \'static\n > { head : H, suffix : sync :: MutexGuard < \'head, T >, } #\n [doc =\n r\" Stores an `RwLock` and an `RwLockReadGuard` in the same struct.\"] #\n [doc = r\"\"] # [doc = r\" ```rust\"] # [doc = r\" # extern crate rental;\"] #\n [doc = r\" # use rental::common::RentRwLock;\"] #\n [doc = r\" # fn main() {\"] # [doc = r\" use std::sync;\"] # [doc = r\"\"] #\n [doc =\n r\" let r = RentRwLock::new(Box::new(sync::RwLock::new(5)), |c| c.read().unwrap());\"]\n # [doc = r\" assert_eq!(*r, RentRwLock::rent(&r, |c| **c));\"] #\n [doc = r\" # }\"] # [doc = r\" ```\"] #\n [rental(debug, clone, deref_suffix, covariant, map_suffix = \"T\")] pub\n struct RentRwLock < H : \'static + StableDeref, T : \'static >\n { head : H, suffix : sync :: RwLockReadGuard < \'head, T >, } #\n [doc =\n r\" Stores an `RwLock` and an `RwLockWriteGuard` in the same struct.\"] #\n [doc = r\"\"] # [doc = r\" ```rust\"] # [doc = r\" # extern crate rental;\"] #\n [doc = r\" # use rental::common::RentRwLockMut;\"] #\n [doc = r\" # fn main() {\"] # [doc = r\" use std::sync;\"] # [doc = r\"\"] #\n [doc =\n r\" let mut r = RentRwLockMut::new(Box::new(sync::RwLock::new(5)), |c| c.write().unwrap());\"]\n # [doc = r\" *r = 12;\"] #\n [doc = r\" assert_eq!(12, RentRwLockMut::rent(&r, |c| **c));\"] #\n [doc = r\" # }\"] # [doc = r\" ```\"] #\n [rental(debug, clone, deref_mut_suffix, covariant, map_suffix = \"T\")]\n pub struct RentRwLockMut < H : \'static + StableDeref, T : \'static >\n { head : H, suffix : sync :: RwLockWriteGuard < \'head, T >, })) . 0\n}" [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rental`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "107995f2d4a0d76005414a602de17175db1c5173614d13079ea8f3fedaecd11d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "107995f2d4a0d76005414a602de17175db1c5173614d13079ea8f3fedaecd11d", kill_on_drop: false }` [INFO] [stdout] 107995f2d4a0d76005414a602de17175db1c5173614d13079ea8f3fedaecd11d