rust/src
Matthias Krüger 353dd71d73
Rollup merge of #112454 - ferrocene:pa-compiletest-dynamic-linking, r=davidtwco
Make compiletest aware of targets without dynamic linking

Some parts of the compiletest internals and some tests require dynamic linking to work, which is not supported by all targets. Before this PR, this was handled by if branches matching on the target name.

This PR loads whether a target supports dynamic linking or not from the target spec, and adds a `// needs-dynamic-linking` attribute for tests that require it. Note that I was not able to replace all the old conditions based on the target name, as some targets have `dynamic_linking: true` in their spec but pretend they don't have it in compiletest.

Also, to get this to work I had to *partially* revert #111472 (cc `@djkoloski` `@tmandry` `@bjorn3).` On one hand, only the target spec contains whether a target supports dynamic linking, but on the other hand a subset of the fields can be overridden through `-C` flags (as far as I'm aware only `-C panic=$strategy`). The solution I came up with is to take the target spec as the base, and then override the panic strategy based on `--print=cfg`. Hopefully that should not break y'all again.
2023-06-27 22:10:13 +02:00
..
bootstrap Rollup merge of #113034 - jyn514:ci-progress, r=oli-obk 2023-06-26 11:58:46 +02:00
ci Auto merge of #112969 - CryZe:patch-7, r=Mark-Simulacrum 2023-06-26 21:51:03 +00:00
doc Update books 2023-06-26 09:44:26 -07:00
etc Rollup merge of #112915 - preveen-stack:patch-1, r=Mark-Simulacrum 2023-06-24 20:26:45 +02:00
librustdoc Auto merge of #113083 - matthiaskrgr:rollup-anbqpij, r=matthiaskrgr 2023-06-27 06:04:37 +00:00
llvm-project@22897bce7b Update to LLVM 16.0.5 2023-06-05 14:19:09 +02:00
rustdoc-json-types Verify that ItemEnum can be serialized and then deserialized using bincode 2023-05-22 18:26:20 +01:00
tools Rollup merge of #112454 - ferrocene:pa-compiletest-dynamic-linking, r=davidtwco 2023-06-27 22:10:13 +02:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Bump to latest beta compiler 2023-05-30 08:00:10 -04:00
version Bump to 1.72.0 2023-05-27 14:23:37 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

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