rust/src
bors 31d754a1df Auto merge of #102988 - dpaoliello:inlinerawdylib, r=dpaoliello
Support raw-dylib functions being used inside inlined functions

Fixes #102714

Issue Details:
When generating the import library for `raw-dylib` symbols, we currently only use the functions and variables declared within the current crate. This works fine if all crates are static libraries or `rlib`s as the generated import library will be contained in the static library or `rlib` itself, but if a dependency is a dynamic library AND the use of a `raw-dylib` function or variable is inlined or part of a generic instantiation then the current crate won't see its dependency's import library and so linking will fail.

Fix Details:
Instead, when we generate the import library for a `dylib` or `bin` crate, we will now generate it for the symbols both for the current crate and all upstream crates. We do this in two steps so that the import library for the current crate is passed into the linker first, thus it is preferred if there are any ambiguous symbols.
2022-10-25 04:57:51 +00:00
..
bootstrap Rollup merge of #103347 - RalfJung:rustc-src, r=Mark-Simulacrum 2022-10-23 14:48:16 -07:00
ci Auto merge of #103062 - cuviper:dist-mips, r=Mark-Simulacrum 2022-10-23 21:38:43 +00:00
doc Document link to unstable book 2022-10-24 10:34:52 -05:00
etc Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett 2022-10-14 23:43:42 +02:00
librustdoc Rollup merge of #103495 - Enselic:rustdoc-unix_sigpipe, r=notriddle 2022-10-25 08:01:31 +09:00
llvm-project@4b85255772 Update LLVM submodule 2022-10-23 13:48:03 +02:00
rustdoc-json-types Rustdoc-Json: List impls for primitives 2022-09-26 18:06:48 +01:00
test Auto merge of #102988 - dpaoliello:inlinerawdylib, r=dpaoliello 2022-10-25 04:57:51 +00:00
tools Rollup merge of #103495 - Enselic:rustdoc-unix_sigpipe, r=notriddle 2022-10-25 08:01:31 +09:00
README.md Remove miri from the submodule list and require it for CI to pass 2022-09-21 15:35:53 +00:00
stage0.json bump stage0 2022-09-26 10:13:46 +02:00
version bump version to 1.66.0 2022-09-16 10:51:09 +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 cargo, etc.

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