Gabriel Smith
69d5dd6a50
disallow non-static lifetimes in const generics
...
This has been put in place to patch over an ICE caused when we encounter
a non-static lifetime in a const generic during borrow checking. This
restriction may be relaxed in the future, but we need more discussion
before then, and in the meantime we should still deal with this ICE.
Fixes issue #60814
2020-07-19 12:52:36 -04:00
Vadim Petrochenkov
926ac5a2fd
rustc_metadata: Remove some extra diagnostics for legacy plugins
...
They are deprecated so doing extra work for error recovery doesn't make sense
2020-07-18 14:04:41 +04:00
Bastian Kauschke
338a27174a
forbid generic params in the type of const params
2020-07-16 11:13:05 +02:00
Manish Goregaokar
b9a0f5803e
Rollup merge of #74173 - estebank:struct-pat-as-enum, r=petrochenkov
...
Detect tuple struct incorrectly used as struct pat
Subpart of #74005 .
r? @petrochenkov
2020-07-14 07:39:02 -07:00
Pankaj Chaudhary
bc2b37aad7
Merge branch 'master' into E0688
2020-07-13 14:57:22 +05:30
PankajChaudhary5
e3ae4c7345
Added proper explanation of ErrorCode-E0688
2020-07-13 14:05:48 +05:30
Esteban Küber
5daedea3db
Detect tuple struct incorrectly used as struct pat
2020-07-12 10:34:48 -07:00
Guillaume Gomez
d64a4b57ae
Create new E0768 error code for "no valid digits found for number" error
2020-07-04 00:15:29 +02:00
David Wood
cb541dc12c
resolve: disallow label use through closure/async
...
This commit modifies resolve to disallow `break`/`continue` to labels
through closures or async blocks. This doesn't make sense and should
have been prohibited anyway.
Signed-off-by: David Wood <david@davidtw.co>
2020-07-02 13:48:32 +01:00
Manish Goregaokar
128fa2b981
Rollup merge of #72071 - PankajChaudhary5:ErrorCode-E0687, r=davidtwco
...
Added detailed error code explanation for issue E0687 in Rust compiler.
Added proper error explanation for issue E0687 in the Rust compiler.
Error Code E0687
Sub Part of Issue #61137
r? @GuillaumeGomez
2020-07-01 07:42:27 -07:00
Guillaume Gomez
eb6d9a49a8
Add E0766 error for unterminated double quote byte string
2020-06-25 13:28:45 +02:00
Guillaume Gomez
a657be42b1
Create E0765 error for unterminated double quote strings
2020-06-21 14:09:12 +02:00
Christian Poveda
96031e22d2
add new error code
2020-06-19 14:16:38 -05:00
Ralf Jung
45aa36bae5
Rollup merge of #73280 - GuillaumeGomez:add-e0763, r=petrochenkov
...
Add E0763
2020-06-19 14:29:29 +02:00
Guillaume Gomez
a19dfb573d
Create new E0763 error code for unterminated byte constant
2020-06-16 13:14:04 +02:00
Esteban Küber
f7a1f97307
Change E0758 to E0759 to avoid conflict with #72912
2020-06-15 09:06:58 -07:00
pankajchaudhary5
46bfc48272
Added proper explanation of ErrorCode-E0687
2020-06-14 22:57:19 +05:30
Dylan DPC
6baf867882
Rollup merge of #73163 - ayushmishra2005:61137-add-long-error-code-e0724, r=davidtwco
...
Add long error explanation for E0724
Add long explanation for the E0724 error code
Part of #61137
2020-06-12 00:05:29 +02:00
Ayush Kumar Mishra
68b4c03dbc
Add long error explanation for E0724
...
Minor refactoring
Minor refactoring
Update src/librustc_error_codes/error_codes/E0724.md
Co-authored-by: David Wood <Q0KPU0H1YOEPHRY1R2SN5B5RL@david.davidtw.co>
Update src/librustc_error_codes/error_codes/E0724.md
Co-authored-by: David Wood <Q0KPU0H1YOEPHRY1R2SN5B5RL@david.davidtw.co>
Update src/librustc_error_codes/error_codes/E0724.md
Co-authored-by: David Wood <Q0KPU0H1YOEPHRY1R2SN5B5RL@david.davidtw.co>
Minor refactoring
2020-06-11 23:16:42 +05:30
Guillaume Gomez
50a42fe513
Create new error code E0762 for unterminated char literals
2020-06-10 11:54:09 +02:00
Dylan DPC
95479d4905
Rollup merge of #73122 - doctorn:issue-73116, r=varkor
...
Resolve E0584 conflict
Adds a new error code (`E0761`) to indicate ambiguity in module file names and an accompanying expanded description to resolve a conflict over `E0584`.
Resolves #73116
2020-06-10 01:06:27 +02:00
Nathan Corbyn
a1eeaddf3f
Resolve E0584 conflict
2020-06-08 12:00:12 +01:00
Guillaume Gomez
e8fb46090e
Create new error code E0758 for unterminated multi-line comments
2020-06-07 14:57:53 +02:00
Dylan DPC
14dc34dd89
Rollup merge of #72260 - csmoe:issue-69276, r=estebank
...
Spell out `Self` in async function return
Closes #69276
r? @tmandry
2020-06-05 13:07:03 +02:00
csmoe
9be635306c
resolve error code e0760
2020-06-04 09:37:32 +08:00
Matthias Schiffer
abc236414b
Implement #[ffi_const] and #[ffi_pure] function attributes
...
Introduce function attribute corresponding to the `const`/`pure`
attributes supported by GCC, clang and other compilers.
Based on the work of gnzlbg <gonzalobg88@gmail.com>.
2020-05-20 01:16:11 +02:00
csmoe
2f311b07c8
Merge branch 'master' into issue-69276
2020-05-19 11:02:29 +08:00
csmoe
8841ede364
bless suggestion on spell out
2020-05-18 08:44:38 +08:00
Charles Lew
de24ddac0a
Disallow forbidden usage of non-ascii identifiers.
2020-05-17 01:31:18 +08:00
csmoe
008d90a66a
create error code E0754
2020-05-16 16:01:59 +08:00
Jade McGough
5320bd986b
add long error explanation for E0228
2020-05-12 17:09:09 -07:00
unexge
e4ee172ab0
Add long error explanation for E0539
2020-05-02 21:14:08 +03:00
Dylan DPC
7939a4d728
Rollup merge of #71370 - PankajChaudhary5:ErrorCode-E0696, r=GuillaumeGomez
...
Added detailed error code explanation for issue E0696 in Rust compiler.
Added proper error explanation for issue E0696 in the Rust compiler.
Error Code E0696
Sub Part of Issue #61137
r? @GuillaumeGomez
2020-04-22 16:41:12 +02:00
Guillaume Gomez
3390ff97b2
Add error code to inner doc comment attribute error
2020-04-22 11:08:50 +02:00
pankajchaudhary5
e5b68bc719
Added proper explanation error code E0696
2020-04-21 20:09:07 +05:30
Sebastian Malton
6120acec87
Check that main/start is not async
...
* Add new error code E0752
* Add span to hir::IsAsync::Yes
* Emit an error if main or the start function is marked as async
* Add two regression tests
Fix formatting errors and bless test outputs
* move tests to ui/async-await
fix test error text
remove span from IsAsync
2020-04-20 09:37:11 -04:00
Dylan DPC
abd72f7fc2
Rollup merge of #70578 - PankajChaudhary5:master, r=GuillaumeGomez
...
Add long error explanation for E0657
Added proper error explanation for issue E0657 in the Rust compiler.
Part of #61137
r? @GuillaumeGomez
2020-04-17 03:05:11 +02:00
Dylan DPC
c68c71e24e
Rollup merge of #70611 - pawanbisht62:doc/61137-add-long-error-code-e0708, r=GuillaumeGomez
...
Add long error explanation for E0708 #61137
Add long explanation for the E0708 error code
Part of #61137
r? @GuillaumeGomez
2020-04-16 23:34:41 +02:00
PankajChaudhary5
908436f3bb
Add proper explanation of error code E0657
2020-04-13 13:36:22 +05:30
bishtpawan
26fdde994d
Add long error explanation for E0708 #61137
...
Refactor code as per the suggestions
Refacotor code
provide edition support
2020-04-12 17:22:59 +05:30
Mazdak Farrokhzad
45589b52fe
track_caller: support on FFI imports
2020-04-09 04:55:05 +02:00
Julien Philippon
8f7eb6229c
Add long error code for error E0226
2020-03-30 02:51:25 +02:00
Dylan DPC
1f13089bef
Rollup merge of #70418 - PankajChaudhary5:master, r=Dylan-DPC
...
Add long error explanation for E0703
Add long explanation for the E0703 error code
Part of #61137
r? @GuillaumeGomez
2020-03-28 15:21:57 +01:00
Amanieu d'Antras
d162d096dd
Rename asm! to llvm_asm!
...
asm! is left as a wrapper around llvm_asm! to maintain compatibility.
2020-03-26 15:49:22 +00:00
Niko Matsakis
65071708f8
make a custom error for overlap with negative impls
2020-03-26 06:52:26 -04:00
Niko Matsakis
e8a05e201e
permit negative impls for non-auto traits
2020-03-26 06:27:45 -04:00
PankajChaudhary5
95870e25c6
Add long error explanation for E0703
2020-03-26 11:32:56 +05:30
bishtpawan
03bb3bde90
Add long error explanation for E0710 #61137
2020-03-24 13:03:01 +05:30
Nixon Enraght-Moony
97aa2704ec
Add explanation message for E0224
2020-03-21 15:43:12 +00:00
Dylan DPC
8f2482b801
Rollup merge of #69867 - ayushmishra2005:doc/61137-add-long-error-code-e0628, r=Dylan-DPC
...
Add long error explanation for E0628
Add long explanation for the E0628 error code
Part of #61137
r? @GuillaumeGomez
2020-03-16 13:16:42 +01:00