Skip to content

Use diagnostic item for Vec#4519

Merged
bors merged 1 commit into
masterfrom
vec-diagnostic-item
Sep 9, 2019
Merged

Use diagnostic item for Vec#4519
bors merged 1 commit into
masterfrom
vec-diagnostic-item

Conversation

@llogiq

@llogiq llogiq commented Sep 7, 2019

Copy link
Copy Markdown
Contributor

This adds a new is_type_diagnostic_item to check items without lookup via match_type.

changelog: none

@llogiq

llogiq commented Sep 7, 2019

Copy link
Copy Markdown
Contributor Author

cc @oli-obk

@llogiq

llogiq commented Sep 7, 2019

Copy link
Copy Markdown
Contributor Author

This fails because the item doesn't match. I probably should use the vec_type item. How do I get that?

@oli-obk

oli-obk commented Sep 7, 2019

Copy link
Copy Markdown
Contributor

If there's no symbol in the sym list, you can call Symbol::intern("vec_type")

At least I think there's a function called intern. As long as you don't use gensym, any way to create the symbol should be fine

@llogiq
llogiq force-pushed the vec-diagnostic-item branch from 582fc66 to 0a78316 Compare September 7, 2019 14:46
@llogiq llogiq changed the title WIP: Use diagnostic item for Vec Use diagnostic item for Vec Sep 7, 2019
@llogiq
llogiq marked this pull request as ready for review September 7, 2019 14:47
@llogiq

llogiq commented Sep 7, 2019

Copy link
Copy Markdown
Contributor Author

I left a few positions where either the paths were part of a slice of paths or the function would have needed a larger refactoring.

@llogiq

llogiq commented Sep 8, 2019

Copy link
Copy Markdown
Contributor Author

Error seems unrelated. Do we need a rustup?

@mati865

mati865 commented Sep 8, 2019

Copy link
Copy Markdown
Member

Yes, rust-lang/rust#64220 (comment)

@llogiq
llogiq force-pushed the vec-diagnostic-item branch from 0a78316 to e3c4ffd Compare September 9, 2019 03:43
@llogiq

llogiq commented Sep 9, 2019

Copy link
Copy Markdown
Contributor Author

Rebased

@llogiq

llogiq commented Sep 9, 2019

Copy link
Copy Markdown
Contributor Author

@bors r=@oli-obk

@bors

bors commented Sep 9, 2019

Copy link
Copy Markdown
Contributor

📌 Commit e3c4ffd has been approved by @oli-obk

@bors

bors commented Sep 9, 2019

Copy link
Copy Markdown
Contributor

⌛ Testing commit e3c4ffd with merge 58e01ea...

bors added a commit that referenced this pull request Sep 9, 2019
Use diagnostic item for `Vec`

This adds a new `is_type_diagnostic_item` to check items without lookup via `match_type`.

changelog: none
@bors

bors commented Sep 9, 2019

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-travis, status-appveyor
Approved by: @oli-obk
Pushing 58e01ea to master...

@bors
bors merged commit e3c4ffd into master Sep 9, 2019
@phansch

phansch commented Sep 9, 2019

Copy link
Copy Markdown
Contributor

Should we have a tracking issue of some sort for the different diagnostic items?

@llogiq
llogiq deleted the vec-diagnostic-item branch September 9, 2019 06:09
bors added a commit that referenced this pull request Sep 9, 2019
Changed more `Vec` paths to diagnostic_items

In #4519, I missed a few instances of path matching for `Vec`, so here they are.

r? @oli-obk

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants