|
4 | 4 | feature(asm, register_attr, repr_simd, core_intrinsics, lang_items), |
5 | 5 | register_attr(spirv) |
6 | 6 | )] |
7 | | -// BEGIN - Embark standard lints v0.2. |
| 7 | +// BEGIN - Embark standard lints v0.3 |
8 | 8 | // do not change or add/remove here, but one can add exceptions after this section |
9 | 9 | // for more info see: <https://github.com/EmbarkStudios/rust-ecosystem/issues/59> |
10 | 10 | #![deny(unsafe_code)] |
|
23 | 23 | clippy::if_let_mutex, |
24 | 24 | clippy::imprecise_flops, |
25 | 25 | clippy::inefficient_to_string, |
| 26 | + clippy::large_types_passed_by_value, |
26 | 27 | clippy::let_unit_value, |
27 | 28 | clippy::linkedlist, |
28 | 29 | clippy::lossy_float_literal, |
29 | 30 | clippy::macro_use_imports, |
| 31 | + clippy::map_err_ignore, |
30 | 32 | clippy::map_flatten, |
31 | 33 | clippy::map_unwrap_or, |
32 | 34 | clippy::match_on_vec_items, |
| 35 | + clippy::match_same_arms, |
33 | 36 | clippy::match_wildcard_for_single_variants, |
34 | 37 | clippy::mem_forget, |
35 | 38 | clippy::mismatched_target_os, |
|
39 | 42 | clippy::pub_enum_variant_names, |
40 | 43 | clippy::ref_option_ref, |
41 | 44 | clippy::rest_pat_in_fully_bound_structs, |
| 45 | + clippy::string_add_assign, |
| 46 | + clippy::string_add, |
42 | 47 | clippy::string_to_string, |
43 | 48 | clippy::suboptimal_flops, |
44 | 49 | clippy::todo, |
| 50 | + clippy::unimplemented, |
45 | 51 | clippy::unnested_or_patterns, |
46 | 52 | clippy::unused_self, |
47 | 53 | clippy::verbose_file_reads, |
48 | 54 | future_incompatible, |
49 | 55 | nonstandard_style, |
50 | 56 | rust_2018_idioms |
51 | 57 | )] |
52 | | -// END - Embark standard lints v0.2 |
| 58 | +// END - Embark standard lints v0.3 |
53 | 59 | // crate-specific exceptions: |
54 | | -#![allow(unsafe_code)] // still quite a bit needed |
| 60 | +#![allow( |
| 61 | + // Needed for `asm!`. |
| 62 | + unsafe_code, |
| 63 | + // We deblierately provide an unimplemented version of our API on CPU |
| 64 | + // platforms so that code completion still works. |
| 65 | + clippy::unimplemented, |
| 66 | +)] |
55 | 67 |
|
56 | 68 | #[cfg(not(target_arch = "spirv"))] |
57 | 69 | #[macro_use] |
|
0 commit comments