File tree 6 files changed +12
-9
lines changed
6 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ jobs:
117
117
cargo xtask clippy --warnings-as-errors
118
118
119
119
- name : Run cargo doc
120
- run : cargo xtask doc --warnings-as-errors
120
+ run : cargo xtask doc
121
121
122
122
miri :
123
123
name : Run unit tests and doctests under Miri
Original file line number Diff line number Diff line change @@ -347,12 +347,10 @@ impl PartialEq<CString16> for &CStr16 {
347
347
/// [`CStr16`] can't be directly constructed. `UnalignedCStr16` instead
348
348
/// takes a pointer to the unaligned field, which is allowed. The
349
349
/// resulting unaligned string cannot be used directly, but must be
350
- /// converted to an aligned form first with [`to_cstr16`] or
351
- /// [`to_cstring16`].
350
+ /// converted to an aligned form first with [`to_cstr16`].
352
351
///
353
352
/// [`repr(packed)`]: https://doc.rust-lang.org/nomicon/other-reprs.html#reprpacked
354
353
/// [`to_cstr16`]: Self::to_cstr16
355
- /// [`to_cstring16`]: Self::to_cstring16
356
354
#[ derive( Debug ) ]
357
355
pub struct UnalignedCStr16 < ' a > {
358
356
data : * const u16 ,
Original file line number Diff line number Diff line change 33
33
// Enable some additional warnings and lints.
34
34
#![ warn( clippy:: ptr_as_ptr, missing_docs, unused) ]
35
35
#![ deny( clippy:: all) ]
36
+ #![ deny( rustdoc:: all) ]
37
+ #![ allow( rustdoc:: missing_doc_code_examples) ]
36
38
37
39
// `uefi-exts` requires access to memory allocation APIs.
38
40
#[ cfg( feature = "exts" ) ]
Original file line number Diff line number Diff line change 1
1
#![ recursion_limit = "128" ]
2
+ #![ deny( rustdoc:: all) ]
3
+ #![ allow( rustdoc:: missing_doc_code_examples) ]
4
+
5
+ //! Code generation macros for the `uefi` crate.
2
6
3
7
extern crate proc_macro;
4
8
Original file line number Diff line number Diff line change 19
19
#![ no_std]
20
20
#![ feature( alloc_error_handler) ]
21
21
#![ feature( abi_efiapi) ]
22
+ #![ deny( rustdoc:: all) ]
23
+ #![ allow( rustdoc:: missing_doc_code_examples) ]
22
24
23
25
#[ macro_use]
24
26
extern crate log;
Original file line number Diff line number Diff line change @@ -146,9 +146,6 @@ impl Cargo {
146
146
}
147
147
CargoAction :: Doc { open } => {
148
148
action = "doc" ;
149
- if self . warnings_as_errors {
150
- cmd. env ( "RUSTDOCFLAGS" , "-Dwarnings" ) ;
151
- }
152
149
if open {
153
150
extra_args. push ( "--open" ) ;
154
151
}
@@ -237,11 +234,11 @@ mod tests {
237
234
packages : vec ! [ Package :: Uefi , Package :: Xtask ] ,
238
235
release : false ,
239
236
target : None ,
240
- warnings_as_errors : true ,
237
+ warnings_as_errors : false ,
241
238
} ;
242
239
assert_eq ! (
243
240
command_to_string( & cargo. command( ) . unwrap( ) ) ,
244
- "RUSTDOCFLAGS=-Dwarnings cargo doc --package uefi --package xtask --features alloc --open"
241
+ "cargo doc --package uefi --package xtask --features alloc --open"
245
242
) ;
246
243
}
247
244
}
You can’t perform that action at this time.
0 commit comments