File tree 2 files changed +2
-10
lines changed
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1554,11 +1554,6 @@ impl Symbol {
1554
1554
self == kw:: Try
1555
1555
}
1556
1556
1557
- /// Used for sanity checking rustdoc keyword sections.
1558
- pub fn is_doc_keyword ( self ) -> bool {
1559
- self <= kw:: Union
1560
- }
1561
-
1562
1557
/// A keyword or reserved identifier that can be used as a path segment.
1563
1558
pub fn is_path_segment_keyword ( self ) -> bool {
1564
1559
self == kw:: Super
Original file line number Diff line number Diff line change @@ -169,11 +169,8 @@ impl Clean<ExternalCrate> for CrateNum {
169
169
for attr in attrs. lists ( sym:: doc) {
170
170
if let Some ( v) = attr. value_str ( ) {
171
171
if attr. has_name ( sym:: keyword) {
172
- if v. is_doc_keyword ( ) {
173
- keyword = Some ( v. to_string ( ) ) ;
174
- break ;
175
- }
176
- // FIXME: should warn on unknown keywords?
172
+ keyword = Some ( v. to_string ( ) ) ;
173
+ break ;
177
174
}
178
175
}
179
176
}
You can’t perform that action at this time.
0 commit comments