Rename the no_std feature to core.

See
https://github.com/yurydelendik/wasmparser.rs/pull/49#issuecomment-375436225
for more details.
This commit is contained in:
Dan Gohman
2018-03-22 13:43:06 -07:00
parent aaf0def241
commit fc7b0a7e51
12 changed files with 48 additions and 48 deletions

View File

@@ -1026,9 +1026,9 @@ mod tests {
match verify_function(&func, &flags) {
Ok(()) => {}
Err(err) => {
#[cfg(not(feature = "no_std"))]
#[cfg(feature = "std")]
panic!(err.message);
#[cfg(feature = "no_std")]
#[cfg(not(feature = "std"))]
panic!("function failed to verify");
}
}
@@ -1205,9 +1205,9 @@ mod tests {
match verify_function(&func, &flags) {
Ok(()) => {}
Err(err) => {
#[cfg(not(feature = "no_std"))]
#[cfg(feature = "std")]
panic!(err.message);
#[cfg(feature = "no_std")]
#[cfg(not(feature = "std"))]
panic!("function failed to verify");
}
}
@@ -1256,9 +1256,9 @@ mod tests {
match verify_function(&func, &flags) {
Ok(()) => {}
Err(err) => {
#[cfg(not(feature = "no_std"))]
#[cfg(feature = "std")]
panic!(err.message);
#[cfg(feature = "no_std")]
#[cfg(not(feature = "std"))]
panic!("function failed to verify");
}
}