about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-18 10:20:13 +0000
committerbors <bors@rust-lang.org>2017-07-18 10:20:13 +0000
commit83c659ef655b1f740777f83eb415fd7ebe5a3fe5 (patch)
treeb33f8e7603cf90dba99ae18b867ebccfe552142d /src/liballoc
parent2e6334062e2be142125e99d63867711da505cc9e (diff)
parent39114f916905b16b414f51031426309b63f856a9 (diff)
downloadrust-83c659ef655b1f740777f83eb415fd7ebe5a3fe5.tar.gz
rust-83c659ef655b1f740777f83eb415fd7ebe5a3fe5.zip
Auto merge of #42492 - petrochenkov:methlife, r=nikomatsakis
Support generic lifetime arguments in method calls

Fixes https://github.com/rust-lang/rust/issues/42403
Fixes https://github.com/rust-lang/rust/issues/42115
Lifetimes in a method call `x.f::<'a, 'b, T, U>()` are treated exactly like lifetimes in the equivalent UFCS call `X::f::<'a, 'b, T, U>`.
In addition, if the method has late bound lifetime parameters (explicit or implicit), then explicitly specifying lifetime arguments is not permitted (guarded by a compatibility lint).
[breaking-change] because previously lifetimes in method calls were accepted unconditionally.

r? @eddyb
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions