Skip to content

E0252 needs to be updated to new format #35306

Closed
@sophiajt

Description

@sophiajt

From: src/test/compile-fail/double-import.rs

Error E0252 needs an updated unit test and span_labels, updating it from:

error[E0252]: a value named `foo` has already been imported in this module
  --> src/test/compile-fail/double-import.rs:25:5
   |
24 | use sub1::foo; //~ NOTE previous import of `foo` here
   |     --------- previous import of `foo` here
25 | use sub2::foo; //~ ERROR a value named `foo` has already been imported in this module [E0252]
   |     ^^^^^^^^^

error: requires `sized` lang_item

error: requires `sized` lang_item

error: requires `sized` lang_item

To:

error[E0252]: a value named `foo` has already been imported in this module
  --> src/test/compile-fail/double-import.rs:25:5
   |
24 | use sub1::foo; //~ NOTE previous import of `foo` here
   |     --------- previous import of `foo` here
25 | use sub2::foo; //~ ERROR a value named `foo` has already been imported in this module [E0252]
   |     ^^^^^^^^^ already imported

To remove the extra "error: requires sized lang_item", remove the:

#![feature(no_core)]
#![no_core]

Lines in the unit test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions