]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #6731 : thomaslee/rust/issue-6575, r=pcwalton
authorbors <bors@rust-lang.org>
Wed, 29 May 2013 00:37:57 +0000 (17:37 -0700)
committerbors <bors@rust-lang.org>
Wed, 29 May 2013 00:37:57 +0000 (17:37 -0700)
Fix for #6575. In the trans phase, rustc emits code for a function parameter that goes completely unused in the event the return type of the function in question happens to be an immediate.

This patch modifies rustc & parts of rustrt to ensure that the vestigial parameter is no longer present in compiled code.

1  2 
src/librustc/middle/trans/base.rs
src/rt/rust_builtin.cpp

Simple merge
Simple merge