Skip to content

Build failure on macOS, error[E0004]: non-exhaustive patterns: Inspect not covered #24

Closed
@c3d

Description

@c3d

Building on macOS with cargo 1.62.0 (a748cf5a3 2022-06-08), M1 machine, Monterey 12.5, main being commit 023c665, I get the following:

~/Work/krunvm [main]> cargo build
   Compiling libc v0.2.90
   Compiling proc-macro2 v1.0.24
   Compiling serde v1.0.124
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.64
   Compiling bitflags v1.2.1
   Compiling unicode-width v0.1.8
   Compiling cfg-if v0.1.10
   Compiling serde_derive v1.0.124
   Compiling vec_map v0.8.2
   Compiling ansi_term v0.11.0
   Compiling strsim v0.8.0
   Compiling krunvm v0.1.6 (/Users/ddd/Work/krunvm)
   Compiling text_io v0.1.8
   Compiling textwrap v0.11.0
   Compiling dirs-sys v0.3.5
   Compiling atty v0.2.14
   Compiling clap v2.33.3
   Compiling directories v2.0.2
   Compiling quote v1.0.9
   Compiling toml v0.5.8
   Compiling confy v0.4.0
error[E0004]: non-exhaustive patterns: `Inspect` not covered
  --> src/utils.rs:47:11
   |
47 |     match cmd {
   |           ^^^ pattern `Inspect` not covered
   |
note: `BuildahCommand` defined here
  --> src/utils.rs:12:5
   |
10 | pub enum BuildahCommand {
   |          --------------
11 |     From,
12 |     Inspect,
   |     ^^^^^^^ not covered
   = note: the matched value is of type `BuildahCommand`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
   |
66 ~         }
67 +         Inspect => todo!()
   |

For more information about this error, try `rustc --explain E0004`.
error: could not compile `krunvm` due to previous error

The build error does not occur on Linux with cargo 1.59.0 (49d8809dc 2022-02-10) (Fedora 36).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions