about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2022-11-22 22:54:40 -0500
committerGitHub <noreply@github.com>2022-11-22 22:54:40 -0500
commit54b629285512582f9405ecfad05cb9c6acb0ecdd (patch)
treeb61d4f3d0fdd0a23b330caf04368927252c2503f /compiler/rustc_codegen_gcc
parent36815c6e3bbe3a38704e1e89038fa5f6bb9fe41d (diff)
parent7169c7d1051a235d76eb24d704f19c1928abf383 (diff)
downloadrust-54b629285512582f9405ecfad05cb9c6acb0ecdd.tar.gz
rust-54b629285512582f9405ecfad05cb9c6acb0ecdd.zip
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`
https://github.com/rust-lang/rust/blob/c493bae0d8efd75723460ce5c371f726efa93f15/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.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions