Skip to content

Regression "pattern _ not covered" in objc-encode-0.0.2, Rust 1.16 #40250

Closed
@brson

Description

@brson
brian@ip-10-145-43-250:~/dev/rust-objc-encode⟫ git remote -v
origin  https://github.com/SSheldon/rust-objc-encode (fetch)
origin  https://github.com/SSheldon/rust-objc-encode (push)
brian@ip-10-145-43-250:~/dev/rust-objc-encode⟫ git log -1
commit 1e377bf4481835767a5e31aa5480aa8ac91b56de
Author: Steven Sheldon <steven@sasheldon.com>
Date:   Sun Feb 19 16:43:21 2017 -0800

    Bumped to version 0.0.2
error[E0004]: non-exhaustive patterns: `_` not covered
  --> src/encoding/never.rs:16:15
   |
16 |         match self { }
   |               ^^^^ pattern `_` not covered

error[E0004]: non-exhaustive patterns: `_` not covered
  --> src/encoding/never.rs:22:15
   |
22 |         match self { }
   |               ^^^^ pattern `_` not covered

error[E0004]: non-exhaustive patterns: `_` not covered
  --> src/encoding/never.rs:26:15
   |
26 |         match self { }
   |               ^^^^ pattern `_` not covered

error[E0004]: non-exhaustive patterns: `_` not covered
  --> src/encoding/never.rs:32:15
   |
32 |         match self { }
   |               ^^^^ pattern `_` not covered

error: aborting due to 4 previous errors

error: build failed

The type is defined as

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Never { }

cc @SSheldon

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions