Skip to content

Commit 76d5c46

Browse files
authored
Merge pull request #2060 from ehuss/remove-names-rules
Remove rules from names intro
2 parents c7579c4 + 445589d commit 76d5c46

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/names.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,25 @@ the source program, usually via a [path]. Entities include [types], [items],
77
[generic parameters], [variable bindings], [loop labels], [lifetimes],
88
[fields], [attributes], and [lints].
99

10-
r[names.decl]
1110
A *declaration* is a syntactical construct that can introduce a *name* to
1211
refer to an entity. Entity names are valid within a [*scope*] --- a region of
1312
source text where that name may be referenced.
1413

15-
r[names.explicit-decl]
1614
Some entities are [explicitly declared](#explicitly-declared-entities) in the
1715
source code, and some are [implicitly declared](#implicitly-declared-entities)
1816
as part of the language or compiler extensions.
1917

20-
r[names.path]
2118
[*Paths*] are used to refer to an entity, possibly in another module or type.
2219

23-
r[names.lifetime]
2420
Lifetimes and loop labels use a [dedicated syntax][lifetimes-and-loop-labels] using a
2521
leading quote.
2622

27-
r[names.namespace]
2823
Names are segregated into different [*namespaces*], allowing entities in
2924
different namespaces to share the same name without conflict.
3025

31-
r[names.resolution]
3226
[*Name resolution*] is the compile-time process of tying paths, identifiers,
3327
and labels to entity declarations.
3428

35-
r[names.visibility]
3629
Access to certain names may be restricted based on their [*visibility*].
3730

3831
r[names.explicit]

0 commit comments

Comments
 (0)