diff options
| author | gnzlbg <gnzlbg@users.noreply.github.com> | 2018-04-27 04:54:15 +0200 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-04-26 21:54:15 -0500 |
| commit | 30962e58e61873e487506e662244e2f47d06441c (patch) | |
| tree | f19ae1841098b7a05104db196eaf9af643037ae4 /library/stdarch/examples | |
| parent | 189283e76fa1483d461085cc2b9a6b9f197e3b62 (diff) | |
fix errors/warnings from the stabilization of cfg_target_feature and target_feature (#432)
* fix build after stabilization of cfg_target_feature and target_feature * fix doc tests * fix spurious unused_attributes warning * fix more unused attribute warnings * More unnecessary target features * Remove no longer needed trait imports * Remove fixed upstream workarounds * Fix parsing the #[assert_instr] macro Following upstream proc_macro changes * Fix form and parsing of #[simd_test] * Don't use Cargo features for testing modes Instead use RUSTFLAGS with `--cfg`. This'll help us be compatible with the latest Cargo where a tweak to workspaces and features made the previous invocations we had invalid. * Don't thread RUSTFLAGS through docker * Re-gate on x86 verification Closes #411
Diffstat (limited to 'library/stdarch/examples')
| -rw-r--r-- | library/stdarch/examples/hex.rs | 2 | ||||
| -rw-r--r-- | library/stdarch/examples/nbody.rs | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/library/stdarch/examples/hex.rs b/library/stdarch/examples/hex.rs index 5aec17d08c9..5b045c61269 100644 --- a/library/stdarch/examples/hex.rs +++ b/library/stdarch/examples/hex.rs @@ -12,7 +12,7 @@ //! //! and you should see `746573740a` get printed out. -#![feature(cfg_target_feature, target_feature, stdsimd)] +#![feature(stdsimd)] #![cfg_attr(test, feature(test))] #![cfg_attr(feature = "cargo-clippy", allow(result_unwrap_used, print_stdout, option_unwrap_used, diff --git a/library/stdarch/examples/nbody.rs b/library/stdarch/examples/nbody.rs index 86cc8ef38f6..c67fbdc5613 100644 --- a/library/stdarch/examples/nbody.rs +++ b/library/stdarch/examples/nbody.rs @@ -3,9 +3,8 @@ //! [bg]: https://benchmarksgame.alioth.debian.org/u64q/nbody-description. //! html#nbody -#![cfg_attr(feature = "strict", deny(warnings))] -#![feature(cfg_target_feature, stdsimd)] -#![feature(target_feature)] +#![cfg_attr(stdsimd_strict, deny(warnings))] +#![feature(stdsimd)] #![cfg_attr(feature = "cargo-clippy", allow(similar_names, missing_docs_in_private_items, shadow_reuse, print_stdout))] |
