Skip to content

Commit 5a9643c

Browse files
committed
Fix tidy
1 parent ce51e65 commit 5a9643c

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

src/librustc/session/config.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// ignore-tidy-filelength
2-
31
//! Contains infrastructure for configuring the compiler, including parsing
42
//! command line options.
53

src/librustdoc/html/markdown.rs

+21-16
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,30 @@ fn opts() -> Options {
4343
Options::ENABLE_TABLES | Options::ENABLE_FOOTNOTES
4444
}
4545

46-
/// A unit struct which has the `fmt::Display` trait implemented. When
47-
/// formatted, this struct will emit the HTML corresponding to the rendered
46+
/// A tuple struct that has the `fmt::Display` trait implemented.
47+
/// When formatted, this struct will emit the HTML corresponding to the rendered
4848
/// version of the contained markdown string.
49-
///
50-
/// The second parameter is a list of link replacements.
51-
///
52-
/// The third is the current list of used header IDs.
53-
///
54-
/// The fourth is whether to allow the use of explicit error codes in doctest lang strings.
55-
///
56-
/// The fifth is what default edition to use when parsing doctests (to add a `fn main`).
5749
pub struct Markdown<'a>(
58-
pub &'a str, pub &'a [(String, String)], pub RefCell<&'a mut IdMap>, pub ErrorCodes, pub Edition);
59-
/// A unit struct like `Markdown`, that renders the markdown with a
60-
/// table of contents.
61-
pub struct MarkdownWithToc<'a>(pub &'a str, pub RefCell<&'a mut IdMap>, pub ErrorCodes, pub Edition);
62-
/// A unit struct like `Markdown`, that renders the markdown escaping HTML tags.
50+
pub &'a str,
51+
/// A list of link replacements.
52+
pub &'a [(String, String)],
53+
/// The current list of used header IDs.
54+
pub RefCell<&'a mut IdMap>,
55+
/// Whether to allow the use of explicit error codes in doctest lang strings.
56+
pub ErrorCodes,
57+
/// Default edition to use when parsing doctests (to add a `fn main`).
58+
pub Edition,
59+
);
60+
/// A tuple struct like `Markdown` that renders the markdown with a table of contents.
61+
pub struct MarkdownWithToc<'a>(
62+
pub &'a str,
63+
pub RefCell<&'a mut IdMap>,
64+
pub ErrorCodes,
65+
pub Edition,
66+
);
67+
/// A tuple struct like `Markdown` that renders the markdown escaping HTML tags.
6368
pub struct MarkdownHtml<'a>(pub &'a str, pub RefCell<&'a mut IdMap>, pub ErrorCodes, pub Edition);
64-
/// A unit struct like `Markdown`, that renders only the first paragraph.
69+
/// A tuple struct like `Markdown` that renders only the first paragraph.
6570
pub struct MarkdownSummaryLine<'a>(pub &'a str, pub &'a [(String, String)]);
6671

6772
#[derive(Copy, Clone, PartialEq, Debug)]

0 commit comments

Comments
 (0)