rust/src
Mara Bos dcefd6871d
Rollup merge of #86376 - asquared31415:extern-no-mangle-84204, r=Mark-Simulacrum
Emit specific warning to clarify that `#[no_mangle]` should not be applied on foreign statics or functions

Foreign statics and foreign functions should not have `#[no_mangle]` applied, as it does nothing to the name and has some extra hidden behavior that is normally unwanted.  There was an existing warning for this, but it says the attribute is only allowed on "statics or functions", which to the user can be confusing.

This PR adds a specific version of the unused `#[no_mangle]` warning that explains that the target is a *foreign* static or function and that they do not need the attribute.

Fixes #78989
2021-09-01 09:23:22 +02:00
..
bootstrap Auto merge of #88250 - rusticstuff:macos-lld, r=nagisa 2021-08-29 04:51:14 +00:00
build_helper rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
ci Bump sccache used in CI to v0.2.15 2021-08-25 16:26:45 -04:00
doc update rustc cmdargs markdown section 2021-08-30 15:27:00 +02:00
etc set the executable bit on pre-commit.sh 2021-08-11 15:06:33 -04:00
librustdoc Rollup merge of #88391 - GuillaumeGomez:fix-json-enum-variant, r=camelid,notriddle 2021-08-31 17:54:54 +02:00
llvm-project@e6c5dd473b Update to LLVM 13 2021-08-16 20:24:02 +02:00
rustdoc-json-types rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
test Rollup merge of #86376 - asquared31415:extern-no-mangle-84204, r=Mark-Simulacrum 2021-09-01 09:23:22 +02:00
tools Auto merge of #87688 - camsteffen:let-else, r=cjgillot 2021-09-01 01:02:42 +00:00
README.md
stage0.txt bump bootstrap compiler to 1.55 2021-08-01 11:19:24 -04:00
version Bump to 1.56 2021-07-23 17:04:59 -04: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.