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