Stream: wg-async-foundations


csmoe (Jan 08 2020 at 16:42, on Zulip):
struct A;
impl A {
    fn foo(&self) -> &str {}
let a = A;;

@nikomatsakis while visiting, a temporary &A was created, How can I query the compiler who did that(foo() in this case)? thus I can get the correct span to lint.

csmoe (Jan 08 2020 at 16:50, on Zulip):

hmmm, maybe I can seek help from scopetree, debuginfo from rustc::middle::region seems helpfull.

Last update: Jan 22 2021 at 11:30UTC