Skip to content

Commit cbe9a8a

Browse files
committed
Rename trait-bounds.md to bounds.md
since it describes all three kinds of bounds: 1. trait bounds 2. lifetime bounds (outlives-bounds) 3. use-bounds (precise capturing)
1 parent d6f4cc4 commit cbe9a8a

10 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
- [Type layout](type-layout.md)
9898
- [Interior mutability](interior-mutability.md)
9999
- [Subtyping and variance](subtyping.md)
100-
- [Trait and lifetime bounds](trait-bounds.md)
100+
- [Trait, lifetime and use bounds](bounds.md)
101101
- [Type coercions](type-coercions.md)
102102
- [Divergence](divergence.md)
103103
- [Destructors](destructors.md)
File renamed without changes.

src/crates-and-source-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,5 @@ The crate name must not be empty, and must only contain [Unicode alphanumeric] o
138138
[module path]: paths.md
139139
[panic-docs]: panic.md#unwinding-across-ffi-boundaries
140140
[shebang]: shebang.md
141-
[trait or lifetime bounds]: trait-bounds.md
141+
[trait or lifetime bounds]: bounds.md
142142
[where clauses]: items/generics.md#where-clauses

src/items/generics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ struct Foo<#[my_flexible_clone(unbounded)] H> {
290290
[function pointers]: ../types/function-pointer.md
291291
[generic implementations]: implementations.md#generic-implementations
292292
[generic parameter scopes]: ../names/scopes.md#generic-parameter-scopes
293-
[higher-ranked lifetimes]: ../trait-bounds.md#higher-ranked-trait-bounds
293+
[higher-ranked lifetimes]: ../bounds.md#higher-ranked-trait-bounds
294294
[implementations]: implementations.md
295295
[inferred const]: items.generics.const.inferred
296296
[item declarations]: ../statements.md#item-declarations

src/items/implementations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Implementations may contain outer [attributes] before the `impl` keyword and inn
276276
[associated functions]: associated-items.md#associated-functions-and-methods
277277
[associated type]: associated-items.md#associated-types
278278
[attributes]: ../attributes.md
279-
[bounds]: ../trait-bounds.md
279+
[bounds]: ../bounds.md
280280
[`cfg`]: ../conditional-compilation.md
281281
[`deprecated`]: ../attributes/diagnostics.md#the-deprecated-attribute
282282
[`doc`]: ../../rustdoc/the-doc-attribute.html

src/items/traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ fn main() {
367367
```
368368
369369
[WildcardPattern]: ../patterns.md#wildcard-pattern
370-
[bounds]: ../trait-bounds.md
370+
[bounds]: ../bounds.md
371371
[trait object]: ../types/trait-object.md
372372
[associated items]: associated-items.md
373373
[method]: associated-items.md#methods

src/names.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Additionally, the crate root module does not have a name, but can be referred to
140140
[Function declarations]: items/functions.md
141141
[function parameters]: items/functions.md#function-parameters
142142
[Generic parameters]: items/generics.md
143-
[Higher ranked trait bounds]: trait-bounds.md#higher-ranked-trait-bounds
143+
[Higher ranked trait bounds]: bounds.md#higher-ranked-trait-bounds
144144
[Implementation]: items/implementations.md
145145
[Integer types]: types/numeric.md#integer-types
146146
[Items]: items.md

src/names/scopes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ impl ImplExample {
354354
[enums]: ../items/enumerations.md
355355
[Extern prelude]: preludes.md#extern-prelude
356356
[Function parameter]: ../items/functions.md#function-parameters
357-
[hrtb]: ../trait-bounds.md#higher-ranked-trait-bounds
357+
[hrtb]: ../bounds.md#higher-ranked-trait-bounds
358358
[Impl trait]: ../types/impl-trait.md
359359
[implementation]: ../items/implementations.md
360360
[items]: ../items.md

src/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,6 @@ let a: List<i32> = List::Cons(7, Box::new(List::Cons(13, Box::new(List::Nil))));
171171
[tuples]: types/tuple.md
172172
[type alias]: items/type-aliases.md
173173
[type aliases]: items/type-aliases.md
174-
[type boundaries]: trait-bounds.md
174+
[type boundaries]: bounds.md
175175
[type parameters]: types/parameters.md
176176
[unions]: types/union.md

src/types/impl-trait.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,6 @@ r[type.impl-trait.constraint]
167167

168168
`impl Trait` can only appear as a parameter or return type of a non-`extern` function. It cannot be the type of a `let` binding, field type, or appear inside a type alias.
169169

170-
[`use<..>` bound]: ../trait-bounds.md#use-bounds
170+
[`use<..>` bound]: ../bounds.md#use-bounds
171171
[closures]: closure.md
172172
[trait object]: trait-object.md

0 commit comments

Comments
 (0)