Skip to content

Bad span for self type #27522

Closed
Closed

Description

@marcusklaas

The high end of the span of &SomeType in

trait Foo {
    fn handler(self: &SomeType);
}

is incorrectly set to BytePos(0).

Activity

  1. marcusklaas commented on Aug 4, 2015

    @marcusklaas
    ContributorAuthor
  2. eddyb commented on Aug 5, 2015

    @eddyb
    Contributor

    Since Self works in impls now, it's probably time to retire that hack and always provide the correct type.
    SelfExplicit appears to hold the type (with its correct span), instead of the self argument itself, in this case.

  3. estebank commented on Aug 23, 2016

    @estebank
    Contributor

    This has been fixed. Can this ticket be closed?

  4. added
    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.
    on Aug 23, 2016
  5. added a commit that references this issue on Dec 25, 2016
  6. added a commit that references this issue on Jan 4, 2017
    74c6fcc
  7. added a commit that references this issue on Jan 4, 2017
  8. added a commit that references this issue on Jan 10, 2017
    a81cd32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-trait-systemArea: Trait systemE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions