Skip to content

Commit b1d6aea

Browse files
author
Jonas Schievink
committed
Fix parsing of #[derive] paths
1 parent 4a1e4ee commit b1d6aea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/hir_def/src/attr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ impl Attr {
737737
matches!(tt, tt::TokenTree::Leaf(tt::Leaf::Punct(Punct { char: ',', .. })))
738738
})
739739
.into_iter()
740+
.filter(|(comma, _)| !*comma)
740741
.map(|(_, tts)| {
741742
let segments = tts.filter_map(|tt| match tt {
742743
tt::TokenTree::Leaf(tt::Leaf::Ident(id)) => Some(id.as_name()),

0 commit comments

Comments
 (0)