diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-12-21 02:43:09 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-12-21 19:14:58 +0000 |
| commit | 94812f1c8f455579a3a1c127c2bbac48fc7cecef (patch) | |
| tree | dd89eca57cb897363de7f2c26e0936c74486b922 /src/ci/scripts/upload-build-metrics.py | |
| parent | d520b18316c71e1b61f2ed4df761f03149ff59e7 (diff) | |
| download | rust-94812f1c8f455579a3a1c127c2bbac48fc7cecef.tar.gz rust-94812f1c8f455579a3a1c127c2bbac48fc7cecef.zip | |
Use E0665 for missing `#[default]` error
Use orphaned error code for the same error it belonged to before.
```
error[E0665]: `#[derive(Default)]` on enum with no `#[default]`
--> $DIR/macros-nonfatal-errors.rs:42:10
|
LL | #[derive(Default)]
| ^^^^^^^
LL | / enum NoDeclaredDefault {
LL | | Foo,
LL | | Bar,
LL | | }
| |_- this enum needs a unit variant marked with `#[default]`
|
= note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
help: make this unit variant default by placing `#[default]` on it
|
LL | #[default] Foo,
| ~~~~~~~~~~~~~~
help: make this unit variant default by placing `#[default]` on it
|
LL | #[default] Bar,
| ~~~~~~~~~~~~~~
```
Diffstat (limited to 'src/ci/scripts/upload-build-metrics.py')
0 files changed, 0 insertions, 0 deletions
