Skip to content

Commit af7facb

Browse files
committed
---
yaml --- r: 162765 b: refs/heads/try c: f2731ff h: refs/heads/master i: 162763: d56414a v: v3
1 parent ab9e8fb commit af7facb

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 9146a919b616e39e528e4d7100d16eef52f1f852
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cafe2966770ff377aad6dd9fd808e68055587c58
5-
refs/heads/try: 64bf5a8687c78cf7dc605cc8c8b63748a2746943
5+
refs/heads/try: f2731ffb52a5873800df4ef2dfa28da9c4302976
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc/middle/traits/select.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
10241024
candidates: &mut CandidateSet<'tcx>)
10251025
-> Result<(),SelectionError<'tcx>>
10261026
{
1027-
// We provide a `Fn` impl for fn pointers (but not e.g. `FnMut`).
1027+
// We provide a `Fn` impl for fn pointers. There is no need to provide
1028+
// the other traits (e.g. `FnMut`) since those are provided by blanket
1029+
// impls.
10281030
if Some(obligation.trait_ref.def_id) != self.tcx().lang_items.fn_trait() {
10291031
return Ok(());
10301032
}
@@ -1705,7 +1707,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
17051707
abi: abi::Rust,
17061708
ref sig
17071709
}) => {
1708-
(*sig).clone()
1710+
sig
17091711
}
17101712
_ => {
17111713
self.tcx().sess.span_bug(

branches/try/src/librustc_trans/trans/context.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ impl<'tcx> LocalCrateContext<'tcx> {
395395
tn: TypeNames::new(),
396396
externs: RefCell::new(FnvHashMap::new()),
397397
item_vals: RefCell::new(NodeMap::new()),
398+
fn_pointer_shims: RefCell::new(FnvHashMap::new()),
398399
drop_glues: RefCell::new(FnvHashMap::new()),
399400
tydescs: RefCell::new(FnvHashMap::new()),
400401
finished_tydescs: Cell::new(false),

0 commit comments

Comments
 (0)