From ddbd89b33e7516f1620d2f47b23fcab5f1b4b6fe Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 3 Nov 2013 01:28:32 -0500 Subject: [PATCH] replace RetVoid with Unreachable to fix lint The function is marked `noreturn`, so it shouldn't return. --- src/librustc/middle/trans/intrinsic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/middle/trans/intrinsic.rs b/src/librustc/middle/trans/intrinsic.rs index f580683cd4e9c..ce62b26c9ab8c 100644 --- a/src/librustc/middle/trans/intrinsic.rs +++ b/src/librustc/middle/trans/intrinsic.rs @@ -221,7 +221,7 @@ pub fn trans_intrinsic(ccx: @mut CrateContext, "abort" => { let llfn = bcx.ccx().intrinsics.get_copy(&("llvm.trap")); Call(bcx, llfn, [], []); - RetVoid(bcx); + Unreachable(bcx); } "size_of" => { let tp_ty = substs.tys[0];