rust/compiler
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
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #103578 - petrochenkov:nofict, r=nagisa 2022-11-22 10:17:09 +00:00
rustc_ast_lowering Rollup merge of #104612 - Swatinem:async-ret-y, r=estebank 2022-11-22 22:54:39 -05:00
rustc_ast_passes
rustc_ast_pretty Split MacArgs in two. 2022-11-22 09:04:15 +11:00
rustc_attr
rustc_baked_icu_data Update crate documentation of rustc_baked_icu_data crate 2022-11-18 14:46:36 -08:00
rustc_borrowck Rollup merge of #103488 - oli-obk:impl_trait_for_tait, r=lcnr 2022-11-22 22:54:38 -05:00
rustc_builtin_macros Split MacArgs in two. 2022-11-22 09:04:15 +11:00
rustc_codegen_cranelift Rollup merge of #104605 - RalfJung:clf_consts, r=bjorn3 2022-11-21 14:11:12 +01:00
rustc_codegen_gcc Rollup merge of #104001 - Ayush1325:custom-entry, r=bjorn3 2022-11-19 11:54:43 +05:30
rustc_codegen_llvm Unreserve braced enum variants in value namespace 2022-11-21 22:40:06 +03:00
rustc_codegen_ssa Rollup merge of #104605 - RalfJung:clf_consts, r=bjorn3 2022-11-21 14:11:12 +01:00
rustc_const_eval Use tcx.require_lang_item instead of unwrapping 2022-11-22 17:19:19 +00:00
rustc_data_structures Auto merge of #97870 - eggyal:inplace_fold_spec, r=wesleywiser 2022-11-19 02:28:47 +00:00
rustc_driver Rollup merge of #103117 - joshtriplett:use-is-terminal, r=eholk 2022-11-19 15:35:18 +01:00
rustc_error_codes Auto merge of #103491 - cjgillot:self-rpit, r=oli-obk 2022-11-21 12:17:03 +00:00
rustc_error_messages Rollup merge of #104621 - YC:master, r=davidtwco 2022-11-22 22:54:40 -05:00
rustc_errors Rollup merge of #104504 - compiler-errors:fru-syntax-note, r=estebank 2022-11-20 23:50:27 +01:00
rustc_expand Rollup merge of #104638 - Nilstrieb:macro-diagnostics, r=compiler-errors 2022-11-22 01:26:08 -05:00
rustc_feature Auto merge of #103491 - cjgillot:self-rpit, r=oli-obk 2022-11-21 12:17:03 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir Unreserve braced enum variants in value namespace 2022-11-21 22:40:06 +03:00
rustc_hir_analysis Rollup merge of #103488 - oli-obk:impl_trait_for_tait, r=lcnr 2022-11-22 22:54:38 -05:00
rustc_hir_pretty Store a LocalDefId in hir::Variant & hir::Field. 2022-11-13 14:06:51 +00:00
rustc_hir_typeck Rollup merge of #103488 - oli-obk:impl_trait_for_tait, r=lcnr 2022-11-22 22:54:38 -05:00
rustc_incremental
rustc_index
rustc_infer Rollup merge of #103488 - oli-obk:impl_trait_for_tait, r=lcnr 2022-11-22 22:54:38 -05:00
rustc_interface Enable icu sync feature for parallel compiler 2022-11-18 14:46:35 -08:00
rustc_lexer Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_lint Rollup merge of #104359 - Nilstrieb:plus-one, r=fee1-dead 2022-11-22 22:54:39 -05:00
rustc_lint_defs Merge branch 'master' into patch-2 2022-11-15 21:16:11 +01:00
rustc_llvm Auto merge of #102717 - beetrees:repr128-c-style-debuginfo, r=nagisa 2022-11-21 01:44:12 +00:00
rustc_log
rustc_macros Improve slug name error 2022-11-21 15:24:51 +01:00
rustc_metadata Rollup merge of #104621 - YC:master, r=davidtwco 2022-11-22 22:54:40 -05:00
rustc_middle Rollup merge of #103488 - oli-obk:impl_trait_for_tait, r=lcnr 2022-11-22 22:54:38 -05:00
rustc_mir_build Auto merge of #104711 - Dylan-DPC:rollup-gkw1qr8, r=Dylan-DPC 2022-11-22 13:18:45 +00:00
rustc_mir_dataflow Allow iterators instead of requiring slices that will get turned into iterators 2022-11-21 20:33:55 +00:00
rustc_mir_transform Allow iterators instead of requiring slices that will get turned into iterators 2022-11-21 20:33:55 +00:00
rustc_monomorphize Stop passing the self-type as a separate argument. 2022-11-21 20:39:46 +00:00
rustc_parse Rollup merge of #104559 - nnethercote:split-MacArgs, r=petrochenkov 2022-11-22 00:01:09 +01:00
rustc_parse_format shift no characters when using raw string literals 2022-11-15 14:28:20 +09:00
rustc_passes Change to Ty::is_inhabited_from 2022-11-20 19:04:11 -06:00
rustc_plugin_impl
rustc_privacy Store a LocalDefId in hir::Variant & hir::Field. 2022-11-13 14:06:51 +00:00
rustc_query_impl
rustc_query_system Hash spans when interning. 2022-11-11 13:02:37 +00:00
rustc_resolve Auto merge of #104711 - Dylan-DPC:rollup-gkw1qr8, r=Dylan-DPC 2022-11-22 13:18:45 +00:00
rustc_save_analysis Store a LocalDefId in hir::Variant & hir::Field. 2022-11-13 14:06:51 +00:00
rustc_serialize
rustc_session Match crate and slug names 2022-11-21 15:24:50 +01:00
rustc_smir
rustc_span Auto merge of #103491 - cjgillot:self-rpit, r=oli-obk 2022-11-21 12:17:03 +00:00
rustc_symbol_mangling Unreserve braced enum variants in value namespace 2022-11-21 22:40:06 +03:00
rustc_target Rollup merge of #102293 - ecnelises:aix.initial, r=davidtwco 2022-11-23 06:40:22 +09:00
rustc_trait_selection Rollup merge of #103488 - oli-obk:impl_trait_for_tait, r=lcnr 2022-11-22 22:54:38 -05:00
rustc_traits Rollup merge of #103488 - oli-obk:impl_trait_for_tait, r=lcnr 2022-11-22 22:54:38 -05:00
rustc_transmute
rustc_ty_utils Stop passing the self-type as a separate argument. 2022-11-21 20:39:46 +00:00
rustc_type_ir Remove some unnecessary slicing 2022-11-21 20:38:55 +00:00