]> git.lizzy.rs Git - rust.git/commit
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)
commite3d0c1eb0e86e04c2a6d5abe526516351cfaef3f
treeb0971e4ba3c1a990cdb9f9ee02b3d414b2fd7729
parent5676056ae6dd3a10d2c7323375ace3ca2fe1c308
parentb7f71e1ee661ea0d5d9731fcf4779a452bbee486
auto merge of #6731 : thomaslee/rust/issue-6575, r=pcwalton

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.
src/librustc/middle/trans/base.rs
src/rt/rust_builtin.cpp