Relying on a particular syntax to be available is quite fragile, as this will already break with the `extern mod` to `extern crate` change!

I would recommend passing around the name as well as the span so you can emit the right error message. When the name of the crate being loaded is not the same as the name of the crate with the corresponding span, you know you failed to find a dependency of that crate.