Skip to content

Commit

Permalink
update Promise variants to align with OpenBSD 6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
delan committed Nov 14, 2020
1 parent cf833cb commit 3b9de37
Showing 1 changed file with 39 additions and 35 deletions.
74 changes: 39 additions & 35 deletions src/promise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,114 +2,117 @@
// using the helper documented at </variants/README.md>.

pub enum Promise {
/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Audio,

/// OpenBSD 6.1–6.7
/// OpenBSD 6.1–6.8
Bpf,

/// OpenBSD 6.0–6.7
/// OpenBSD 6.0–6.8
Chown,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Cpath,

/// OpenBSD 6.1–6.7
/// OpenBSD 6.1–6.8
Disklabel,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Dns,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Dpath,

/// OpenBSD 6.1–6.7
/// OpenBSD 6.1–6.8
Drm,

/// OpenBSD 6.3–6.7
/// OpenBSD 6.3–6.8
Error,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Exec,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Fattr,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Flock,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Getpw,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Id,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Inet,

/// OpenBSD 5.9–6.0
Ioctl,

/// OpenBSD 6.1–6.7
/// OpenBSD 6.1–6.8
Mcast,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Pf,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Proc,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
ProtExec,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Ps,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Recvfd,

/// OpenBSD 6.1–6.7
/// OpenBSD 6.1–6.8
Route,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Rpath,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Sendfd,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Settime,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Stdio,

/// OpenBSD 6.1–6.7
/// OpenBSD 6.1–6.8
Tape,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Tmppath,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Tty,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Unix,

/// OpenBSD 6.4–6.7
/// OpenBSD 6.4–6.8
Unveil,

/// OpenBSD 6.5–6.7
/// OpenBSD 6.5–6.8
Video,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Vminfo,

/// OpenBSD 6.1–6.7
/// OpenBSD 6.1–6.8
Vmm,

/// OpenBSD 5.9–6.7
/// OpenBSD 5.9–6.8
Wpath,

/// OpenBSD 6.8
Wroute,

// FIXME rust-lang/rust#44109
#[doc(hidden)]
_NonExhaustive,
Expand Down Expand Up @@ -154,6 +157,7 @@ impl Promise {
Promise::Vminfo => "vminfo",
Promise::Vmm => "vmm",
Promise::Wpath => "wpath",
Promise::Wroute => "wroute",
_ => panic!("Promise::to_promise_string is incomplete (bug)"),
}
}
Expand Down

0 comments on commit 3b9de37

Please sign in to comment.