Skip to content

E0520 needs to be updated to new format #36112

@sophiajt

Description

@sophiajt

From: src/test/compile-fail/E0520.rs

E0520 needs a span_label, a span_note converted to a span_label, a note, and a new title, updating it from:

error[E0520]: item `fly` is provided by an `impl` that specializes another, but the item in the parent `impl` is not marked `default` and so it cannot be specialized.
  --> src/test/compile-fail/E0520.rs:26:5
   |
26 |     default fn fly(&self) {} //~ ERROR E0520
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: parent implementation is here:
  --> src/test/compile-fail/E0520.rs:21:1
   |
21 | impl<T: Clone> SpaceLlama for T {
   | ^

To:

error[E0520]:  `fly` specializes an item from a parent impl, but neither that item nor the impl are marked default 
  --> src/test/compile-fail/E0520.rs:26:5
   |
21 | impl<T: Clone> SpaceLlama for T {
   | - parent `impl` is here
...
26 |     default fn fly(&self) {} //~ ERROR E0520
   |     ^^^^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `fly`
   |
   = note: to specialize, either the parent `impl` or `fly` in the parent `impl` must be marked `default`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions