about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorYacin Tmimi <yacintmimi@gmail.com>2022-01-10 20:45:27 -0500
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2022-03-08 21:51:23 -0600
commit18c0369688d5854ea67dbe29cfac3cc8380cb20e (patch)
tree34d15a4d4d4b252e4c627d1a84241bf292ade34d /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent58de4142c525cc50824dab1cf199dc967c88356f (diff)
downloadrust-18c0369688d5854ea67dbe29cfac3cc8380cb20e.tar.gz
rust-18c0369688d5854ea67dbe29cfac3cc8380cb20e.zip
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.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions