Module rustc_session::search_paths
source · Structs§
- The obvious implementation of
SearchPath::filesis aVec<PathBuf>. But it is searched repeatedly byfind_library_crate, and the searches involve checking the prefix and suffix of the filename of eachPathBuf. This is doable, but very slow, because it involves calls tofile_nameandextensionthat are themselves slow.