Skip to content

Commit f5e16d5

Browse files
author
Lukas Markeffsky
committed
add more test cases
1 parent 206c481 commit f5e16d5

File tree

2 files changed

+167
-60
lines changed

2 files changed

+167
-60
lines changed

tests/rustdoc-ui/unescaped_backticks.rs

+33
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
#![allow(rustdoc::broken_intra_doc_links)]
33
#![allow(rustdoc::invalid_html_tags)]
44

5+
///
6+
pub fn empty() {}
7+
8+
#[doc = ""]
9+
pub fn empty2() {}
10+
511
/// `
612
//~^ ERROR unescaped backtick
713
pub fn single() {}
@@ -307,3 +313,30 @@ pub mod rustc {
307313
//~^ ERROR unescaped backtick
308314
/// level changes.
309315
pub mod tracing {}
316+
317+
macro_rules! id {
318+
($($tt:tt)*) => { $($tt)* }
319+
}
320+
321+
id! {
322+
/// The Subscriber` may be accessed by calling [`WeakDispatch::upgrade`],
323+
//~^ ERROR unescaped backtick
324+
//~| ERROR unescaped backtick
325+
//~| ERROR unescaped backtick
326+
//~| ERROR unescaped backtick
327+
/// which returns an `Option<Dispatch>`. If all [`Dispatch`] clones that point
328+
/// at the `Subscriber` have been dropped, [`WeakDispatch::upgrade`] will return
329+
/// `None`. Otherwise, it will return `Some(Dispatch)`.
330+
///
331+
/// Returns some reference to this `[`Subscriber`] value if it is of type `T`,
332+
/// or `None` if it isn't.
333+
///
334+
/// Called before the filtered [`Layer]'s [`on_event`], to determine if
335+
/// `on_event` should be called.
336+
///
337+
/// Therefore, if the `Filter will change the value returned by this
338+
/// method, it is responsible for ensuring that
339+
/// [`rebuild_interest_cache`][rebuild] is called after the value of the max
340+
/// level changes.
341+
pub mod tracing_macro {}
342+
}

0 commit comments

Comments
 (0)