Skip to content

Commit 37b7c28

Browse files
committed
---
yaml --- r: 165546 b: refs/heads/master c: 39be95c h: refs/heads/master v: v3
1 parent 5483dfe commit 37b7c28

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: fad1423d1ef12d3036433432d838723ff783a53d
2+
refs/heads/master: 39be95c16ba3d8ed7aa5253f36c5009acb37404b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 658529467d9d69ac9e09cacf98a6d61d781c2c76
55
refs/heads/try: aee614fc4973262a5a68efc643026e2b1458d65b

trunk/src/librustc_trans/trans/consts.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ pub fn const_expr<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>, e: &ast::Expr)
204204
format!("unexpected static function: {}",
205205
store).as_slice())
206206
}
207+
ty::AdjustReifyFnPointer(_def_id) => {
208+
// FIXME(#19925) once fn item types are
209+
// zero-sized, we'll need to do something here
210+
}
207211
ty::AdjustDerefRef(ref adj) => {
208212
let mut ty = ety;
209213
// Save the last autoderef in case we can avoid it.

trunk/src/librustc_trans/trans/expr.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ fn apply_adjustments<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
180180
AdjustAddEnv(def_id, _) => {
181181
datum = unpack_datum!(bcx, add_env(bcx, def_id, expr, datum));
182182
}
183+
AdjustReifyFnPointer(_def_id) => {
184+
// FIXME(#19925) once fn item types are
185+
// zero-sized, we'll need to do something here
183186
}
184187
AdjustDerefRef(ref adj) => {
185188
let (autoderefs, use_autoref) = match adj.autoref {

trunk/src/librustc_trans/trans/type_of.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ pub fn type_of_fn_from_ty<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>, fty: Ty<'tcx>)
150150
f.sig.0.output,
151151
f.abi)
152152
}
153-
ty::ty_bare_fn(ref f) => {
153+
ty::ty_bare_fn(_, ref f) => {
154+
// FIXME(#19925) once fn item types are
155+
// zero-sized, we'll need to do something here
154156
if f.abi == abi::Rust || f.abi == abi::RustCall {
155157
type_of_rust_fn(cx,
156158
None,

0 commit comments

Comments
 (0)