This is an unfinished patch I'm working on that Raphael may find interesting. Posting to get early feedback and to avoid stepping on each others' toes.
aprantl on Feb 11 2019, 5:09 PM.Authored by
+1. That's a cleaner version of what I had to do in D58125, so feel free to commit when done. The code is similar enough that rebasing my patch on top shouldn't take too much time.
The change itself looks fine, just a few nits inline.