Skip to content

Commit 64f379a

Browse files
committed
Merge remote-tracking branch 'upstream/master' into md-link
2 parents bb39134 + f17b26e commit 64f379a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ before_install:
77
- git --version
88
script:
99
- rev=$(git rev-parse --short HEAD)
10-
- (cargo install mdbook --git https://github.com/azerupi/mdBook.git --force || true)
10+
- (cargo install mdbook --vers 0.0.26 --force || true)
1111
- ./generate-book.sh
1212
- cd book
1313
- git init

text/2052-epochs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- Feature Name: N/A
22
- Start Date: 2017-06-26
33
- RFC PR: [rust-lang/rfcs#2052](https://github.com/rust-lang/rfcs/pull/2052)
4-
- Rust Issue: N/A
4+
- Rust Issue: [rust-lang/rust#44581](https://github.com/rust-lang/rust/issues/44581)
55

66
# Summary
77
[summary]: #summary

text/2089-implied-bounds.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ However what we know is that if `Cow<'a, B>` is well-formed, then `B` *has* to i
6767

6868
Currently, impls and functions have to prove that their arguments are well-formed. Under this proposal, they would *assume* that their arguments are well-formed, leaving the responsibility for proving well-formedness to the caller. Hence we would be able to drop the `B: ToOwned` bounds in the previous examples.
6969

70-
Beside reducing repeated constraints, it would also provide a clearer separation between what bounds a type needs so that it is is well-formed, and what additional bounds an `fn` or an `impl` actually needs:
70+
Beside reducing repeated constraints, it would also provide a clearer separation between what bounds a type needs so that it is well-formed, and what additional bounds an `fn` or an `impl` actually needs:
7171

7272
```rust
7373
struct Set<K> where K: Hash + Eq { ... }
@@ -95,7 +95,7 @@ pub fn debug_struct_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>, name: &str) ->
9595
```
9696
This RFC proposes to extend this sort of logic beyond these special cases and use it uniformly for both trait bounds and lifetime bounds.
9797

98-
¹Actually only a few types in the standard library have bounds, for example `HashSet<T>` does not have a `T: Hash + Eq` on the type declaration, but on the impl declaration rather. Wether we should prefer bounds on types or on impls is related, but beyond the scope of this RFC.
98+
¹Actually only a few types in the standard library have bounds, for example `HashSet<T>` does not have a `T: Hash + Eq` on the type declaration, but on the impl declaration rather. Whether we should prefer bounds on types or on impls is related, but beyond the scope of this RFC.
9999

100100
## Traits
101101

0 commit comments

Comments
 (0)