Uh oh!
There was an error while loading. Please reload this page.
Add note when item accessed from module via m.i rather than m::i. - #30413
Conversation
rust-highfive
commented
Dec 16, 2015
(rust_highfive has picked a reviewer for you, use r? to override) |
pnkfelix
commented
Dec 16, 2015
gaar I posted this before running (update: fixed that and the typo in the unit test; |
GuillaumeGomez
commented
Dec 17, 2015
I'm still working on adding the two missing additional information. |
pnkfelix
commented
Dec 17, 2015
(and I think we do not need to block this PR on that change.) |
pnkfelix
commented
Dec 17, 2015
@GuillaumeGomez Just to be clear: The reason that I turned #30356 into this PR was that I was concerned that it was giving "bad hints" in some contexts.
I wrote up the examples you noted as ways to illustrate cases where #30356 would give bad hints. But I did not intend to imply something like "we should wait until we have solved all of these cases before we land anything." My intention in this PR was to continue to solve the same narrow problem that #30356 was trying to solve, but to do it in a more targeted fashion that ensures that we only provide in hint about I definitely encourage you to try to come up with good error messages for other cases that this PR does not cover. You should do that work and put it up as a separate PR. |
There was a problem hiding this comment.
Could you add a doc comment on this so it's not confusing for future hackers?
(Also explain what the nodeid is)
Manishearth
commented
Dec 18, 2015
r=me with nit |
frewsxcv
commented
Dec 18, 2015
This should also solve #22692 ? |
pnkfelix
commented
Dec 18, 2015
nikomatsakis
commented
Dec 18, 2015
nikomatsakis
commented
Dec 18, 2015
pnkfelix
commented
Dec 18, 2015
I don't think I'm going to try to do that. :) |
bors
commented
Dec 20, 2015
⌛ Testing commit 04c05c7 with merge ea6e312... |
bors
commented
Dec 20, 2015
💔 Test failed - auto-win-gnu-32-opt |
pnkfelix
commented
Dec 20, 2015
What the heck, a bunch of errors in |
alexcrichton
commented
Dec 20, 2015
@bors: retry On Sun, Dec 20, 2015 at 4:38 AM, Felix S Klock II notifications@github.com
|
bors
commented
Dec 21, 2015
Add note when item accessed from module via `m.i` rather than `m::i`. (I tried to make this somewhat future-proofed, in that the `UnresolvedNameContext` could be expanded in the future with other cases besides paths that are known to be modules.) This supersedes PR #30356 ; since I'm responsible for a bunch of new code here, someone else should review it. :)
Add note when item accessed from module via
m.irather thanm::i.(I tried to make this somewhat future-proofed, in that the
UnresolvedNameContextcould be expanded in the future with other cases besides paths that are known to be modules.)This supersedes PR #30356 ; since I'm responsible for a bunch of new code here, someone else should review it. :)