add assert_ne and debug_assert_ne macros

This commit is contained in:
Ashley Williams
2016-07-27 10:47:19 -07:00
parent c772948b68
commit 3d8d55787b
4 changed files with 100 additions and 2 deletions

View File

@@ -304,8 +304,8 @@ use prelude::v1::*;
// We want to reexport a few macros from core but libcore has already been
// imported by the compiler (via our #[no_std] attribute) In this case we just
// add a new crate name so we can attach the reexports to it.
#[macro_reexport(assert, assert_eq, debug_assert, debug_assert_eq,
unreachable, unimplemented, write, writeln, try)]
#[macro_reexport(assert, assert_eq, assert_ne, debug_assert, debug_assert_eq,
debug_assert_ne, unreachable, unimplemented, write, writeln, try)]
extern crate core as __core;
#[macro_use]