error[E0034]: multiple applicable items in scope
--> /private/tmp/nix-build-xprite-editor-unstable-2019-09-22.drv-0/xprite-editor-unstable-2019-09-22-vendor.tar.gz/imageproc/src/hog.rs:440:33
|
440 | let intensity = u8::clamp(hist[bucket]);
| ^^^^^ multiple `clamp` found
|
= note: candidate #1 is defined in an impl of the trait `Ord` for the type `u8`
note: candidate #2 is defined in the trait `Clamp`
--> /private/tmp/nix-build-xprite-editor-unstable-2019-09-22.drv-0/xprite-editor-unstable-2019-09-22-vendor.tar.gz/imageproc/src/definitions.rs:68:5
|
68 | fn clamp(x: T) -> Self;
| ^^^^^^^^^^^^^^^^^^^^^^^
help: disambiguate the associated function for candidate #1
|
440 | let intensity = Ord::clamp(hist[bucket]);
| ~~~~~
help: disambiguate the associated function for candidate #2
|
440 | let intensity = Clamp::clamp(hist[bucket]);
| ~~~~~~~
which seem to be stemming from using an old version of imageproc (i.e., v0.18).
However, trivially upgrading to a newer version of imageproc (v0.22.0) breaks xprite-editor as it still relies on some old exported interfaces (affine module and its functions affine::translate) that are not available in the newer versions of imageproc.
Steps To Reproduce
Steps to reproduce the behavior:
build fails locally with nix-build -A xprite-editor
Expected behavior
Build succeeds
Notify maintainers
@marsam
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
Describe the bug
xprite-editor fails to build on x86_64-darwin, aarch64-darwin, and x86_64-linux on hydra.
All of them suffer from the same problem
which seem to be stemming from using an old version of imageproc (i.e., v0.18). However, trivially upgrading to a newer version of imageproc (v0.22.0) breaks xprite-editor as it still relies on some old exported interfaces (
affine
module and its functionsaffine::translate
) that are not available in the newer versions of imageproc.Steps To Reproduce
Steps to reproduce the behavior:
nix-build -A xprite-editor
Expected behavior
Build succeeds
Notify maintainers
@marsam
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information: