Skip to content

Conversation

@matklad
Copy link
Contributor

@matklad matklad commented Dec 19, 2020

bors r+
🤖

*Method* works for OO languages, but in rust we can also have
associated constants & types, so let's move this to a modifier.
@matklad
Copy link
Contributor Author

matklad commented Dec 19, 2020

cc @lnicola

@bors
Copy link
Contributor

bors bot commented Dec 19, 2020

@bors bors bot merged commit 067d22b into rust-lang:master Dec 19, 2020
@matklad matklad deleted the assoc branch December 19, 2020 14:19
@lnicola
Copy link
Member

lnicola commented Dec 19, 2020

But why? Inherent functions are now no longer marked as methods, which is probably not what users would expect.

@matklad
Copy link
Contributor Author

matklad commented Dec 19, 2020 via email

@lnicola
Copy link
Member

lnicola commented Dec 19, 2020

I'm looking at the test changes: https://github.com/rust-analyzer/rust-analyzer/pull/6947/files#diff-8104eb9eebc09900dd0ffcf4965ba5e33ac1775c21dcc6cb40db7009eadc08e7R49.

(And indeed, even associated/static methods are now functions, there's a couple of them in the same file.)

@matklad
Copy link
Contributor Author

matklad commented Dec 19, 2020 via email

@matklad
Copy link
Contributor Author

matklad commented Dec 19, 2020

Excellent catch, fixed by #6951

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.

2 participants