Skip to content

Commit

Permalink
Let packed_simd to be sloppy
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed May 16, 2021
1 parent 728d475 commit 76916f1
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 23 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,6 @@ jobs:
rustup toolchain install nightly -c rustfmt --allow-downgrade
ci/all.sh check_fmt || true
stage: tools
- name: "clippy"
install: true
script: |
rustup component add clippy
ci/all.sh clippy
stage: tools

allow_failures:
# FIXME: ISPC cannot be found?
Expand Down
3 changes: 3 additions & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# FIXME: Many members of this workspace, including aobench, mandelbrot, and stencil,
# currently trigger a "null pointer deref" warning.
# This is likely due to unsoundness inside packed_simd.
[workspace]
members = [
"aobench",
Expand Down
4 changes: 3 additions & 1 deletion examples/aobench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
//!
//! Based on [aobench](https://code.google.com/archive/p/aobench/) by Syoyo
//! Fujita.
#![deny(warnings, rust_2018_idioms)]
// FIXME: Null pointer deref warning triggered in this example,
// likely inside a macro expansion deriving from packed_simd.
#![deny(rust_2018_idioms)]
#![allow(non_snake_case, non_camel_case_types)]
#![allow(
clippy::many_single_char_names,
Expand Down
2 changes: 1 addition & 1 deletion examples/aobench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! Based on [aobench](https://code.google.com/archive/p/aobench/) by Syoyo
//! Fujita.
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]

use aobench_lib::*;
use std::path::PathBuf;
Expand Down
2 changes: 1 addition & 1 deletion examples/dot_product/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Vector dot product
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]
#![feature(custom_inner_attributes)]
#![allow(clippy::must_use_candidate, clippy::float_cmp)]

Expand Down
2 changes: 1 addition & 1 deletion examples/fannkuch_redux/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]

use fannkuch_redux_lib::*;

Expand Down
4 changes: 3 additions & 1 deletion examples/mandelbrot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
//!
//! [bg]: https://benchmarksgame-team.pages.debian.net/benchmarksgame/description/mandelbrot.html#mandelbrot

#![deny(warnings, rust_2018_idioms)]
// FIXME: Null pointer deref warning triggered in this example,
// likely inside a macro expansion deriving from packed_simd.
#![deny(rust_2018_idioms)]
#![allow(
clippy::cast_precision_loss,
clippy::cast_sign_loss,
Expand Down
2 changes: 1 addition & 1 deletion examples/mandelbrot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! [bg]: https://benchmarksgame-team.pages.debian.net/benchmarksgame/description/mandelbrot.html#mandelbrot

#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]

use mandelbrot_lib::*;
use std::io;
Expand Down
2 changes: 1 addition & 1 deletion examples/matrix_inverse/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! 4x4 matrix inverse
#![feature(custom_inner_attributes)]
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]
#![allow(clippy::must_use_candidate)]

pub mod scalar;
Expand Down
2 changes: 1 addition & 1 deletion examples/nbody/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! The N-body benchmark from the [benchmarks game][bg].
//!
//! [bg]: https://benchmarksgame-team.pages.debian.net/benchmarksgame/description/nbody.html#nbody
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]
#![allow(
clippy::similar_names,
clippy::excessive_precision,
Expand Down
2 changes: 1 addition & 1 deletion examples/nbody/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! The N-body benchmark from the [benchmarks game][bg].
//!
//! [bg]: https://benchmarksgame-team.pages.debian.net/benchmarksgame/description/nbody.html#nbody
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]

fn run<O: std::io::Write>(o: &mut O, n: usize, alg: usize) {
let (energy_before, energy_after) = nbody_lib::run(n, alg);
Expand Down
2 changes: 1 addition & 1 deletion examples/options_pricing/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]
#![allow(
clippy::inline_always,
clippy::many_single_char_names,
Expand Down
2 changes: 1 addition & 1 deletion examples/slice_sum/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]

use packed_simd::f32x8 as f32s;
use std::{mem, slice};
Expand Down
2 changes: 1 addition & 1 deletion examples/spectral_norm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Spectral Norm
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]
#![allow(non_snake_case, non_camel_case_types)]
#![allow(
clippy::cast_precision_loss,
Expand Down
2 changes: 0 additions & 2 deletions examples/spectral_norm/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(warnings)]

extern crate spectral_norm_lib;
use spectral_norm_lib::*;

Expand Down
4 changes: 3 additions & 1 deletion examples/stencil/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![feature(custom_inner_attributes, stmt_expr_attributes)]
#![deny(warnings, rust_2018_idioms)]
// FIXME: Null pointer deref warning triggered in this example,
// likely inside a macro expansion deriving from packed_simd.
#![deny(rust_2018_idioms)]
#![allow(
clippy::similar_names,
clippy::cast_precision_loss,
Expand Down
2 changes: 1 addition & 1 deletion micro_benchmarks/benches/mask_reductions.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Benchmarks for the mask reductions `all`, `any`, and `none`.
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]
#![feature(test)]

use packed_simd::*;
Expand Down
2 changes: 1 addition & 1 deletion verify/verify/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// FIXME: these types are unsound in C FFI already
// See https://github.com/rust-lang/rust/issues/53346
#![allow(improper_ctypes_definitions)]
#![deny(warnings, rust_2018_idioms)]
#![deny(rust_2018_idioms)]
#![cfg_attr(test, feature(avx512_target_feature, abi_vectorcall, llvm_asm))]

#[cfg(test)]
Expand Down

0 comments on commit 76916f1

Please sign in to comment.