diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-07 01:39:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-07 01:39:38 +0200 |
| commit | c8ea26e6ffeaf46cf217cb5a51f6c5cfd91b4f44 (patch) | |
| tree | 8896a44042f2aa13935c389b7581d8679f1c42b9 /src | |
| parent | 2c81d606f958b879c7dfbffe8a36ce1704fd4aa8 (diff) | |
| parent | c22cc1d67afe1c2f0c60a3cc4e6d8ba70c34bf99 (diff) | |
| download | rust-c8ea26e6ffeaf46cf217cb5a51f6c5cfd91b4f44.tar.gz rust-c8ea26e6ffeaf46cf217cb5a51f6c5cfd91b4f44.zip | |
Rollup merge of #63333 - jethrogb:jb/error-codes-features, r=Mark-Simulacrum
Remove unnecessary features from compiler error code list
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/error_codes.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/librustc_mir/error_codes.rs b/src/librustc_mir/error_codes.rs index 2afffd71fe2..86c263a447b 100644 --- a/src/librustc_mir/error_codes.rs +++ b/src/librustc_mir/error_codes.rs @@ -2027,7 +2027,6 @@ Local variables, function parameters and temporaries are all dropped before the end of the function body. So a reference to them cannot be returned. ```compile_fail,E0515 -#![feature(nll)] fn get_dangling_reference() -> &'static i32 { let x = 0; &x @@ -2035,7 +2034,6 @@ fn get_dangling_reference() -> &'static i32 { ``` ```compile_fail,E0515 -#![feature(nll)] use std::slice::Iter; fn get_dangling_iterator<'a>() -> Iter<'a, i32> { let v = vec![1, 2, 3]; @@ -2233,7 +2231,6 @@ function which outlived the lifetime of the function. Example of erroneous code: ```compile_fail,E0712 -#![feature(nll)] #![feature(thread_local)] #[thread_local] @@ -2286,8 +2283,6 @@ not run while the string-data is borrowed; for example by taking `S` by reference: ``` -#![feature(nll)] - pub struct S<'a> { data: &'a mut String } impl<'a> Drop for S<'a> { @@ -2312,7 +2307,6 @@ while a borrow is still in active use. Erroneous code example: ```compile_fail,E0716 -# #![feature(nll)] fn foo() -> i32 { 22 } fn bar(x: &i32) -> &i32 { x } let p = bar(&foo()); |
