rust/src
bors 7b52ad00cb Auto merge of #87619 - 12101111:fix-native_link_modifiers_bundle, r=petrochenkov
Fix feature gate checking of static-nobundle and native_link_modifiers

Feature native_link_modifiers_bundle don't need feature static-nobundle
to work.

Also check the feature gates when using native_link_modifiers from command line options. Current nighly compiler don't check those feature gate.

```
> touch lib.rs
> rustc +nightly lib.rs -L /usr/lib -l static:+bundle=dl --crate-type=rlib
> rustc +nightly lib.rs -L /usr/lib -l dylib:+as-needed=dl --crate-type=dylib -Ctarget-feature=-crt-static
> rustc +nightly lib.rs -L /usr/lib -l static:-bundle=dl --crate-type=rlib
error[E0658]: kind="static-nobundle" is unstable
  |
  = note: see issue #37403 <https://github.com/rust-lang/rust/issues/37403> for more information
  = help: add `#![feature(static_nobundle)]` to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.

```

First found this in https://github.com/rust-lang/rust/pull/85600#discussion_r676612655
2021-08-09 03:59:30 +00:00
..
bootstrap Rollup merge of #87744 - Smittyvb:xpy-test-force-rerun, r=Mark-Simulacrum 2021-08-08 01:13:41 +09:00
build_helper rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
ci Auto merge of #85782 - badboy:build-ios-sim-target, r=Mark-Simulacrum 2021-08-01 00:12:18 +00:00
doc Promote aarch64-apple-ios-sim to Tier 2 2021-08-04 15:06:26 +02:00
etc Auto merge of #85305 - MarcusDunn:master, r=pnkfelix 2021-07-27 05:53:31 +00:00
librustdoc Rollup merge of #87834 - camelid:span-typo, r=CraftSpider 2021-08-08 01:13:43 +09:00
llvm-project@260e0f8682 Bump LLVM for RegAllocFast bugfix 2021-07-29 19:23:41 -05:00
rustdoc-json-types rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
test Auto merge of #87619 - 12101111:fix-native_link_modifiers_bundle, r=petrochenkov 2021-08-09 03:59:30 +00:00
tools Auto merge of #87851 - JohnTitor:rollup-odvmr47, r=JohnTitor 2021-08-07 18:21:04 +00:00
README.md update message 2021-02-14 10:08:37 +05:30
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.