rust/compiler/rustc_parse/src
Dylan DPC eb36bc666a
Rollup merge of #76808 - LeSeulArtichaut:diagnose-functions-struct, r=jackh726
Improve diagnostics for functions in `struct` definitions

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`
2021-05-08 01:06:22 +02:00
..
lexer Fix outdated crate names in compiler docs 2021-04-08 11:12:14 -05:00
parser Rollup merge of #76808 - LeSeulArtichaut:diagnose-functions-struct, r=jackh726 2021-05-08 01:06:22 +02:00
lib.rs Implement token-based handling of attributes during expansion 2021-04-11 01:31:36 -04:00
validate_attr.rs ast: Remove some indirection layers from values in key-value attributes 2021-01-09 21:50:39 +03:00