rust/compiler/rustc_error_messages/locales/en-US
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
..
ast_lowering.ftl Improve the help message for an invalid calling convention 2022-09-22 22:18:30 +02:00
ast_passes.ftl Make async fn in traits work 2022-09-09 01:31:45 +00:00
attr.ftl Reorder diagnostics in code order, then alphabetical order 2022-08-22 20:19:19 +02:00
borrowck.ftl Match crate and slug names 2022-11-21 15:24:50 +01:00
builtin_macros.ftl Replace - with _ in ftl slugs for better grepability 2022-08-12 22:22:55 +02:00
codegen_gcc.ftl lint and remove unused diagnostic 2022-09-26 19:57:40 -07:00
codegen_llvm.ftl Use LayoutError's implementation of IntoDiagnostic 2022-11-09 14:56:21 +01:00
codegen_ssa.ftl Issue error when -C link-self-contained option is used on unsupported platforms 2022-11-14 22:21:24 -06:00
compiletest.ftl errors: rename typeck.ftl to hir_analysis.ftl 2022-10-03 13:52:17 +01:00
const_eval.ftl Addressed trailing newlines, odd whitespace skipped by x.py fmt 2022-08-22 12:38:16 -03:00
driver.ftl add UI test for unpretty 2022-08-30 09:31:52 +08:00
errors.ftl ADD - IntoDiagnostic conformance for TargetDataLayoutErrors in rustc_errors 2022-10-12 16:54:25 -04:00
expand.ftl tidy: check fluent files for style 2022-08-18 12:34:11 +02:00
hir_analysis.ftl Match crate and slug names 2022-11-21 15:24:50 +01:00
hir_typeck.ftl Match crate and slug names 2022-11-21 15:24:50 +01:00
infer.ftl fix up a fluent message 2022-11-13 04:16:08 +01:00
interface.ftl Prefix fluent resources with interface_ 2022-08-22 14:59:41 +02:00
lint.ftl Fix opaque_hidden_inferred_bound lint ICE 2022-10-05 19:47:19 +00:00
metadata.ftl Remove extra . in metadata_lib_filename_form 2022-11-22 17:07:19 +11:00
middle.ftl Match crate and slug names 2022-11-21 15:24:50 +01:00
mir_dataflow.ftl Rename rustc_mir_dataflow diagnostic to mir_dataflow 2022-08-23 13:48:15 +01:00
monomorphize.ftl Use tcx.require_lang_item 2022-10-29 16:09:15 -05:00
parse.ftl Match crate and slug names 2022-11-21 15:24:50 +01:00
passes.ftl Print all labels, even if they have no span. Fall back to main item's span. 2022-11-11 14:45:28 +00:00
plugin_impl.ftl Migrate rustc_plugin_impl to SessionDiagnostic 2022-08-22 16:35:05 +01:00
privacy.ftl change AccessLevels representation 2022-09-14 18:11:00 +03:00
query_system.ftl query_system: finish migration 2022-10-10 14:20:16 +01:00
resolve.ftl migrating rustc_resolve to SessionDiagnostic. work in progress. start 2022-11-13 19:39:26 +05:30
save_analysis.ftl save_analysis: Migrate diagnostics 2022-08-24 06:50:16 +09:00
session.ftl Match crate and slug names 2022-11-21 15:24:50 +01:00
symbol_mangling.ftl UPDATE - merge and avoid translations for symbol mangling test output 2022-09-13 16:19:32 -04:00
trait_selection.ftl Porting 'compiler/rustc_trait_selection' to translatable diagnostics - Part 1 2022-09-01 12:54:50 -05:00
ty_utils.ftl Migrate rustc_ty_utils to use SessionDiagnostic 2022-08-26 14:36:51 +01:00