Skip to content

E0106 needs to be updated to new format #35245

Closed
@sophiajt

Description

@sophiajt

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

Error E0106 needs a span_label, updating it from:

error[E0106]: missing lifetime specifier
  --> src/test/compile-fail/E0106.rs:12:8
   |
12 |     x: &bool, //~ ERROR E0106
   |        ^^^^^

To:

error[E0106]: missing lifetime specifier
  --> src/test/compile-fail/E0106.rs:12:8
   |
12 |     x: &bool, //~ ERROR E0106
   |        ^^^^^ expected lifetime information

Activity

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

Tiwalun commented on Aug 3, 2016

@Tiwalun
Contributor

I'll try this one.

arielb1

arielb1 commented on Aug 3, 2016

@arielb1
Contributor

I think "expected lifetime parameter" is a better label. bonus: have the label on the ampersand only.

sophiajt

sophiajt commented on Aug 3, 2016

@sophiajt
ContributorAuthor

👍 to @arielb1's suggestions

Tiwalun

Tiwalun commented on Aug 4, 2016

@Tiwalun
Contributor

@arielb1 Do you mean like this?

error[E0106]: missing lifetime specifier
  --> src/test/compile-fail/E0106.rs:12:8
   |
12 |     x: &bool, //~ ERROR E0106
   |        ^^^^^
   |        |
   |        expected lifetime parameter

Or like this, with the primary span changed?

error[E0106]: missing lifetime specifier
  --> src/test/compile-fail/E0106.rs:12:8
   |
12 |     x: &bool, //~ ERROR E0106
   |        ^ expected lifetime parameter

sophiajt

sophiajt commented on Aug 4, 2016

@sophiajt
ContributorAuthor

I think he means the second one:

error[E0106]: missing lifetime specifier
  --> src/test/compile-fail/E0106.rs:12:8
   |
12 |     x: &bool, //~ ERROR E0106
   |        ^ expected lifetime parameter

added a commit that references this issue on Aug 5, 2016

Rollup merge of rust-lang#35356 - Tiwalun:fix-err-msg-e0106, r=jonath…

39a1a25
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

      E0106 needs to be updated to new format · Issue #35245 · rust-lang/rust