Skip to content

Commit 06cf9ae

Browse files
author
Stjepan Glavina
committed
Fix return type of forget intrinsic
1 parent 3977133 commit 06cf9ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/intrinsic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
134134
"rustc_peek" => (1, vec![param(0)], param(0)),
135135
"init" => (1, Vec::new(), param(0)),
136136
"uninit" => (1, Vec::new(), param(0)),
137-
"forget" => (1, vec![param(0)], param(0)),
137+
"forget" => (1, vec![param(0)], tcx.mk_unit()),
138138
"transmute" => (2, vec![ param(0) ], param(1)),
139139
"move_val_init" => {
140140
(1,

0 commit comments

Comments
 (0)