rust/tests/mod-resolver
Yacin Tmimi 18c0369688 Improve mod resolution error for mods with multiple candidate files
Fixes 5167

When ``a.rs`` and ``a/mod.rs`` are both present we would emit an error
message telling the user that the module couldn't be found. However,
this behavior is misleading because we're dealing with an ambiguous
module path, not a "file not found" error.

Is the file ``a.rs`` or is it ``a/mod.rs``? Rustfmt can't decide, and
the user needs to resolve this ambiguity themselves.

Now, the error message displayed to the user is in line with what they
would see if they went to compile their code with these conflicting
module names.
2022-03-08 21:51:23 -06:00
..
issue-4874 fix(rustfmt): load nested out-of-line mods correctly 2021-06-17 22:35:19 -05:00
issue-5063 fix: handle external mods imported via external->inline load hierarchy 2021-11-04 18:35:38 -05:00
issue-5167/src Improve mod resolution error for mods with multiple candidate files 2022-03-08 21:51:23 -06:00
issue-5198 fallback to dir_path when relative external mod resolution fails 2022-02-28 23:13:11 -06:00
module-not-found Improve mod resolution error for mods with multiple candidate files 2022-03-08 21:51:23 -06:00
skip-files-issue-5065 Backport: Do not touch module with #![rustfmt::skip] (4297) 2021-12-07 18:45:00 -06:00
test-submodule-issue-5119 Improve out of line module resolution 2022-01-01 10:27:49 -06:00