Skip to content

Commit 7506051

Browse files
author
Ariel Ben-Yehuda
committed
---
yaml --- r: 233501 b: refs/heads/beta c: 96e6b2f h: refs/heads/master i: 233499: 02ce87f v: v3
1 parent 8a8775e commit 7506051

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 9b75a2bcd10918a8cde91962a1998615123a401e
26+
refs/heads/beta: 96e6b2fef82c13aa542713e7923d7d0a76bd698b
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/librustc/middle/traits/fulfill.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ use middle::infer::InferCtxt;
1212
use middle::ty::{self, RegionEscape, Ty, HasTypeFlags};
1313
use middle::wf;
1414

15-
use std::collections::HashSet;
1615
use std::fmt;
1716
use syntax::ast;
1817
use util::common::ErrorReported;
19-
use util::nodemap::NodeMap;
18+
use util::nodemap::{FnvHashSet, NodeMap};
2019

2120
use super::CodeAmbiguity;
2221
use super::CodeProjectionError;
@@ -33,7 +32,7 @@ use super::Unimplemented;
3332
use super::util::predicate_for_builtin_bound;
3433

3534
pub struct FulfilledPredicates<'tcx> {
36-
set: HashSet<(RFC1214Warning, ty::Predicate<'tcx>)>
35+
set: FnvHashSet<(RFC1214Warning, ty::Predicate<'tcx>)>
3736
}
3837

3938
/// The fulfillment context is used to drive trait resolution. It
@@ -540,7 +539,7 @@ fn register_region_obligation<'tcx>(t_a: Ty<'tcx>,
540539
impl<'tcx> FulfilledPredicates<'tcx> {
541540
pub fn new() -> FulfilledPredicates<'tcx> {
542541
FulfilledPredicates {
543-
set: HashSet::new()
542+
set: FnvHashSet()
544543
}
545544
}
546545

0 commit comments

Comments
 (0)