diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-04-10 12:48:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-10 12:48:45 +0200 |
| commit | 74e93bb8e6cd15dd262868b5e13605e9c595bef7 (patch) | |
| tree | bd881643cd83bd681ed7c6bbcba55fa3d8cc3d11 /src/librustc_error_codes | |
| parent | 81a360fe9ac1ab3c0685f5b5ebd225189b0312d3 (diff) | |
| parent | 9d13520a6b00fe239c3990e487cd7449722c0c74 (diff) | |
| download | rust-74e93bb8e6cd15dd262868b5e13605e9c595bef7.tar.gz rust-74e93bb8e6cd15dd262868b5e13605e9c595bef7.zip | |
Rollup merge of #70913 - eddyb:rc-arc-diagnostic-items, r=matthewjasper
Replace "rc"/"arc" lang items with Rc/Arc diagnostic items. `Rc`/`Arc` should have no special semantics, so it seems appropriate for them to not be lang items. r? @matthewjasper
Diffstat (limited to 'src/librustc_error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0152.md | 4 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0718.md | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_error_codes/error_codes/E0152.md b/src/librustc_error_codes/error_codes/E0152.md index 602dcb6e2c5..120c96b4211 100644 --- a/src/librustc_error_codes/error_codes/E0152.md +++ b/src/librustc_error_codes/error_codes/E0152.md @@ -5,8 +5,8 @@ Erroneous code example: ```compile_fail,E0152 #![feature(lang_items)] -#[lang = "arc"] -struct Foo; // error: duplicate lang item found: `arc` +#[lang = "owned_box"] +struct Foo; // error: duplicate lang item found: `owned_box` ``` Lang items are already implemented in the standard library. Unless you are diff --git a/src/librustc_error_codes/error_codes/E0718.md b/src/librustc_error_codes/error_codes/E0718.md index 8548ff0c150..e7ae51ca588 100644 --- a/src/librustc_error_codes/error_codes/E0718.md +++ b/src/librustc_error_codes/error_codes/E0718.md @@ -6,6 +6,6 @@ Examples of erroneous code: ```compile_fail,E0718 #![feature(lang_items)] -#[lang = "arc"] +#[lang = "owned_box"] static X: u32 = 42; ``` |
