Modifying self

2021-08-04 Thread Mark Wielaard
Hi, I am trying to get this program working: extern "C" { fn abort (); } pub struct H { l: u32, } impl H { fn p (&mut self) -> u32 { self.l -= 1; self.l } } fn main () { let mut h = H { l: 11 }; let eleven = h.l; let ten = h.p (); if ten + 1 != eleven { unsafe { abor

Re: [PATCH 2/2] WIP union hir-lowering and type support

2021-08-04 Thread Mark Wielaard
Hi, On Sun, Aug 01, 2021 at 01:29:16PM +0200, Mark Wielaard wrote: > And you cannot use unions as function arguments or return values. > This example (sorry for the funny naming, union isn't a keyword, so > you can call basically anything a union, including a union, a union > field, function argum

Re: Buildbot failure in Wildebeest Builder on whole buildset

2021-08-04 Thread Mark Wielaard
Hi, On Wed, Aug 04, 2021 at 03:15:00PM +, build...@builder.wildebeest.org wrote: > The Buildbot has detected a new failure on builder gccrust-debian-arm64 while > building gccrust. > Full details are available at: > https://builder.wildebeest.org/buildbot/#builders/58/builds/270 > > Buil

Buildbot failure in Wildebeest Builder on whole buildset

2021-08-04 Thread buildbot
The Buildbot has detected a new failure on builder gccrust-debian-arm64 while building gccrust. Full details are available at: https://builder.wildebeest.org/buildbot/#builders/58/builds/270 Buildbot URL: https://builder.wildebeest.org/buildbot/ Worker for this Build: debian-arm64 Build Rea