Commit b617960
committed
Auto merge of #43720 - pornel:staticconst, r=petrochenkov
Hint correct extern constant syntax
Error message for `extern "C" { const …}` is terse, and the right syntax is hard to guess given unfortunate difference between meaning of `static` in C and Rust.
I've added a hint for the right syntax.File tree
3 files changed
+40
-10
lines changed- src
- libsyntax/parse
- test/ui
3 files changed
+40
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5518 | 5518 | | |
5519 | 5519 | | |
5520 | 5520 | | |
5521 | | - | |
| 5521 | + | |
| 5522 | + | |
5522 | 5523 | | |
5523 | 5524 | | |
5524 | | - | |
5525 | 5525 | | |
5526 | | - | |
5527 | 5526 | | |
5528 | 5527 | | |
5529 | 5528 | | |
| |||
5997 | 5996 | | |
5998 | 5997 | | |
5999 | 5998 | | |
6000 | | - | |
6001 | | - | |
| 5999 | + | |
| 6000 | + | |
| 6001 | + | |
| 6002 | + | |
| 6003 | + | |
| 6004 | + | |
| 6005 | + | |
| 6006 | + | |
| 6007 | + | |
| 6008 | + | |
6002 | 6009 | | |
6003 | 6010 | | |
| 6011 | + | |
6004 | 6012 | | |
6005 | | - | |
6006 | 6013 | | |
6007 | 6014 | | |
6008 | 6015 | | |
6009 | | - | |
6010 | | - | |
6011 | | - | |
6012 | | - | |
6013 | 6016 | | |
6014 | 6017 | | |
6015 | 6018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments