fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1This file is contained in the './lib' directory. 2 3The 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 11Module resolution will fail if we look for './lib/a.rs' or './lib/a/mod.rs', 12so we should fall back to looking for './a.rs', which correctly finds the module that 13rustfmt should format. 14 15'./lib/b.rs' and './lib/c/mod.rs' exist at the default submodule paths so we should be able 16to resolve these modules with no problems.