File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
15
15
16
16
- Enum items now associated with values (C-style), enums annotated with ` repr(fty) `
17
17
- Bump ` svd-parser ` dependency (0.8.1)
18
+ - Switched from denying all warnings to only a subset.
18
19
19
20
## [ v0.16.1] - 2019-08-17
20
21
Original file line number Diff line number Diff line change @@ -45,9 +45,29 @@ pub fn render(
45
45
46
46
out. push ( quote ! {
47
47
#![ doc = #doc]
48
+ // Deny a subset of warnings
49
+ #![ deny( const_err) ]
50
+ #![ deny( dead_code) ]
51
+ #![ deny( improper_ctypes) ]
52
+ #![ deny( legacy_directory_ownership) ]
48
53
#![ deny( missing_docs) ]
49
- #![ deny( warnings) ]
54
+ #![ deny( no_mangle_generic_items) ]
55
+ #![ deny( non_shorthand_field_patterns) ]
56
+ #![ deny( overflowing_literals) ]
57
+ #![ deny( path_statements) ]
58
+ #![ deny( patterns_in_fns_without_body) ]
59
+ #![ deny( plugin_as_library) ]
60
+ #![ deny( private_in_public) ]
61
+ #![ deny( safe_extern_statics) ]
62
+ #![ deny( unconditional_recursion) ]
63
+ #![ deny( unions_with_drop_fields) ]
64
+ #![ deny( unused_allocation) ]
65
+ #![ deny( unused_comparisons) ]
66
+ #![ deny( unused_parens) ]
67
+ #![ deny( while_true) ]
68
+ // Explicitly allow a few warnings that may be verbose
50
69
#![ allow( non_camel_case_types) ]
70
+ #![ allow( non_snake_case) ]
51
71
#![ no_std]
52
72
} ) ;
53
73
You can’t perform that action at this time.
0 commit comments