Stream: t-compiler/wg-rls-2.0

Topic: static mut unsafe


Paul Faria (Aug 07 2020 at 00:30, on Zulip):

So I realized I missed static mut in my unsafe PR's. I got the highlight one done pretty easily, but I'm having trouble determining whether a path expr points to a static. Is there any infrastructure setup to determine that? I imagine it would need to be something within infer, since the static mut name could be shadowed, but nothing stands out.

Paul Faria (Aug 07 2020 at 00:54, on Zulip):

Found a way to get the info. I was able to get a resolver for the expr, then call resolve_path_in_value_ns to determine whether it's static or not.

Last update: Sep 27 2020 at 14:30UTC