- 06 1月, 2015 1 次提交
-
-
由 Jorge Aparicio 提交于
-
- 20 7月, 2014 1 次提交
-
-
由 Patrick Walton 提交于
This implements RFC 39. Omitted lifetimes in return values will now be inferred to more useful defaults, and an error is reported if a lifetime in a return type is omitted and one of the two lifetime elision rules does not specify what it should be. This primarily breaks two uncommon code patterns. The first is this: unsafe fn get_foo_out_of_thin_air() -> &Foo { ... } This should be changed to: unsafe fn get_foo_out_of_thin_air() -> &'static Foo { ... } The second pattern that needs to be changed is this: enum MaybeBorrowed<'a> { Borrowed(&'a str), Owned(String), } fn foo() -> MaybeBorrowed { Owned(format!("hello world")) } Change code like this to: enum MaybeBorrowed<'a> { Borrowed(&'a str), Owned(String), } fn foo() -> MaybeBorrowed<'static> { Owned(format!("hello world")) } Closes #15552. [breaking-change]
-
- 07 4月, 2014 1 次提交
-
-
由 Brian Anderson 提交于
-
- 12 2月, 2014 1 次提交
-
-
由 Florian Hahn 提交于
-
- 27 11月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 19 5月, 2013 1 次提交
-
-
由 Corey Richardson 提交于
-
- 30 3月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 27 3月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 19 3月, 2013 2 次提交
-
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
- 12 3月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 08 3月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 23 2月, 2013 1 次提交
-
-
由 Brian Anderson 提交于
-
- 02 2月, 2013 1 次提交
-
-
由 Graydon Hoare 提交于
-
- 11 12月, 2012 1 次提交
-
-
由 Graydon Hoare 提交于
-
- 20 9月, 2012 1 次提交
-
-
由 Brian Anderson 提交于
-
- 19 9月, 2012 1 次提交
-
-
由 Patrick Walton 提交于
-
- 22 8月, 2012 1 次提交
-
-
由 Niko Matsakis 提交于
-
- 19 7月, 2012 1 次提交
-
-
由 Niko Matsakis 提交于
-
- 01 7月, 2012 1 次提交
-
-
由 Brian Anderson 提交于
-
- 06 4月, 2012 1 次提交
-
-
由 Niko Matsakis 提交于
-
- 05 4月, 2012 1 次提交
-
-
由 Niko Matsakis 提交于
- we now distinguish bound/free parameters (see region-param test case for why this is necessary) - we also track bounds on region variables - also, restructure fold_ty() to have multiple variants without duplication instead of one overloaded folder. This also allows for using block functions.
-