Skip to content

Commit 640aab3

Browse files
committed
librustc_unicode: deny warnings in doctests
1 parent cc39abb commit 640aab3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/librustc_unicode/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
html_root_url = "https://doc.rust-lang.org/nightly/",
3232
html_playground_url = "https://play.rust-lang.org/",
3333
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
34-
test(no_crate_inject))]
34+
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
3535
#![no_std]
3636

3737
#![feature(core_char_ext)]

src/librustc_unicode/u_str.rs

+1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ impl<'a> Iterator for Utf16Items<'a> {
190190
///
191191
/// ```
192192
/// #![feature(unicode, decode_utf16)]
193+
/// # #![allow(deprecated)]
193194
///
194195
/// extern crate rustc_unicode;
195196
///

0 commit comments

Comments
 (0)