Skip to content

Commit 7cba276

Browse files
XAMPPRockyrepi
andcommitted
Update to Embark lints v0.3
Co-Authored-By: Johan Andersson <repi@repi.se>
1 parent cb8477d commit 7cba276

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

crates/spirv-std/src/lib.rs

+15-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
feature(asm, register_attr, repr_simd, core_intrinsics, lang_items),
55
register_attr(spirv)
66
)]
7-
// BEGIN - Embark standard lints v0.2.
7+
// BEGIN - Embark standard lints v0.3
88
// do not change or add/remove here, but one can add exceptions after this section
99
// for more info see: <https://github.com/EmbarkStudios/rust-ecosystem/issues/59>
1010
#![deny(unsafe_code)]
@@ -23,13 +23,16 @@
2323
clippy::if_let_mutex,
2424
clippy::imprecise_flops,
2525
clippy::inefficient_to_string,
26+
clippy::large_types_passed_by_value,
2627
clippy::let_unit_value,
2728
clippy::linkedlist,
2829
clippy::lossy_float_literal,
2930
clippy::macro_use_imports,
31+
clippy::map_err_ignore,
3032
clippy::map_flatten,
3133
clippy::map_unwrap_or,
3234
clippy::match_on_vec_items,
35+
clippy::match_same_arms,
3336
clippy::match_wildcard_for_single_variants,
3437
clippy::mem_forget,
3538
clippy::mismatched_target_os,
@@ -39,19 +42,28 @@
3942
clippy::pub_enum_variant_names,
4043
clippy::ref_option_ref,
4144
clippy::rest_pat_in_fully_bound_structs,
45+
clippy::string_add_assign,
46+
clippy::string_add,
4247
clippy::string_to_string,
4348
clippy::suboptimal_flops,
4449
clippy::todo,
50+
clippy::unimplemented,
4551
clippy::unnested_or_patterns,
4652
clippy::unused_self,
4753
clippy::verbose_file_reads,
4854
future_incompatible,
4955
nonstandard_style,
5056
rust_2018_idioms
5157
)]
52-
// END - Embark standard lints v0.2
58+
// END - Embark standard lints v0.3
5359
// 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+
)]
5567

5668
#[cfg(not(target_arch = "spirv"))]
5769
#[macro_use]

0 commit comments

Comments
 (0)