Skip to content

Commit

Permalink
Fix error explanation formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alygin committed Nov 26, 2016
1 parent 73e98a0 commit 9fb81b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
7 changes: 4 additions & 3 deletions src/librustc_metadata/diagnostics.rs
Expand Up @@ -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##"
Expand Down
5 changes: 3 additions & 2 deletions src/librustc_typeck/diagnostics.rs
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions src/libsyntax/diagnostic_list.rs
Expand Up @@ -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:
Expand Down Expand Up @@ -121,9 +121,9 @@ pub fn main() {}
The `cfg` attribute supports only three kinds of predicates:
* any
* all
* not
- any
- all
- not
Example:
Expand Down

0 comments on commit 9fb81b9

Please sign in to comment.