feat: add support for feature attributes in struct literal

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
Benjamin Coenen 2020-04-09 18:32:02 +02:00
parent 8595693287
commit fc70cf9458
6 changed files with 143 additions and 45 deletions

View file

@ -5216,6 +5216,7 @@ impl RecordFieldList {
pub struct RecordField {
pub(crate) syntax: SyntaxNode,
}
impl ast::AttrsOwner for RecordField {}
impl std::fmt::Display for RecordField {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
std::fmt::Display::fmt(self.syntax(), f)