Stream: t-compiler/help

Topic: Allocation tags for statics


Christian Poveda (Jan 09 2020 at 15:48, on Zulip):

whats the reason behind having Machine::find_foreign_static return an Allocation without tag and extra? I read the docs https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/trait.Machine.html#tymethod.find_foreign_static but I cannot find tag_allocation

oli (Jan 09 2020 at 15:50, on Zulip):

probably just similarity to how other statics are set up

oli (Jan 09 2020 at 15:50, on Zulip):

but yea, technically this one doesn't need that, but maybe the callers to it need it?

Christian Poveda (Jan 09 2020 at 15:51, on Zulip):

I'm trying to fix the environ problem (maybe you remember it)

Christian Poveda (Jan 09 2020 at 15:51, on Zulip):

And I have been unable to build a static without tag nor extra

oli (Jan 09 2020 at 15:53, on Zulip):

well, you can check if all callers can be adjusted to handle fully machine-ready allocations

Christian Poveda (Jan 09 2020 at 19:21, on Zulip):

mmm I ended up getting a stacked borrows related error again

Christian Poveda (Jan 09 2020 at 19:21, on Zulip):

I think it might be easier to erase the tag and extra

Last update: Apr 05 2020 at 01:10UTC