Skip to content

Commit 39be95c

Browse files
committed
Insert FIXME links to issue rust-lang#19925: fn item types should be zero-sized.
1 parent fad1423 commit 39be95c

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

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.

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 {

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)