Skip to content

Remove Self: Sized from libsyntax::parse::lexer::Read::next_token() function #33506

Closed
@gyscos

Description

@gyscos

Commit 6887202 added the Self: Sized bound to the next_token function in the libsyntax::parse::lexer::Reader trait (diff here).
This bound doesn't seem necessary (it compiles fine without it), but it prevents using this method from a trait object.

Is there any reason for its addition? If not, could we remove it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions