Skip to content

Commit 06fdfac

Browse files
committed
netbsd add deprecation warning for ELAST
Requested in #3040
1 parent f13fd42 commit 06fdfac

File tree

1 file changed

+6
-0
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+6
-0
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,12 @@ pub const ENOLINK: ::c_int = 95;
14231423
pub const EPROTO: ::c_int = 96;
14241424
pub const EOWNERDEAD: ::c_int = 97;
14251425
pub const ENOTRECOVERABLE: ::c_int = 98;
1426+
#[deprecated(
1427+
since = "0.2.143",
1428+
note = "This value will always match the highest defined error number \
1429+
and thus is not stable. \
1430+
See #3040 for more info."
1431+
)]
14261432
pub const ELAST: ::c_int = 98;
14271433

14281434
pub const F_DUPFD_CLOEXEC: ::c_int = 12;

0 commit comments

Comments
 (0)