mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Move the rest of the features to generated docs
This commit is contained in:
parent
b795a07320
commit
1c6a2eb14a
10 changed files with 358 additions and 240 deletions
|
@ -50,12 +50,12 @@ impl Feature {
|
|||
|
||||
fn is_valid_feature_name(feature: &str) -> bool {
|
||||
'word: for word in feature.split_whitespace() {
|
||||
for &short in ["to"].iter() {
|
||||
for &short in ["to", "and"].iter() {
|
||||
if word == short {
|
||||
continue 'word;
|
||||
}
|
||||
}
|
||||
for &short in ["To"].iter() {
|
||||
for &short in ["To", "And"].iter() {
|
||||
if word == short {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue