[INFO] cloning repository https://github.com/MaulingMonkey/rust_win32_sample [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MaulingMonkey/rust_win32_sample" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaulingMonkey%2Frust_win32_sample", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaulingMonkey%2Frust_win32_sample'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 23da4cc4ab04dbd2a4d809ddc99cef10ec1a27ae [INFO] checking MaulingMonkey/rust_win32_sample/23da4cc4ab04dbd2a4d809ddc99cef10ec1a27ae against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaulingMonkey%2Frust_win32_sample" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MaulingMonkey/rust_win32_sample on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MaulingMonkey/rust_win32_sample [INFO] finished tweaking git repo https://github.com/MaulingMonkey/rust_win32_sample [INFO] tweaked toml for git repo https://github.com/MaulingMonkey/rust_win32_sample written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MaulingMonkey/rust_win32_sample already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/rust-windowing/winit` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libloading v0.5.1 [INFO] [stderr] Downloaded wayland-commons v0.23.5 [INFO] [stderr] Downloaded wayland-scanner v0.23.5 [INFO] [stderr] Downloaded wayland-sys v0.23.5 [INFO] [stderr] Downloaded objc_exception v0.1.1 [INFO] [stderr] Downloaded calloop v0.4.4 [INFO] [stderr] Downloaded quote v0.6.12 [INFO] [stderr] Downloaded lazycell v1.2.1 [INFO] [stderr] Downloaded metal v0.14.0 [INFO] [stderr] Downloaded core-video-sys v0.1.2 [INFO] [stderr] Downloaded parking_lot_core v0.5.0 [INFO] [stderr] Downloaded wayland-client v0.23.5 [INFO] [stderr] Downloaded dispatch v0.1.4 [INFO] [stderr] Downloaded wayland-protocols v0.23.5 [INFO] [stderr] Downloaded smithay-client-toolkit v0.6.2 [INFO] [stderr] Downloaded syn v0.15.36 [INFO] [stderr] Downloaded lock_api v0.2.0 [INFO] [stderr] Downloaded parking_lot v0.8.0 [INFO] [stderr] Downloaded mio-extras v2.0.5 [INFO] [stderr] Downloaded libc v0.2.58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "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" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f8ed3536182a3cbe7fd7279ac9f16a22ddbfc350f356131564e257b083ad30f [INFO] running `Command { std: "docker" "start" "-a" "2f8ed3536182a3cbe7fd7279ac9f16a22ddbfc350f356131564e257b083ad30f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f8ed3536182a3cbe7fd7279ac9f16a22ddbfc350f356131564e257b083ad30f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f8ed3536182a3cbe7fd7279ac9f16a22ddbfc350f356131564e257b083ad30f", kill_on_drop: false }` [INFO] [stdout] 2f8ed3536182a3cbe7fd7279ac9f16a22ddbfc350f356131564e257b083ad30f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5af003be8c495810f772c431422f09e654edb78443f5ba97e3be166669c612d6 [INFO] running `Command { std: "docker" "start" "-a" "5af003be8c495810f772c431422f09e654edb78443f5ba97e3be166669c612d6", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling cc v1.0.37 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Checking same-file v1.0.4 [INFO] [stderr] Compiling syn v0.15.36 [INFO] [stderr] Checking downcast-rs v1.0.4 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking walkdir v2.2.8 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Checking lock_api v0.2.0 [INFO] [stderr] Compiling wayland-scanner v0.23.5 [INFO] [stderr] Checking stb_truetype v0.2.6 [INFO] [stderr] Compiling x11-dl v2.18.3 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Compiling libloading v0.5.1 [INFO] [stderr] Checking mio v0.6.19 [INFO] [stderr] Checking dlib v0.4.1 [INFO] [stderr] Checking wayland-sys v0.23.5 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking rusttype v0.7.7 [INFO] [stderr] Checking mio-extras v2.0.5 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Compiling wayland-client v0.23.5 [INFO] [stderr] Compiling wayland-protocols v0.23.5 [INFO] [stderr] Checking calloop v0.4.4 [INFO] [stderr] Checking wayland-commons v0.23.5 [INFO] [stderr] Compiling derivative v1.0.2 [INFO] [stderr] Checking smithay-client-toolkit v0.6.2 [INFO] [stderr] Checking winit v0.19.1 (https://github.com/rust-windowing/winit#2e0bbc09) [INFO] [stderr] Checking rust_win32_d3d11 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/com/d3d/blob.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:101:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:100:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winit::platform::windows` [INFO] [stdout] --> src/main.rs:28:22 [INFO] [stdout] | [INFO] [stdout] 28 | use winit::platform::windows::WindowExtWindows; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/winit-c2fdb27092aba5a7/2e0bbc0/src/platform/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub mod windows; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/winit-c2fdb27092aba5a7/2e0bbc0/src/platform/windows.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/com/d3d/blob.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:54:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:46:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:101:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/os/mod.rs:100:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winit::platform::windows` [INFO] [stdout] --> src/main.rs:28:22 [INFO] [stdout] | [INFO] [stdout] 28 | use winit::platform::windows::WindowExtWindows; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `platform` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/winit-c2fdb27092aba5a7/2e0bbc0/src/platform/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub mod windows; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/winit-c2fdb27092aba5a7/2e0bbc0/src/platform/windows.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `win32` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use win32::*; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `win32` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use win32::*; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d/blob.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d/blob.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d/compile.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d/compile.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d11/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d11/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d11/driver_type.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d11/driver_type.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d11/feature_level.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d11/feature_level.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d11/input_element_desc.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d11/input_element_desc.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d11/primitive_topology.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/d3d11/primitive_topology.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/dxgi/swap_chain.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/device_and_swap_chain.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/dxgi/swap_chain.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::win32` [INFO] [stdout] --> src/com/device_and_swap_chain.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::win32::*; [INFO] [stdout] | ^^^^^ could not find `win32` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Blob`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `blob::Blob: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&Blob` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d/blob.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / com_wrapper! { [INFO] [stdout] 8 | | pub struct Blob(*mut ID3DBlob); [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `blob::Blob: AsRef<_>` [INFO] [stdout] which is required by `&blob::Blob: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Blob`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `blob::Blob: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&Blob` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d/blob.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / com_wrapper! { [INFO] [stdout] 8 | | pub struct Blob(*mut ID3DBlob); [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `blob::Blob: AsRef<_>` [INFO] [stdout] which is required by `&blob::Blob: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut Blob`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `blob::Blob: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut Blob` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d/blob.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / com_wrapper! { [INFO] [stdout] 8 | | pub struct Blob(*mut ID3DBlob); [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `blob::Blob: AsRef<_>` [INFO] [stdout] which is required by `&mut blob::Blob: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut Blob`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `blob::Blob: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut Blob` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d/blob.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / com_wrapper! { [INFO] [stdout] 8 | | pub struct Blob(*mut ID3DBlob); [INFO] [stdout] 9 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `blob::Blob: AsRef<_>` [INFO] [stdout] which is required by `&mut blob::Blob: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/com/d3d/blob.rs:13:61 [INFO] [stdout] | [INFO] [stdout] 13 | let mut path : Vec = path.as_ref().as_os_str().encode_wide().collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/com/d3d/blob.rs:13:61 [INFO] [stdout] | [INFO] [stdout] 13 | let mut path : Vec = path.as_ref().as_os_str().encode_wide().collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/com/d3d/blob.rs:26:61 [INFO] [stdout] | [INFO] [stdout] 26 | let mut path : Vec = path.as_ref().as_os_str().encode_wide().collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/com/d3d/blob.rs:26:61 [INFO] [stdout] | [INFO] [stdout] 26 | let mut path : Vec = path.as_ref().as_os_str().encode_wide().collect(); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/com/d3d/compile.rs:83:43 [INFO] [stdout] | [INFO] [stdout] 83 | entrypoint.map_or(null_mut(), |e| e.as_ptr()), [INFO] [stdout] | ^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found raw pointer `*const i8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/com/d3d/compile.rs:83:43 [INFO] [stdout] | [INFO] [stdout] 83 | entrypoint.map_or(null_mut(), |e| e.as_ptr()), [INFO] [stdout] | ^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut _` [INFO] [stdout] found raw pointer `*const i8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Buffer`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::Buffer: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&Buffer` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::Buffer: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::Buffer: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Buffer`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::Buffer: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&Buffer` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::Buffer: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::Buffer: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut Buffer`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::Buffer: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut Buffer` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::Buffer: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::Buffer: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut Buffer`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::Buffer: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut Buffer` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::Buffer: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::Buffer: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Texture2D`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&Texture2D` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::Texture2D: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut Texture2D`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut Texture2D` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::Texture2D: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Texture2D`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&Texture2D` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::Texture2D: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut Texture2D`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut Texture2D` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::Texture2D: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&PixelShader`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::PixelShader: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&PixelShader` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::PixelShader: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::PixelShader: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut PixelShader`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::PixelShader: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut PixelShader` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::PixelShader: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::PixelShader: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&PixelShader`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::PixelShader: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&PixelShader` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::PixelShader: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::PixelShader: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut PixelShader`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::PixelShader: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut PixelShader` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::PixelShader: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::PixelShader: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&VertexShader`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::VertexShader: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&VertexShader` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::VertexShader: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::VertexShader: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut VertexShader`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::VertexShader: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut VertexShader` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::VertexShader: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::VertexShader: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&VertexShader`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::VertexShader: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&VertexShader` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::VertexShader: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::VertexShader: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut VertexShader`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::VertexShader: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut VertexShader` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::VertexShader: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::VertexShader: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&InputLayout`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::InputLayout: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&InputLayout` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::InputLayout: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::InputLayout: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut InputLayout`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::InputLayout: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut InputLayout` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::InputLayout: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::InputLayout: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&InputLayout`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::InputLayout: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&InputLayout` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::InputLayout: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::InputLayout: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&ClassInstance`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `ClassInstance: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&ClassInstance` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `ClassInstance: AsRef<_>` [INFO] [stdout] which is required by `&ClassInstance: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut InputLayout`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::InputLayout: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut InputLayout` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::InputLayout: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::InputLayout: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut ClassInstance`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `ClassInstance: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut ClassInstance` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `ClassInstance: AsRef<_>` [INFO] [stdout] which is required by `&mut ClassInstance: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&ClassInstance`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `ClassInstance: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&ClassInstance` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `ClassInstance: AsRef<_>` [INFO] [stdout] which is required by `&ClassInstance: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&ClassLinkage`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&ClassLinkage` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut ClassInstance`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `ClassInstance: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut ClassInstance` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `ClassInstance: AsRef<_>` [INFO] [stdout] which is required by `&mut ClassInstance: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut ClassLinkage`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut ClassLinkage` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&RenderTargetView`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&RenderTargetView` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&ClassLinkage`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&ClassLinkage` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut RenderTargetView`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut RenderTargetView` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut ClassLinkage`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut ClassLinkage` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::ClassLinkage: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DepthStencilView`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&DepthStencilView` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut DepthStencilView`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut DepthStencilView` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&RenderTargetView`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&RenderTargetView` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut RenderTargetView`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut RenderTargetView` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::RenderTargetView: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/device.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | com_wrapper!{ pub struct Device(*mut ID3D11Device); } [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/device.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | com_wrapper!{ pub struct Device(*mut ID3D11Device); } [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&mut device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DepthStencilView`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&DepthStencilView` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut DepthStencilView`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut DepthStencilView` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / com_wrapper! { [INFO] [stdout] 4 | | pub struct Buffer(*mut ID3D11Buffer); [INFO] [stdout] 5 | | pub struct Texture2D(*mut ID3D11Texture2D); [INFO] [stdout] 6 | | pub struct PixelShader(*mut ID3D11PixelShader); [INFO] [stdout] ... | [INFO] [stdout] 12 | | pub struct DepthStencilView(*mut ID3D11DepthStencilView); [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] which is required by `&mut d3d11::DepthStencilView: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Texture2D`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:10:102 [INFO] [stdout] | [INFO] [stdout] 10 | ...ut ID3D11Resource { &**self.as_ref() as *const _ as *mut _ } } // XXX [INFO] [stdout] | ^^^^^^ method cannot be called on `&Texture2D` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::Texture2D: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | let result = self.as_ref().CreateBuffer( [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/device.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | com_wrapper!{ pub struct Device(*mut ID3D11Device); } [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | let result = unsafe { self.as_ref().CreateRenderTargetView( [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/device.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | com_wrapper!{ pub struct Device(*mut ID3D11Device); } [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&mut device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | let result = unsafe { self.as_ref().CreateVertexShader( [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:67:36 [INFO] [stdout] | [INFO] [stdout] 67 | let result = unsafe { self.as_ref().CreatePixelShader( [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Texture2D`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:10:102 [INFO] [stdout] | [INFO] [stdout] 10 | ...ut ID3D11Resource { &**self.as_ref() as *const _ as *mut _ } } // XXX [INFO] [stdout] | ^^^^^^ method cannot be called on `&Texture2D` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `d3d11::Texture2D: AsRef<_>` [INFO] [stdout] which is required by `&d3d11::Texture2D: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:84:36 [INFO] [stdout] | [INFO] [stdout] 84 | let result = unsafe { self.as_ref().CreateInputLayout( [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | let result = self.as_ref().CreateBuffer( [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/device_context.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | com_wrapper!{ pub struct DeviceContext(*mut ID3D11DeviceContext); } [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/device_context.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | com_wrapper!{ pub struct DeviceContext(*mut ID3D11DeviceContext); } [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&mut device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | let result = unsafe { self.as_ref().CreateRenderTargetView( [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | let result = unsafe { self.as_ref().CreateVertexShader( [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:67:36 [INFO] [stdout] | [INFO] [stdout] 67 | let result = unsafe { self.as_ref().CreatePixelShader( [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | self.as_ref().OMSetRenderTargets( [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe { self.as_ref().RSSetViewports( [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Device`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device.rs:84:36 [INFO] [stdout] | [INFO] [stdout] 84 | let result = unsafe { self.as_ref().CreateInputLayout( [INFO] [stdout] | ^^^^^^ method cannot be called on `&Device` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device::Device: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device::Device: AsRef<_>` [INFO] [stdout] which is required by `&device::Device: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/device_context.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | com_wrapper!{ pub struct DeviceContext(*mut ID3D11DeviceContext); } [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/device_context.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | com_wrapper!{ pub struct DeviceContext(*mut ID3D11DeviceContext); } [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&mut device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe { self.as_ref().ClearRenderTargetView( [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:39:23 [INFO] [stdout] | [INFO] [stdout] 39 | unsafe { self.as_ref().IASetInputLayout(input_layout.as_ptr()) }; [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe { self.as_ref().IASetPrimitiveTopology(topology.raw()) }; [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | self.as_ref().OMSetRenderTargets( [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe { self.as_ref().RSSetViewports( [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe { self.as_ref().ClearRenderTargetView( [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | self.as_ref().IASetVertexBuffers(start_slot, n as UINT, vertex_buffers.as_ptr(), strides.as_ptr(), offsets.as_ptr()) [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:39:23 [INFO] [stdout] | [INFO] [stdout] 39 | unsafe { self.as_ref().IASetInputLayout(input_layout.as_ptr()) }; [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe { self.as_ref().IASetPrimitiveTopology(topology.raw()) }; [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 69 | self.as_ref().VSSetShader(vertex_shader.as_ptr(), class_instances.as_ptr(), class_instances.len() as UINT) [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | self.as_ref().PSSetShader(pixel_shader.as_ptr(), class_instances.as_ptr(), class_instances.len() as UINT) [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | unsafe { self.as_ref().Draw(vertex_count, start_vertex_location) }; [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&SwapChain`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&SwapChain` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/dxgi/swap_chain.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / com_wrapper! { [INFO] [stdout] 6 | | pub struct SwapChain(*mut IDXGISwapChain); [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] which is required by `&swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | self.as_ref().IASetVertexBuffers(start_slot, n as UINT, vertex_buffers.as_ptr(), strides.as_ptr(), offsets.as_ptr()) [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut SwapChain`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut SwapChain` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/dxgi/swap_chain.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / com_wrapper! { [INFO] [stdout] 6 | | pub struct SwapChain(*mut IDXGISwapChain); [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] which is required by `&mut swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&SwapChain`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/dxgi/swap_chain.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | let result = unsafe { self.as_ref().Present(sync_interval, flags) }; [INFO] [stdout] | ^^^^^^ method cannot be called on `&SwapChain` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] which is required by `&swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&SwapChain`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/dxgi/swap_chain.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | let result = unsafe { self.as_ref().GetBuffer(buffer, &T::uuidof(), &mut surface) }; [INFO] [stdout] | ^^^^^^ method cannot be called on `&SwapChain` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] which is required by `&swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 69 | self.as_ref().VSSetShader(vertex_shader.as_ptr(), class_instances.as_ptr(), class_instances.len() as UINT) [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | self.as_ref().PSSetShader(pixel_shader.as_ptr(), class_instances.as_ptr(), class_instances.len() as UINT) [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ptr` exists for reference `&[FeatureLevel]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/device_and_swap_chain.rs:37:49 [INFO] [stdout] | [INFO] [stdout] 37 | feature_levels.map_or(null(), |s| s.as_ptr() as *const _), [INFO] [stdout] | ^^^^^^ method cannot be called on `&[FeatureLevel]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/feature_level.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct FeatureLevel(pub(crate) D3D_FEATURE_LEVEL); [INFO] [stdout] | ----------------------- doesn't satisfy `feature_level::FeatureLevel: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `feature_level::FeatureLevel: Sized` [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `com::Wrapper` defines an item `as_ptr`, perhaps you need to implement it [INFO] [stdout] --> src/com/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Wrapper : Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&DeviceContext`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/d3d11/device_context.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | unsafe { self.as_ref().Draw(vertex_count, start_vertex_location) }; [INFO] [stdout] | ^^^^^^ method cannot be called on `&DeviceContext` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `device_context::DeviceContext: AsRef<_>` [INFO] [stdout] which is required by `&device_context::DeviceContext: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `len` exists for reference `&[FeatureLevel]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/device_and_swap_chain.rs:38:49 [INFO] [stdout] | [INFO] [stdout] 38 | feature_levels.map_or(0, |s| s.len() as u32), [INFO] [stdout] | ^^^ method cannot be called on `&[FeatureLevel]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/feature_level.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct FeatureLevel(pub(crate) D3D_FEATURE_LEVEL); [INFO] [stdout] | ----------------------- doesn't satisfy `feature_level::FeatureLevel: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `feature_level::FeatureLevel: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&SwapChain`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 38 | fn clone (&self) -> Self { unsafe { self.as_ref().AddRef() }; Self(self.0) } [INFO] [stdout] | ^^^^^^ method cannot be called on `&SwapChain` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/dxgi/swap_chain.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / com_wrapper! { [INFO] [stdout] 6 | | pub struct SwapChain(*mut IDXGISwapChain); [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] which is required by `&swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for mutable reference `&mut SwapChain`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/mod.rs:42:49 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] ... [INFO] [stdout] 42 | fn drop (&mut self) { unsafe { self.as_ref().Release() }; } [INFO] [stdout] | ^^^^^^ method cannot be called on `&mut SwapChain` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/dxgi/swap_chain.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / com_wrapper! { [INFO] [stdout] 6 | | pub struct SwapChain(*mut IDXGISwapChain); [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] which is required by `&mut swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] = note: this error originates in the macro `com_wrapper` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `hwnd` found for struct `winit::window::Window` in the current scope [INFO] [stdout] --> src/main.rs:107:30 [INFO] [stdout] | [INFO] [stdout] 107 | OutputWindow: window.hwnd() as HWND, [INFO] [stdout] | ^^^^ method not found in `Window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::AsRef` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::convert::AsRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&SwapChain`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/dxgi/swap_chain.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | let result = unsafe { self.as_ref().Present(sync_interval, flags) }; [INFO] [stdout] | ^^^^^^ method cannot be called on `&SwapChain` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] which is required by `&swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&SwapChain`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/dxgi/swap_chain.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | let result = unsafe { self.as_ref().GetBuffer(buffer, &T::uuidof(), &mut surface) }; [INFO] [stdout] | ^^^^^^ method cannot be called on `&SwapChain` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/mod.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct $wrapper(*mut $target); [INFO] [stdout] | ---------------------------------- doesn't satisfy `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] which is required by `&swap_chain::SwapChain: AsRef<_>` [INFO] [stdout] note: the trait `AsRef` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:218:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 61 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_ptr` exists for reference `&[FeatureLevel]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/device_and_swap_chain.rs:37:49 [INFO] [stdout] | [INFO] [stdout] 37 | feature_levels.map_or(null(), |s| s.as_ptr() as *const _), [INFO] [stdout] | ^^^^^^ method cannot be called on `&[FeatureLevel]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/feature_level.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct FeatureLevel(pub(crate) D3D_FEATURE_LEVEL); [INFO] [stdout] | ----------------------- doesn't satisfy `feature_level::FeatureLevel: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `feature_level::FeatureLevel: Sized` [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `com::Wrapper` defines an item `as_ptr`, perhaps you need to implement it [INFO] [stdout] --> src/com/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Wrapper : Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_win32_d3d11` (bin "rust_win32_d3d11") due to 62 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: the method `len` exists for reference `&[FeatureLevel]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/com/device_and_swap_chain.rs:38:49 [INFO] [stdout] | [INFO] [stdout] 38 | feature_levels.map_or(0, |s| s.len() as u32), [INFO] [stdout] | ^^^ method cannot be called on `&[FeatureLevel]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/com/d3d11/feature_level.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct FeatureLevel(pub(crate) D3D_FEATURE_LEVEL); [INFO] [stdout] | ----------------------- doesn't satisfy `feature_level::FeatureLevel: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `feature_level::FeatureLevel: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `hwnd` found for struct `winit::window::Window` in the current scope [INFO] [stdout] --> src/main.rs:107:30 [INFO] [stdout] | [INFO] [stdout] 107 | OutputWindow: window.hwnd() as HWND, [INFO] [stdout] | ^^^^ method not found in `Window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::AsRef` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::convert::AsRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 61 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_win32_d3d11` (bin "rust_win32_d3d11" test) due to 62 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "5af003be8c495810f772c431422f09e654edb78443f5ba97e3be166669c612d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5af003be8c495810f772c431422f09e654edb78443f5ba97e3be166669c612d6", kill_on_drop: false }` [INFO] [stdout] 5af003be8c495810f772c431422f09e654edb78443f5ba97e3be166669c612d6