Fixed "::::" appearing in module_path!()
Added test for module_path! fix
auto merge of #19262 : murarth/rust/module-path-fix, r=jakub-

Closes #18859