From 00980b6ccda5ca6d8039cd493a7aa7f487c47c0d Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 7 Jul 2020 14:13:03 +0200 Subject: [PATCH 1/2] clean up E0718 explanation --- src/librustc_error_codes/error_codes/E0718.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/librustc_error_codes/error_codes/E0718.md b/src/librustc_error_codes/error_codes/E0718.md index e7ae51ca58835..bb401ef6e2d4c 100644 --- a/src/librustc_error_codes/error_codes/E0718.md +++ b/src/librustc_error_codes/error_codes/E0718.md @@ -1,7 +1,6 @@ -This error indicates that a `#[lang = ".."]` attribute was placed -on the wrong type of item. +A `#[lang = ".."]` attribute was placed on the wrong type of item. -Examples of erroneous code: +Erroneous code example: ```compile_fail,E0718 #![feature(lang_items)] From 472843834491b28b8dda558c50da2763574b4839 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 11 Jul 2020 17:34:11 +0200 Subject: [PATCH 2/2] Improve wording --- src/librustc_error_codes/error_codes/E0718.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_error_codes/error_codes/E0718.md b/src/librustc_error_codes/error_codes/E0718.md index bb401ef6e2d4c..1fe62ecf1f4e0 100644 --- a/src/librustc_error_codes/error_codes/E0718.md +++ b/src/librustc_error_codes/error_codes/E0718.md @@ -1,4 +1,4 @@ -A `#[lang = ".."]` attribute was placed on the wrong type of item. +A `#[lang = ".."]` attribute was placed on the wrong item type. Erroneous code example: