Removed @self and @Trait.
This commit is contained in:
parent
c13a929d58
commit
b2d30b72bf
122 changed files with 627 additions and 1694 deletions
|
|
@ -64,37 +64,6 @@
|
|||
// check:$15 = -10
|
||||
// debugger:continue
|
||||
|
||||
// MANAGED BY REF
|
||||
// debugger:finish
|
||||
// debugger:print *self
|
||||
// check:$16 = {{Variant2, [...]}, {Variant2, 117901063}}
|
||||
// debugger:print arg1
|
||||
// check:$17 = -11
|
||||
// debugger:print arg2
|
||||
// check:$18 = -12
|
||||
// debugger:continue
|
||||
|
||||
// MANAGED BY VAL
|
||||
// debugger:finish
|
||||
// debugger:print self
|
||||
// check:$19 = {{Variant2, [...]}, {Variant2, 117901063}}
|
||||
// debugger:print arg1
|
||||
// check:$20 = -13
|
||||
// debugger:print arg2
|
||||
// check:$21 = -14
|
||||
// debugger:continue
|
||||
|
||||
// MANAGED SELF
|
||||
// debugger:finish
|
||||
// debugger:print self->val
|
||||
// check:$22 = {{Variant2, [...]}, {Variant2, 117901063}}
|
||||
// debugger:print arg1
|
||||
// check:$23 = -15
|
||||
// debugger:print arg2
|
||||
// check:$24 = -16
|
||||
// debugger:continue
|
||||
|
||||
#[feature(managed_boxes)];
|
||||
#[feature(struct_variant)];
|
||||
|
||||
enum Enum {
|
||||
|
|
@ -118,11 +87,6 @@ impl Enum {
|
|||
zzz();
|
||||
arg1 + arg2
|
||||
}
|
||||
|
||||
fn self_managed(@self, arg1: int, arg2: int) -> int {
|
||||
zzz();
|
||||
arg1 + arg2
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
@ -134,11 +98,6 @@ fn main() {
|
|||
let _ = owned.self_by_ref(-5, -6);
|
||||
let _ = owned.self_by_val(-7, -8);
|
||||
let _ = owned.self_owned(-9, -10);
|
||||
|
||||
let managed = @Variant2(117901063);
|
||||
let _ = managed.self_by_ref(-11, -12);
|
||||
let _ = managed.self_by_val(-13, -14);
|
||||
let _ = managed.self_managed(-15, -16);
|
||||
}
|
||||
|
||||
fn zzz() {()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue