We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8c6e19 + 86cc93e commit 1de2020Copy full SHA for 1de2020
docs/dev/style.md
@@ -403,6 +403,18 @@ Default names:
403
* `n_foo` -- number of foos
404
* `foo_idx` -- index of `foo`
405
406
+Many names in rust-analyzer conflict with keywords.
407
+We use mangled names instead of `r#ident` syntax:
408
+
409
+```
410
+struct -> strukt
411
+crate -> krate
412
+impl -> imp
413
+trait -> trait_
414
+fn -> func
415
+enum -> enum_
416
+mod -> module
417
418
419
## Early Returns
420
0 commit comments