Skip to content

Commit db120cf

Browse files
committed
---
yaml --- r: 274333 b: refs/heads/stable c: b3e30b5 h: refs/heads/master i: 274331: c63a9ee
1 parent 4bd057d commit db120cf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 10de8826cd583d61171c118426fe8e9c73a59f2d
32+
refs/heads/stable: b3e30b5fc3ad49f8d1461a9d181b0853bfc41c9a
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/libcore/hash/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ pub trait Hasher {
194194
/// A `BuildHasher` is typically used as a factory for instances of `Hasher`
195195
/// which a `HashMap` can then use to hash keys independently.
196196
///
197-
/// Note that for each instance of `BuildHasher`, the created hashers should be
198-
/// identical. That is, if the same stream of bytes is fed into each hasher, the
197+
/// Note that for each instance of `BuildHasher` the create hashers should be
198+
/// identical. That is if the same stream of bytes is fed into each hasher the
199199
/// same output will also be generated.
200200
#[stable(since = "1.7.0", feature = "build_hasher")]
201201
pub trait BuildHasher {

branches/stable/src/librustc/session/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ impl Session {
179179
pub fn track_errors<F, T>(&self, f: F) -> Result<T, usize>
180180
where F: FnOnce() -> T
181181
{
182-
let mut count = self.err_count();
182+
let count = self.err_count();
183183
let result = f();
184-
count -= self.err_count();
184+
let count = self.err_count() - count;
185185
if count == 0 {
186186
Ok(result)
187187
} else {

0 commit comments

Comments
 (0)