[INFO] fetching crate qoqo-aqt 0.7.0... [INFO] checking qoqo-aqt-0.7.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate qoqo-aqt 0.7.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate qoqo-aqt 0.7.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate qoqo-aqt 0.7.0 [INFO] finished tweaking crates.io crate qoqo-aqt 0.7.0 [INFO] tweaked toml for crates.io crate qoqo-aqt 0.7.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 202 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding core-foundation v0.9.4 (available: v0.10.0) [INFO] [stderr] Adding fixedbitset v0.4.2 (available: v0.5.7) [INFO] [stderr] Adding foreign-types v0.3.2 (available: v0.5.0) [INFO] [stderr] Adding foreign-types-shared v0.1.1 (available: v0.3.1) [INFO] [stderr] Adding h2 v0.3.26 (available: v0.4.6) [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (available: v0.4.0) [INFO] [stderr] Adding http v0.2.12 (available: v1.1.0) [INFO] [stderr] Adding http-body v0.4.6 (available: v1.0.1) [INFO] [stderr] Adding hyper v0.14.30 (available: v1.4.1) [INFO] [stderr] Adding hyper-tls v0.5.0 (available: v0.6.0) [INFO] [stderr] Adding idna v0.5.0 (available: v1.0.2) [INFO] [stderr] Adding itertools v0.12.1 (available: v0.13.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding nalgebra v0.32.6 (available: v0.33.0) [INFO] [stderr] Adding ndarray v0.15.6 (available: v0.16.1) [INFO] [stderr] Adding pyo3 v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding pyo3-build-config v0.20.3 (available: v0.22.3) [INFO] [stderr] Adding pyo3-build-config v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding pyo3-ffi v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding pyo3-macros v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding pyo3-macros-backend v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding qoqo v1.14.0 (available: v1.15.2) [INFO] [stderr] Adding qoqo-macros v1.14.0 (available: v1.15.2) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.7) [INFO] [stderr] Adding roqoqo v1.14.0 (available: v1.15.2) [INFO] [stderr] Adding roqoqo-derive v1.14.0 (available: v1.15.2) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding rustls-pemfile v1.0.4 (available: v2.1.3) [INFO] [stderr] Adding security-framework v2.11.1 (available: v3.0.0) [INFO] [stderr] Adding simba v0.8.1 (available: v0.9.0) [INFO] [stderr] Adding struqture v1.7.1 (available: v1.9.2) [INFO] [stderr] Adding struqture-py v1.7.1 (available: v1.9.2) [INFO] [stderr] Adding sync_wrapper v0.1.2 (available: v1.0.1) [INFO] [stderr] Adding system-configuration v0.5.1 (available: v0.6.1) [INFO] [stderr] Adding system-configuration-sys v0.5.0 (available: v0.6.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.48.0 (available: v0.59.0) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] [stderr] Adding windows-targets v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding winreg v0.50.0 (available: v0.52.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf7f2cd5e6637d22b5da4727ea5b3a3a4c042badd88dc9f99c8f05c2e453e0c6 [INFO] running `Command { std: "docker" "start" "-a" "cf7f2cd5e6637d22b5da4727ea5b3a3a4c042badd88dc9f99c8f05c2e453e0c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf7f2cd5e6637d22b5da4727ea5b3a3a4c042badd88dc9f99c8f05c2e453e0c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf7f2cd5e6637d22b5da4727ea5b3a3a4c042badd88dc9f99c8f05c2e453e0c6", kill_on_drop: false }` [INFO] [stdout] cf7f2cd5e6637d22b5da4727ea5b3a3a4c042badd88dc9f99c8f05c2e453e0c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ecf05930f6cf17a0b277098abb173353a154d7cd099fd3c4da43d57f8686e217 [INFO] running `Command { std: "docker" "start" "-a" "ecf05930f6cf17a0b277098abb173353a154d7cd099fd3c4da43d57f8686e217", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling schemars v0.8.21 [INFO] [stderr] Compiling cc v1.1.21 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling portable-atomic v1.8.0 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Compiling pyo3-build-config v0.21.2 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling openssl-src v300.3.2+3.3.2 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking dyn-clone v1.0.17 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking bytemuck v1.18.0 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking safe_arch v0.7.2 [INFO] [stderr] Compiling pyo3-ffi v0.21.2 [INFO] [stderr] Compiling pyo3 v0.21.2 [INFO] [stderr] Compiling pyo3-build-config v0.20.3 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling test-case-core v3.3.1 [INFO] [stderr] Compiling pyo3-macros-backend v0.21.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking wide v0.7.28 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling schemars_derive v0.8.21 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling test-case-macros v3.3.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Checking test-case v3.3.1 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Checking inventory v0.3.15 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling pyo3-macros v0.21.2 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling roqoqo v1.14.0 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling struqture-py v1.7.1 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling roqoqo-derive v1.14.0 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking ipnet v2.10.0 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking qoqo_calculator v1.2.4 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Compiling qoqo v1.14.0 [INFO] [stderr] Compiling struqture-py-macros v1.9.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking struqture v1.7.1 [INFO] [stderr] Checking qoqo_calculator_pyo3 v1.2.4 [INFO] [stderr] Checking numpy v0.21.0 [INFO] [stderr] Checking nalgebra v0.32.6 [INFO] [stderr] Compiling qoqo-macros v1.14.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking roqoqo-aqt v0.7.0 [INFO] [stderr] Checking qoqo-aqt v0.7.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `qoqo_aqt` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/backend.rs [INFO] [stderr] * src/devices/mod.rs [INFO] [stderr] * src/devices/noisy_simulator_device.rs [INFO] [stderr] * src/devices/simulator_device.rs [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> src/devices/simulator_device.rs:29:1 [INFO] [stderr] | [INFO] [stderr] 29 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> src/devices/noisy_simulator_device.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> src/backend.rs:44:1 [INFO] [stderr] | [INFO] [stderr] 44 | { unsafe #[pymethods]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `backend::convert_into_backend`, `backend::BackendWrapper` [INFO] [stderr] --> src/lib.rs:29:19 [INFO] [stderr] | [INFO] [stderr] 29 | pub use backend::{convert_into_backend, BackendWrapper}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ no `BackendWrapper` in `backend` [INFO] [stderr] | | [INFO] [stderr] | no `convert_into_backend` in `backend` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `SimulatorDeviceWrapper` in this scope [INFO] [stderr] --> src/devices/mod.rs:38:19 [INFO] [stderr] | [INFO] [stderr] 38 | m.add_class::()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 37 | pub fn aqt_devices(_py: Python, m: &Bound) -> PyResult<()> { [INFO] [stderr] | ++++++++++++++++++++++++ [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `NoisySimulatorDeviceWrapper` in this scope [INFO] [stderr] --> src/devices/mod.rs:39:19 [INFO] [stderr] | [INFO] [stderr] 39 | m.add_class::()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: you might be missing a type parameter [INFO] [stderr] | [INFO] [stderr] 37 | pub fn aqt_devices(_py: Python, m: &Bound) -> PyResult<()> { [INFO] [stderr] | +++++++++++++++++++++++++++++ [INFO] [stderr] [INFO] [stderr] warning: unused import: `simulator_device::*` [INFO] [stderr] --> src/devices/mod.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | pub use simulator_device::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `noisy_simulator_device::*` [INFO] [stderr] --> src/devices/mod.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 21 | pub use noisy_simulator_device::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors; 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:36:31 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn new(number_qubits: usize) -> Self { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn __copy__(&self) -> SimulatorDeviceWrapper { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:54:25 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn __deepcopy__(&self, _memodict: Py) -> SimulatorDeviceWrapper { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:54:43 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn __deepcopy__(&self, _memodict: Py) -> SimulatorDeviceWrapper { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:65:23 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn to_bincode(&self) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn from_bincode(input: &Bound) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | fn to_json(&self) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:122:25 [INFO] [stdout] | [INFO] [stdout] 122 | fn from_json(input: &str) -> PyResult { [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:135:26 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn number_qubits(&self) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:144:24 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn remote_host(&self) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn _enum_to_bincode(&self) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:35:31 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new(number_qubits: usize) -> Self { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn __copy__(&self) -> NoisySimulatorDeviceWrapper { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn __deepcopy__(&self, _memodict: Py) -> NoisySimulatorDeviceWrapper { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:53:43 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn __deepcopy__(&self, _memodict: Py) -> NoisySimulatorDeviceWrapper { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:64:23 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn to_bincode(&self) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn from_bincode(input: &Bound) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:104:16 [INFO] [stdout] | [INFO] [stdout] 104 | fn to_json(&self) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 121 | fn from_json(input: &str) -> PyResult { [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:134:26 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn number_qubits(&self) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:143:24 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn remote_host(&self) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:156:29 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn _enum_to_bincode(&self) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:57:24 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn new(device: &Bound, access_token: Option) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn to_aqt_json(&self, circuit: &Bound) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:79:40 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn to_aqt_json(&self, circuit: &Bound) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn __copy__(&self) -> BackendWrapper { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/backend.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:103:25 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn __deepcopy__(&self, _memodict: Py) -> BackendWrapper { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:103:43 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn __deepcopy__(&self, _memodict: Py) -> BackendWrapper { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:114:23 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn to_bincode(&self) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/backend.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:135:32 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn from_bincode(input: &Bound) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | fn to_json(&self) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/backend.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:170:25 [INFO] [stdout] | [INFO] [stdout] 170 | fn from_json(input: &str) -> PyResult { [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:197:24 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn run_circuit(&self, circuit: &Bound) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:197:40 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn run_circuit(&self, circuit: &Bound) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:231:38 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn run_measurement_registers(&self, measurement: &Bound) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:231:58 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn run_measurement_registers(&self, measurement: &Bound) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:334:9 [INFO] [stdout] | [INFO] [stdout] 334 | &self, [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/backend.rs:335:22 [INFO] [stdout] | [INFO] [stdout] 335 | measurement: &Bound, [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/backend.rs:364:8 [INFO] [stdout] | [INFO] [stdout] 364 | if let Ok(try_downcast) = input.extract::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^--------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/backend.rs:366:5 [INFO] [stdout] | [INFO] [stdout] 366 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 364 ~ match input.extract::() { Ok(try_downcast) => { [INFO] [stdout] 365 | Ok(try_downcast.internal) [INFO] [stdout] 366 ~ } _ => { [INFO] [stdout] 367 | // Everything that follows tries to extract the circuit when two separately [INFO] [stdout] ... [INFO] [stdout] 375 | deserialize(&bytes[..]).map_err(|_| QoqoBackendError::CannotExtractObject) [INFO] [stdout] 376 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: expected item, found `{` [INFO] [stdout] --> src/devices/noisy_simulator_device.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | { unsafe #[pymethods]} [INFO] [stdout] | ^ expected item [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected item, found `{` [INFO] [stdout] --> src/backend.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | { unsafe #[pymethods]} [INFO] [stdout] | ^ expected item [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `backend::convert_into_backend`, `backend::BackendWrapper` [INFO] [stdout] --> src/lib.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | pub use backend::{convert_into_backend, BackendWrapper}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ no `BackendWrapper` in `backend` [INFO] [stdout] | | [INFO] [stdout] | no `convert_into_backend` in `backend` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoisySimulatorDeviceWrapper` in this scope [INFO] [stdout] --> src/devices/mod.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | m.add_class::()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/devices/simulator_device.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct SimulatorDeviceWrapper { [INFO] [stdout] | --------------------------------- similarly named struct `SimulatorDeviceWrapper` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 39 | m.add_class::()?; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 37 | pub fn aqt_devices(_py: Python, m: &Bound) -> PyResult<()> { [INFO] [stdout] | +++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `noisy_simulator_device::*` [INFO] [stdout] --> src/devices/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use noisy_simulator_device::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:36:31 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn new(number_qubits: usize) -> Self { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn __copy__(&self) -> SimulatorDeviceWrapper { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:54:25 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn __deepcopy__(&self, _memodict: Py) -> SimulatorDeviceWrapper { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:54:43 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn __deepcopy__(&self, _memodict: Py) -> SimulatorDeviceWrapper { [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:65:23 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn to_bincode(&self) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:86:32 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn from_bincode(input: &Bound) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:105:16 [INFO] [stdout] | [INFO] [stdout] 105 | fn to_json(&self) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:122:25 [INFO] [stdout] | [INFO] [stdout] 122 | fn from_json(input: &str) -> PyResult { [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:135:26 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn number_qubits(&self) -> usize { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:144:24 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn remote_host(&self) -> String { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::pymethods::BoundRef::<'a, 'py, pyo3::PyAny>::ref_from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/devices/simulator_device.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn _enum_to_bincode(&self) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/devices/simulator_device.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0412, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `qoqo-aqt` (lib test) due to 5 previous errors; 12 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "ecf05930f6cf17a0b277098abb173353a154d7cd099fd3c4da43d57f8686e217", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecf05930f6cf17a0b277098abb173353a154d7cd099fd3c4da43d57f8686e217", kill_on_drop: false }` [INFO] [stdout] ecf05930f6cf17a0b277098abb173353a154d7cd099fd3c4da43d57f8686e217