9

Github Improve diagnostics for functions in `struct` definitions by LeSeulArtich...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/76808
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Conversation

Tries to implement #76421.
This is probably going to need unit tests, but I wanted to hear from review all the cases tests should cover.

I'd like to follow up with the "mechanically applicable suggestion here that adds an impl block" step, but I'd need guidance. My idea for now would be to try to parse a function, and if that succeeds, create a dummy ast::Item impl block to then format it using pprust. Would that be a viable approach? Is there a better alternative?

r? @matklad cc @estebank


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK