]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/mod-resolver/issue-5198/lib/explanation.txt
Auto merge of #103019 - Kobzol:ci-multistage-python, r=Mark-Simulacrum
[rust.git] / src / tools / rustfmt / tests / mod-resolver / issue-5198 / lib / explanation.txt
1 This file is contained in the './lib' directory.
2
3 The directory name './lib' conflicts with the './lib.rs' file name.
4
5 'lib.rs' defines 3 external modules:
6
7     * mod a;
8     * mod b;
9     * mod c;
10
11 Module resolution will fail if we look for './lib/a.rs' or './lib/a/mod.rs',
12 so we should fall back to looking for './a.rs', which correctly finds the module that
13 rustfmt should format.
14
15 './lib/b.rs' and './lib/c/mod.rs' exist at the default submodule paths so we should be able
16 to resolve these modules with no problems.