diff options
| author | Andrew Lygin <alygin@gmail.com> | 2016-11-26 21:19:30 +0300 |
|---|---|---|
| committer | Andrew Lygin <alygin@gmail.com> | 2016-11-26 21:20:20 +0300 |
| commit | 984c039e4e08ab28dca9bec2fa20baf4c0f4452a (patch) | |
| tree | daa5a64d3b73c281e65ca756b545403e8eb3f2a4 /src | |
| parent | 9fb81b92f9f04d4715a5ff474fd976a695bd3fe1 (diff) | |
| download | rust-984c039e4e08ab28dca9bec2fa20baf4c0f4452a.tar.gz rust-984c039e4e08ab28dca9bec2fa20baf4c0f4452a.zip | |
Fix error explanation formatting
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_metadata/diagnostics.rs | 7 | ||||
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/diagnostic_list.rs | 10 |
3 files changed, 11 insertions, 10 deletions
diff --git a/src/librustc_metadata/diagnostics.rs b/src/librustc_metadata/diagnostics.rs index e327be3d503..6cf1a9e8a39 100644 --- a/src/librustc_metadata/diagnostics.rs +++ b/src/librustc_metadata/diagnostics.rs @@ -57,9 +57,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 e64a312d8e1..04314045733 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1378,8 +1378,8 @@ 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 ace3af0f102..9110e989a8a 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: |
