diff options
| author | Andrew Lygin <alygin@gmail.com> | 2016-11-25 22:58:30 +0300 |
|---|---|---|
| committer | Andrew Lygin <alygin@gmail.com> | 2016-11-26 21:20:20 +0300 |
| commit | 9fb81b92f9f04d4715a5ff474fd976a695bd3fe1 (patch) | |
| tree | d9b47ba487772ba04dcc5a6da0eb25cf99b46f9a | |
| parent | 73e98a0210f0afdec28b4f5bc0f7327d6a5a8555 (diff) | |
Fix error explanation formatting
| -rw-r--r-- | src/librustc_metadata/diagnostics.rs | 7 | ||||
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 5 | ||||
| -rw-r--r-- | src/libsyntax/diagnostic_list.rs | 10 |
3 files changed, 12 insertions, 10 deletions
diff --git a/src/librustc_metadata/diagnostics.rs b/src/librustc_metadata/diagnostics.rs index b2f4760727a..e327be3d503 100644 --- a/src/librustc_metadata/diagnostics.rs +++ b/src/librustc_metadata/diagnostics.rs @@ -56,9 +56,10 @@ An unknown "kind" was specified for a link attribute. Erroneous code example: ``` Please specify a valid "kind" value, from one of the following: - * static - * dylib - * framework + + - static + - dylib + - framework "##, E0459: r##" diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index f5432c6e0fc..e64a312d8e1 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1377,8 +1377,9 @@ let x = |_| {}; // error: cannot determine a type for this expression ``` You have two possibilities to solve this situation: - * Give an explicit definition of the expression - * Infer the expression + + - Give an explicit definition of the expression + - Infer the expression Examples: diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs index 9110e989a8a..ace3af0f102 100644 --- a/src/libsyntax/diagnostic_list.rs +++ b/src/libsyntax/diagnostic_list.rs @@ -65,8 +65,8 @@ fn main() {} The `inline` attribute only supports two arguments: - * always - * never + - always + - never All other arguments given to the `inline` attribute will return this error. Example: @@ -121,9 +121,9 @@ pub fn main() {} The `cfg` attribute supports only three kinds of predicates: - * any - * all - * not + - any + - all + - not Example: |
