trait_impl_redundant_assoc_item
fails if the files is a macro file
#16269
Labels
C-bug
Category: bug
trait_impl_redundant_assoc_item
fails if the files is a macro file
#16269
PR #15990 introduced a bug when unwrapping this
file_id
:rust-analyzer/crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs
Line 47 in 932d85b
The function returns
None
if the file is a macro file:rust-analyzer/crates/span/src/lib.rs
Lines 253 to 259 in 932d85b
Maybe changing it to something like
trait_impl_missing_assoc_item
will work?rust-analyzer/crates/ide-diagnostics/src/handlers/trait_impl_missing_assoc_item.rs
Lines 23 to 31 in f532576
The text was updated successfully, but these errors were encountered: