Uh oh!
There was an error while loading. Please reload this page.
Change "method" to "associated function" - #69498
Conversation
eddyb
commented
Feb 26, 2020
Can you open a PR to fix #60163 without changing diagnostics? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bjorn3
commented
Feb 28, 2020
To me a |
mark-i-m
commented
Mar 3, 2020
@bjorn3 I agree, but the compiler doesn't currently make a distinction iiuc |
bjorn3
commented
Mar 3, 2020
It would be nice if the error messages do make the distinction. |
mark-i-m
commented
Mar 3, 2020
Centril
commented
Mar 3, 2020
I think error messages should only make the distinction where it actually matters. Otherwise, you have to scan for |
Rename DefKind::Method and TraitItemKind::Method r? @eddyb, @Centril, or @matthewjasper cc rust-lang#69498rust-lang#60163
Rename DefKind::Method and TraitItemKind::Method r? @eddyb, @Centril, or @matthewjasper cc rust-lang#69498rust-lang#60163
Rename DefKind::Method and TraitItemKind::Method r? @eddyb, @Centril, or @matthewjasper cc rust-lang#69498rust-lang#60163
Rename DefKind::Method and TraitItemKind::Method r? @eddyb, @Centril, or @matthewjasper cc rust-lang#69498rust-lang#60163
bors
commented
Mar 8, 2020
☔ The latest upstream changes (presumably #69822) made this pull request unmergeable. Please resolve the merge conflicts. |
Rename DefKind::Method and TraitItemKind::Method r? @eddyb, @Centril, or @matthewjasper cc rust-lang#69498rust-lang#60163
mark-i-m
commented
Mar 12, 2020
@rustbot modify labels: +S-waiting-on-review -S-blocked |
matthewjasper
commented
Mar 13, 2020
@bors r+ |
bors
commented
Mar 13, 2020
📌 Commit b6518f0 has been approved by |
…sper Change "method" to "associated function" r? @matthewjasper cc @Centril@eddybrust-lang#67742 I'm opening this mostly as a test to see what the diagnostic changes would be. It seems that this makes them somewhat more verbose, and I'm not sure it's worth it... The relevant changes are the last two commits (it is rebased on top of rust-lang#67742)
…sper Change "method" to "associated function" r? @matthewjasper cc @Centril@eddybrust-lang#67742 I'm opening this mostly as a test to see what the diagnostic changes would be. It seems that this makes them somewhat more verbose, and I'm not sure it's worth it... The relevant changes are the last two commits (it is rebased on top of rust-lang#67742)
Rollup of 7 pull requests Successful merges: - #69357 (Emit 1-based column numbers in debuginfo) - #69471 (Remove `sip::Hasher::short_write`.) - #69498 (Change "method" to "associated function") - #69967 (Remove a few `Rc`s from RegionInferenceCtxt) - #69987 (Add self to .mailmap) - #69991 (fix E0117 message out of sync) - #69993 (Add long error explanation for E0693) Failed merges: r? @ghost
Rollup of 7 pull requests Successful merges: - #69357 (Emit 1-based column numbers in debuginfo) - #69471 (Remove `sip::Hasher::short_write`.) - #69498 (Change "method" to "associated function") - #69967 (Remove a few `Rc`s from RegionInferenceCtxt) - #69987 (Add self to .mailmap) - #69991 (fix E0117 message out of sync) - #69993 (Add long error explanation for E0693) Failed merges: r? @ghost
estebank
commented
Mar 15, 2020
I disagree, I think it makes it much easier to teach the concepts if we are consistent in calling associated functions with |
mark-i-m
commented
Mar 15, 2020
I guess I've personally experienced the opposite... in this case, I always used to here "associated X" and not really know what it meant because e.g. associated On the other hand, I think the main point in favor of |
Centril
commented
Mar 15, 2020
Java also has the concept of "static method", which is our notion of an associated method without |
Replace some desc logic in librustc_lint with article_and_desc r? @eddyb@Centril@matthewjasper Followup to rust-lang#69674 Blocked on rust-lang#69498
Replace some desc logic in librustc_lint with article_and_desc r? @eddyb@Centril@matthewjasper Followup to rust-lang#69674 Blocked on rust-lang#69498
Replace some desc logic in librustc_lint with article_and_desc r? @eddyb@Centril@matthewjasper Followup to rust-lang#69674 Blocked on rust-lang#69498
r? @matthewjasper
cc @Centril@eddyb#67742
I'm opening this mostly as a test to see what the diagnostic changes would be. It seems that this makes them somewhat more verbose, and I'm not sure it's worth it...
The relevant changes are the last two commits (it is rebased on top of #67742)