graydon/rust — comment on commit bd33951b1c59fe968e625fc7379ce2761ede777e
File:  line 0
By brson:

It's still 'use std'. The crate resolution only depends on the metadata now, not the filename.

This does mean that it could potentially open a lot of files, but right now it doesn't have a performance impact since the default search path is in a rust-specific directory, lib/rustc/{arch}/lib.

We could also use a slightly different heuristic, like matching files that contain lib*foo*.so (prevously we were looking for libfoo*.so. In that case it would basically just be a hack to support naming std as ruststd.

The reason for doing this is because I don't want to put a library called std in /usr/lib