rust/compiler
bors 5fa94f3c57 Auto merge of #88368 - jyn514:metadata-error, r=petrochenkov
Improve error when an .rlib can't be parsed

This usually describes either an error in the compiler itself or some
sort of IO error. Either way, we should report it to the user rather
than just saying "crate not found".

This only gives an error if the crate couldn't be loaded at all - if the
compiler finds another .rlib or .rmeta file which was valid, it will
continue to compile the crate.

Example output:
```
error[E0785]: found invalid metadata files for crate `foo`
 --> bar.rs:3:24
  |
3 |         println!("{}", foo::FOO_11_49[0]);
  |                        ^^^
  |
  = warning: failed to parse rlib '/home/joshua/test-rustdoc/libfoo.rlib': Invalid archive extended name offset
```

cc `@ehuss`
2021-11-07 23:03:55 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast ast: Fix naming conventions in AST structures 2021-11-07 21:38:17 +08:00
rustc_ast_lowering ast: Fix naming conventions in AST structures 2021-11-07 21:38:17 +08:00
rustc_ast_passes Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_ast_pretty Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_attr
rustc_borrowck more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_builtin_macros Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_codegen_cranelift
rustc_codegen_gcc Auto merge of #89652 - rcvalle:rust-cfi, r=nagisa 2021-10-27 09:19:42 +00:00
rustc_codegen_llvm Auto merge of #90617 - tmiasko:time-trace-threads, r=wesleywiser 2021-11-06 09:55:50 +00:00
rustc_codegen_ssa more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_const_eval use matches!() macro in more places 2021-11-06 16:13:14 +01:00
rustc_data_structures more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_driver Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_error_codes Improve error when an .rlib can't be parsed 2021-11-07 15:03:40 +00:00
rustc_errors Lint against RTL unicode codepoints in literals and comments 2021-10-31 13:14:04 +01:00
rustc_expand Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_feature Add features gates for experimental asm features 2021-11-07 01:23:53 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #90406 - nbdd0121:panic, r=cjgillot 2021-11-01 17:18:57 +00:00
rustc_hir_pretty
rustc_incremental Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_index
rustc_infer more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_interface Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_lexer use matches!() macro in more places 2021-11-06 16:13:14 +01:00
rustc_lint Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_lint_defs Properly register text_direction_codepoint_in_comment lint. 2021-11-05 20:12:40 +01:00
rustc_llvm Initialize LLVM time trace profiler on each code generation thread 2021-11-05 17:47:11 +01:00
rustc_macros more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_metadata Auto merge of #88368 - jyn514:metadata-error, r=petrochenkov 2021-11-07 23:03:55 +00:00
rustc_middle Auto merge of #90661 - matthiaskrgr:rollup-1umbdlx, r=matthiaskrgr 2021-11-06 22:55:37 +00:00
rustc_mir_build Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_mir_dataflow Remove MaybeMutBorrowedLocals 2021-11-03 16:43:12 +01:00
rustc_mir_transform Rollup merge of #90649 - cjgillot:reveal-all-2, r=lcnr 2021-11-06 23:12:06 +01:00
rustc_monomorphize clippy::perf fixes 2021-11-04 21:07:56 +01:00
rustc_parse ast: Fix naming conventions in AST structures 2021-11-07 21:38:17 +08:00
rustc_parse_format
rustc_passes more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_plugin_impl
rustc_privacy Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_query_impl Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_query_system Auto merge of #90380 - Mark-Simulacrum:revert-89558-query-stable-lint, r=lcnr 2021-10-29 04:55:51 +00:00
rustc_resolve Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_save_analysis clippy::perf fixes 2021-11-04 21:07:56 +01:00
rustc_serialize
rustc_session more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_span Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_symbol_mangling Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_target more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_trait_selection more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_traits
rustc_ty_utils Auto merge of #90218 - JakobDegen:adt_significant_drop_fix, r=nikomatsakis 2021-10-28 16:03:13 +00:00
rustc_type_ir
rustc_typeck more clippy fixes 2021-11-07 16:59:05 +01:00