Stream: wg-async-foundations

Topic: https://github.com/rust-lang/rust/issues/67376


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

@nikomatsakis while visiting a.foo().len(), 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 28 2020 at 00:35UTC