Skip to content

Unnecessary use of #[reexport_test_harness_main] in test #43219

Closed
@cptroot

Description

@cptroot

While trying to figure out what the #[reexport_test_harness_main] attribute did, I ran across this line of code.

https://github.com/rust-lang/rust/blob/master/src/test/run-pass/core-run-destroy.rs#L18

Near as I can tell, the reference to #[reexport_test_harness_main] here doesn't do anything, and can be removed for clarity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-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