Closed
Description
In following code:
trait Foo {}
struct A {}
const _ : () = {
impl crate::Foo for crate::A {} <--- (1)
};
(1) is local trait impls for non-local types. Currently we do not support it due to the fact that we do not want to look at the bodies of all functions and blocks. But is it possible to support this case solely, as an escape hatch for proc-macro author to workaround of lacking of proc-macro hygiene at the moment ?
What do you think about it @jonas-schievink ?