Skip to content

E0220 needs to be updated to new format #35385

Description

@sophiajt

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

Error E0220 needs a span_label, updating it from:

error[E0220]: associated type `F` not found for `Trait`
  --> src/test/compile-fail/E0220.rs:15:18
   |
15 | type Foo = Trait<F=i32>; //~ ERROR E0220
   |                  ^^^^^

To:

error[E0220]: associated type `F` not found for `Trait`
  --> src/test/compile-fail/E0220.rs:15:18
   |
15 | type Foo = Trait<F=i32>; //~ ERROR E0220
   |                  ^^^^^ associated `F` not found in `Trait`

Activity

  1. added
    A-diagnosticsArea: Messages for errors, warnings, and lints
    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.
    on Aug 5, 2016
  2. added a commit that references this issue on Aug 7, 2016
    eb9db9f
  3. chamoysvoice commented on Aug 11, 2016

    @chamoysvoice
    Contributor

    Requirements changed a little bit, instead of

    associated F not found in Trait

    a more semantic and still short phrase is:

    associated type F not found

    NOTE: the full error label is still included on the top part aside to E0220

  4. added a commit that references this issue on Aug 13, 2016
    c71662c
  5. added a commit that references this issue on Aug 14, 2016
    1b324b0
  6. sophiajt commented on Aug 24, 2016

    @sophiajt
    ContributorAuthor

    @chamoysvoice - looks like you need to update some of the unit tests so this can pass:

    error: 2 unexpected errors found, 1 expected errors not found
    
    error: /build/src/test/compile-fail/E0220.rs:15: unexpected "error": '15:12: 15:24: the value of the associated type `Bar` (from the trait `Trait`) must be specified [E0191]'
    
    error: /build/src/test/compile-fail/E0220.rs:15: unexpected "note": 'missing associated type `Bar` value'
    
    error: /build/src/test/compile-fail/E0220.rs:16: expected error not found: E0191
    
    error: /build/src/test/compile-fail/unboxed-closure-sugar-wrong-trait.rs:15: unexpected "note": 'associated type `Output` not found'
    
    error: 1 unexpected errors found, 0 expected errors not found
    failures:
    
        [compile-fail] compile-fail/E0220.rs
    
        [compile-fail] compile-fail/unboxed-closure-sugar-wrong-trait.rs
    

    You can run the full compile-fail test suite to make sure the changes worked using:

    python src/bootstrap/bootstrap.py --step check-cfail --stage 1
    
  7. added a commit that references this issue on Oct 2, 2016
    791fb77
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 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