Additional NonZero conversions by clarfonthey · Pull Request #129036 · rust-lang/rust (original) (raw)

#16 2.839 Building wheels for collected packages: reuse
#16 2.840   Building wheel for reuse (pyproject.toml): started
#16 3.082   Building wheel for reuse (pyproject.toml): finished with status 'done'
#16 3.084   Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#16 3.084   Stored in directory: /tmp/pip-ephem-wheel-cache-pfpcc6uy/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#16 3.087 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#16 3.492 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#16 3.492 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#16 DONE 3.6s
---
   Compiling std v0.0.0 (/checkout/library/std)
error: unused import: `hint`
  --> core/src/num/nonzero.rs:10:18
   |
10 | use crate::{fmt, hint, intrinsics, ptr, slice, ub_checks};
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`


error[E0119]: conflicting implementations of trait `TryFrom<&_>` for type `&NonZero<_>`
   --> core/src/convert/mod.rs:805:1
    |
805 | / impl<T, U> TryFrom<U> for T
807 | |     U: Into<T>,
807 | |     U: Into<T>,
    | |_______________^ conflicting implementation for `&NonZero<_>`
   ::: core/src/num/nonzero.rs:310:1
    |
    |
310 | / impl<'a, T> TryFrom<&'a T> for &'a NonZero<T>
311 | | where
312 | |     T: ZeroablePrimitive,
    | |_________________________- first implementation here
    |
    = note: downstream crates may implement trait `convert::From<&_>` for type `&num::nonzero::NonZero<_>`
For more information about this error, try `rustc --explain E0119`.
error: could not compile `core` (lib) due to 2 previous errors
Build completed unsuccessfully in 0:00:24
  local time: Sun Sep  1 20:02:44 UTC 2024