rust/src
Dylan DPC aaf23892ab
Rollup merge of #84871 - richkadel:no-coverage-unstable-only, r=nagisa
Disallows `#![feature(no_coverage)]` on stable and beta (using standard crate-level gating)

Fixes: #84836

Removes the function-level feature gating solution originally implemented, and solves the same problem using `allow_internal_unstable`, so normal crate-level feature gating mechanism can still be used (which disallows the feature on stable and beta).

I tested this, building the compiler with and without `CFG_DISABLE_UNSTABLE_FEATURES=1`

With unstable features disabled, I get the expected result as shown here:

```shell
$ ./build/x86_64-unknown-linux-gnu/stage1/bin/rustc     src/test/run-make-fulldeps/coverage/no_cov_crate.rs
error[E0554]: `#![feature]` may not be used on the dev release channel
 --> src/test/run-make-fulldeps/coverage/no_cov_crate.rs:2:1
  |
2 | #![feature(no_coverage)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

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

r? ````@Mark-Simulacrum````
cc: ````@tmandry```` ````@wesleywiser````
2021-05-07 00:38:40 +02:00
..
bootstrap Rollup merge of #84500 - tmandry:compiletest-run-flag, r=Mark-Simulacrum 2021-05-07 00:38:35 +02:00
build_helper
ci Update clang to 12.0.0 on Windows and macOS 2021-05-03 22:54:50 -07:00
doc Implement RFC 2951: Native link modifiers 2021-05-05 16:04:25 -07:00
etc Fix HashMap/HashSet LLDB pretty-printer after hashbrown 0.11.0 2021-04-06 12:44:17 +03:00
librustdoc Revert PR 83866 2021-05-05 13:50:20 +02:00
llvm-project@b61c24f352 Update LLVM for more wasm simd updates 2021-04-30 07:27:34 -07:00
rustdoc-json-types rustdoc-json: Rename Import.span to Import.source 2021-03-21 19:47:12 -07:00
test Rollup merge of #84871 - richkadel:no-coverage-unstable-only, r=nagisa 2021-05-07 00:38:40 +02:00
tools Rollup merge of #84734 - tmandry:compiletest-needs-unwind, r=Mark-Simulacrum 2021-05-07 00:38:37 +02:00
README.md update message 2021-02-14 10:08:37 +05:30
stage0.txt Bump bootstrap compiler 2021-04-06 18:24:09 -07:00
version bump version to 1.54.0 2021-04-30 15:24:00 +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.