rust/library/core/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
..
alloc
array Auto merge of #84147 - cuviper:array-method-dispatch, r=nikomatsakis,m-ou-se 2021-04-25 07:26:49 +00:00
char
convert Get rid of "[+] show undocumented items" toggle on numeric From impls 2021-04-22 11:51:05 -07:00
fmt Rollup merge of #84390 - m-ou-se:make-debug-non-exhaustive-without-fields-a-little-bit-less-verbose, r=kennytm 2021-04-21 23:06:21 +02:00
future
hash Auto merge of #83390 - clarfonthey:hasher_docs, r=Amanieu 2021-04-26 08:21:55 +00:00
iter Drop alias reduce for fold - we have a reduce function 2021-04-29 12:05:08 -07:00
macros
mem Fix typo in MaybeUninit::array_assume_init safety comment 2021-05-05 12:31:38 +03:00
num [clippy] remove redundant field names 2021-05-02 20:24:17 -04:00
ops Auto merge of #84092 - scottmcm:try_trait_initial, r=yaahc,m-ou-se 2021-04-26 23:17:31 +00:00
prelude
ptr Rollup merge of #83553 - jfrimmel:addr-of, r=m-ou-se 2021-05-05 17:52:18 +02:00
slice Clarify documentation for [T]::contains. Fixes #84877. 2021-05-03 12:01:16 -07:00
str Auto merge of #82585 - TrolledWoods:master, r=dtolnay 2021-04-23 02:48:13 +00:00
stream
sync
task Add the try_trait_v2 library basics 2021-04-17 11:58:18 -07:00
unicode
any.rs Change the Debug impl of Any and UnsafeCell to use finish_non_exhaustive 2021-04-21 14:51:04 +02:00
ascii.rs Replace all fmt.pad with debug_struct 2021-04-21 14:38:24 +02:00
bool.rs
borrow.rs
cell.rs
clone.rs
cmp.rs Disallows #![feature(no_coverage)] on stable and beta 2021-05-05 07:52:26 -07:00
default.rs
ffi.rs Replace all fmt.pad with debug_struct 2021-04-21 14:38:24 +02:00
hint.rs Auto merge of #84725 - sebpop:arm64-isb, r=joshtriplett 2021-05-02 04:54:31 +00:00
internal_macros.rs
intrinsics.rs Rollup merge of #84755 - jyn514:core-links, r=kennytm 2021-05-07 00:38:38 +02:00
lazy.rs
lib.rs Rollup merge of #84871 - richkadel:no-coverage-unstable-only, r=nagisa 2021-05-07 00:38:40 +02:00
marker.rs
option.rs Reorder the parameter descriptions of map_or and map_or_else 2021-04-27 18:00:30 +08:00
panic.rs
panicking.rs
pin.rs
primitive.rs
raw.rs Deprecate the core::raw / std::raw module 2021-04-15 02:32:33 +02:00
result.rs Reorder the parameter descriptions of map_or and map_or_else 2021-04-27 18:00:30 +08:00
time.rs use else if in std library 2021-05-03 07:05:08 -04:00
tuple.rs
unit.rs