rust/compiler/rustc_error_messages
Manish Goregaokar 54b6292855
Rollup merge of #104621 - YC:master, r=davidtwco
Fix --extern library finding errors

- `crate_name` is not specified/passed to `metadata_crate_location_unknown_type`
c493bae0d8/compiler/rustc_error_messages/locales/en-US/metadata.ftl (L274-L275)
- `metadata_lib_filename_form` is missing `$`
- Add additional check to ensure that library is file

Testing
1. Create file `a.rs`
```rust
extern crate t;
fn main() {}
```
1. Create empty file `x`
1. Create empty directory `y`
1. Run
```sh
$ rustc -o a a.rs --extern t=x
$ rustc -o a a.rs --extern t=y
```
Both currently panic with stable.
2022-11-22 22:54:40 -05:00
..
locales/en-US Rollup merge of #104621 - YC:master, r=davidtwco 2022-11-22 22:54:40 -05:00
src Match crate and slug names 2022-11-21 15:24:50 +01:00
Cargo.toml Enable icu sync feature for parallel compiler 2022-11-18 14:46:35 -08:00