Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use diagnostic item for Vec #4519

Merged
merged 1 commit into from
Sep 9, 2019
Merged

Use diagnostic item for Vec #4519

merged 1 commit into from
Sep 9, 2019

Conversation

llogiq
Copy link
Contributor

@llogiq llogiq commented Sep 7, 2019

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

changelog: none

@llogiq
Copy link
Contributor Author

llogiq commented Sep 7, 2019

cc @oli-obk

@llogiq
Copy link
Contributor Author

llogiq commented Sep 7, 2019

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

@oli-obk
Copy link
Contributor

oli-obk commented Sep 7, 2019

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 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
Copy link
Contributor Author

llogiq commented Sep 7, 2019

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
Copy link
Contributor Author

llogiq commented Sep 8, 2019

Error seems unrelated. Do we need a rustup?

@mati865
Copy link
Contributor

mati865 commented Sep 8, 2019

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

@llogiq
Copy link
Contributor Author

llogiq commented Sep 9, 2019

Rebased

@llogiq
Copy link
Contributor Author

llogiq commented Sep 9, 2019

@bors r=@oli-obk

@bors
Copy link
Collaborator

bors commented Sep 9, 2019

📌 Commit e3c4ffd has been approved by @oli-obk

@bors
Copy link
Collaborator

bors commented Sep 9, 2019

⌛ 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
Copy link
Collaborator

bors commented Sep 9, 2019

☀️ 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
Copy link
Member

phansch commented Sep 9, 2019

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