[graydon/rust] 54cf0e: Use precise return type to allocate retslot in tra...

rust-commits at mozilla.org rust-commits at mozilla.org
Thu Jan 5 13:46:37 PST 2012


  Branch: refs/heads/master
  Home:   https://github.com/graydon/rust

  Commit: 54cf0e9c0d1151f82e86cab5488162bd7e0706a2
      https://github.com/graydon/rust/commit/54cf0e9c0d1151f82e86cab5488162bd7e0706a2
  Author: Marijn Haverbeke <marijnh at gmail.com>
  Date:   2012-01-05 (Thu, 05 Jan 2012)

  Changed paths:
    M src/comp/middle/trans.rs

  Log Message:
  -----------
  Use precise return type to allocate retslot in trans_args

Using type_of_or_i8 did, predictably, allocate an i8 for a type parameter,
which leads to memory corruption and general confusion.

Closes #1443




More information about the Rust-commits mailing list