Skip to content

Commit f26c39b

Browse files
committed
Auto merge of #3533 - phansch:add_to_doc_valid_idents, r=phansch
Add 'CamelCase' to doc_valid_idents Fixes #2395
2 parents e2608fc + ee2abc3 commit f26c39b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

clippy_lints/src/utils/conf.rs

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ define_Conf! {
137137
"iOS", "macOS",
138138
"TeX", "LaTeX", "BibTeX", "BibLaTeX",
139139
"MinGW",
140+
"CamelCase",
140141
] => Vec<String>),
141142
/// Lint: TOO_MANY_ARGUMENTS. The maximum number of argument a function or method can have
142143
(too_many_arguments_threshold, "too_many_arguments_threshold", 7 => u64),

tests/ui/doc.rs

+3
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,6 @@ fn issue_1920() {}
174174
/// Not ok: http://www.unicode.org/
175175
/// Not ok: http://www.unicode.org/reports/tr9/#Reordering_Resolved_Levels
176176
fn issue_1832() {}
177+
178+
/// Ok: CamelCase (It should not be surrounded by backticks)
179+
fn issue_2395() {}

0 commit comments

Comments
 (0)