Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upConvert index operator to be by value #23601
Conversation
This comment has been minimized.
This comment has been minimized.
|
(Hmm, something seems to have broken in the rebase. It WAS passing |
nikomatsakis
force-pushed the
nikomatsakis:by-value-index
branch
from
5ca7257
to
bae844d
Mar 22, 2015
This comment has been minimized.
This comment has been minimized.
|
OK, fixed the problem I was seeing locally -- rerunning make check now. |
This comment has been minimized.
This comment has been minimized.
|
oh and cc @sfackler |
This comment has been minimized.
This comment has been minimized.
|
I'm not sure where we landed in discussion before. Longterm what's the strategy for recovering the old behaviour? |
This comment has been minimized.
This comment has been minimized.
|
ok, make check passes. |
This comment has been minimized.
This comment has been minimized.
|
@Gankro if we want to recover the
I would prefer option 1 since I think we want to have optional auto-ref for (All that said, my experience has been that I find the autoref on (*) This may seem inconsistent with our conversation on IRC, since I think maybe (in retrospect) you were asking me about the prospects for "autoref" and I was saying "that's hard". There are indeed sometimes challenges about this sort of thing from inference; we'd have to see how well it works. But I think it'll work out ok in most cases, I guess. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
nikomatsakis
force-pushed the
nikomatsakis:by-value-index
branch
from
bae844d
to
b760c56
Mar 23, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@bors p=1 important language change |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Mar 23, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry this test failure makes no sense! |
This comment has been minimized.
This comment has been minimized.
|
|
nikomatsakis
added some commits
Mar 21, 2015
nikomatsakis
force-pushed the
nikomatsakis:by-value-index
branch
from
b760c56
to
57cf2de
Mar 23, 2015
This comment has been minimized.
This comment has been minimized.
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this pull request
Mar 23, 2015
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Mar 24, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Mar 24, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Mar 24, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry |
nikomatsakis commentedMar 22, 2015
This is a [breaking-change]. When indexing a generic map (hashmap, etc) using the
[]operator, it is now necessary to borrow explicitly, so changemap[key]tomap[&key](consistent with thegetroutine). However, indexing of string-valued maps with constant strings can now be writtenmap["abc"].r? @japaric
cc @aturon @Gankro