rustc: Fix type_need_unwind_cleanup. Closes #2272
This commit is contained in:
parent
5437a045fc
commit
e7dbf42214
4 changed files with 18 additions and 11 deletions
|
|
@ -1,10 +1,3 @@
|
|||
// xfail-test
|
||||
/*
|
||||
tjc: currently this results in a memory leak after a call to
|
||||
span_fatal in typeck. I think it's the same issue as #2272, because
|
||||
if I make type_needs_unwind_cleanup always return true, the test passes.
|
||||
FIXME: Un-xfail this when #2272 is fixed.
|
||||
*/
|
||||
class cat implements int { //! ERROR can only implement interface types
|
||||
let meows: uint;
|
||||
new(in_x : uint) { self.meows = in_x; }
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
// error-pattern: overly deep expansion
|
||||
// issue 2258
|
||||
// This is currently exposing a memory leak, and xfailed for that reason
|
||||
// xfail-test
|
||||
|
||||
iface to_opt {
|
||||
fn to_option() -> option<self>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue