Had this problem in RustRover. Fixed it by switching to project files, opening local history for .idea, and restoring it to an earlier version. Turns out the .iml file in the .idea folder got deleted.