mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
8e382ba022
This code can sometimes witness malformed coverage attributes in builds that are going to fail, so use `span_delayed_bug` to avoid an inappropriate ICE in that case.
27 lines
759 B
Plaintext
27 lines
759 B
Plaintext
error: malformed `coverage` attribute input
|
|
--> $DIR/bad-attr-ice.rs:10:1
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[coverage(off)]
|
|
|
|
|
LL | #[coverage(on)]
|
|
|
|
|
|
|
error[E0658]: the `#[coverage]` attribute is an experimental feature
|
|
--> $DIR/bad-attr-ice.rs:10:1
|
|
|
|
|
LL | #[coverage]
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= note: see issue #84605 <https://github.com/rust-lang/rust/issues/84605> for more information
|
|
= help: add `#![feature(coverage_attribute)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|