rust/src
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
..
bootstrap Provide standalone libc.a in self-contained for musl and wasi 2021-11-03 21:12:15 +08:00
build_helper Migrate to 2021 2021-09-20 22:21:42 -04:00
ci Pull in libkvm on FreeBSD 2021-11-02 10:44:14 +02:00
doc Auto merge of #90348 - Amanieu:asm_feature_gates, r=joshtriplett 2021-11-07 04:59:42 +00:00
etc Encode json files with UTF-8 2021-09-30 00:11:14 +09:00
librustdoc Auto merge of #90635 - matthiaskrgr:rustdoc_compl, r=GuillaumeGomez 2021-11-07 02:17:35 +00:00
llvm-project@a7348ae0df Update to the final LLVM 13.0.0 release 2021-10-01 21:06:19 -07:00
rustdoc-json-types Moved format-version constant to rustdoc-json-types 2021-10-15 12:27:42 +03:00
test Auto merge of #88368 - jyn514:metadata-error, r=petrochenkov 2021-11-07 23:03:55 +00:00
tools ast: Fix naming conventions in AST structures 2021-11-07 21:38:17 +08:00
README.md
stage0.json bump boostrap compiler 2021-10-23 21:55:57 -04:00
version bump version to rust 1.58.0 2021-10-17 16:04:44 +02:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.