ACT | CLion | Weird make pub
suggestion at the end of Code blocks
#6577
Labels
bug
subsystem::code insight
General label for issues related to code understanding: highlighting, completion, annotation, etc.
Environment
Problem description
When the cursor is at the end of a
fn
,impl
, ortrait
block, there are two new context actionsmake pub
andmake pub(crate)
:Which, when selected, append a
pub
orpub(crate)
to the end of the code block:I think the intended behaviour is to make the function public, like when you place the cursor at the beginning of the function:
Even though in this case, this also makes no sense, since
deserialize
is a trait function and therefore cannot have a visibility modifier.The text was updated successfully, but these errors were encountered: