Non-exhaustive patterns
Closed this issue · 1 comments
ajsyp commented
My Cargo.toml pulls in rust-ffmpeg
in this way:
[dependencies.ffmpeg]
git = "https://github.com/meh/rust-ffmpeg.git"
features = ["build"]
However, building the project (cargo build
) fails with these errors:
$ cargo build
Updating git repository `https://github.com/meh/rust-ffmpeg.git`
...
Compiling ffmpeg v0.2.0-alpha.2 (https://github.com/meh/rust-ffmpeg.git#28b7a82a)
...
Compiling ffmpeg-sys v3.4.0
warning: redundant linker flag specified for library `X11`
warning: redundant linker flag specified for library `X11`
warning: redundant linker flag specified for library `va`
warning: redundant linker flag specified for library `va`
warning: redundant linker flag specified for library `SDL2`
error[E0004]: non-exhaustive patterns: `AVCOL_SPC_CHROMA_DERIVED_NCL`, `AVCOL_SPC_CHROMA_DERIVED_CL` and `AVCOL_SPC_ICTCP` not covered
--> /home/ajsyp/.cargo/git/checkouts/rust-ffmpeg-9e0ba839e85456a1/28b7a82/src/util/color/space.rs:34:9
|
34 | match value {
| ^^^^^ patterns `AVCOL_SPC_CHROMA_DERIVED_NCL`, `AVCOL_SPC_CHROMA_DERIVED_CL` and `AVCOL_SPC_ICTCP` not covered
error[E0004]: non-exhaustive patterns: `AV_PIX_FMT_D3D11`, `AV_PIX_FMT_GRAY9BE`, `AV_PIX_FMT_GRAY9LE` and 5 more not covered
--> /home/ajsyp/.cargo/git/checkouts/rust-ffmpeg-9e0ba839e85456a1/28b7a82/src/util/format/pixel.rs:357:9
|
357 | match value {
| ^^^^^ patterns `AV_PIX_FMT_D3D11`, `AV_PIX_FMT_GRAY9BE`, `AV_PIX_FMT_GRAY9LE` and 5 more not covered
error[E0004]: non-exhaustive patterns: `AV_FRAME_DATA_CONTENT_LIGHT_LEVEL` and `AV_FRAME_DATA_ICC_PROFILE` not covered
--> /home/ajsyp/.cargo/git/checkouts/rust-ffmpeg-9e0ba839e85456a1/28b7a82/src/util/frame/side_data.rs:41:9
|
41 | match value {
| ^^^^^ patterns `AV_FRAME_DATA_CONTENT_LIGHT_LEVEL` and `AV_FRAME_DATA_ICC_PROFILE` not covered
error[E0004]: non-exhaustive patterns: `AV_CODEC_ID_BITPACKED`, `AV_CODEC_ID_MSCC`, `AV_CODEC_ID_SRGC` and 5 more not covered
--> /home/ajsyp/.cargo/git/checkouts/rust-ffmpeg-9e0ba839e85456a1/28b7a82/src/codec/id.rs:493:9
|
493 | match value {
| ^^^^^ patterns `AV_CODEC_ID_BITPACKED`, `AV_CODEC_ID_MSCC`, `AV_CODEC_ID_SRGC` and 5 more not covered
error[E0004]: non-exhaustive patterns: `AV_PKT_DATA_CONTENT_LIGHT_LEVEL` and `AV_PKT_DATA_A53_CC` not covered
--> /home/ajsyp/.cargo/git/checkouts/rust-ffmpeg-9e0ba839e85456a1/28b7a82/src/codec/packet/side_data.rs:37:9
|
37 | match value {
| ^^^^^ patterns `AV_PKT_DATA_CONTENT_LIGHT_LEVEL` and `AV_PKT_DATA_A53_CC` not covered
error: aborting due to 5 previous errors
error: Could not compile `ffmpeg`.
To learn more, run the command again with --verbose.
Any insight into what might be causing this?