clubby789
f1b8b7d7ae
Add error code for missing base expression in struct update syntax
2024-01-09 19:25:54 +00:00
Obei Sideg
2c088f9520
Disallow reference to static mut for expressions
...
Add `E0796` error code.
Add `static_mut_ref` lint.
This is the idea for the 2024 edition.
2024-01-06 06:31:35 +03:00
Michael Goulet
dd5abb50cc
Yeet E0744
2023-11-28 20:40:38 +00:00
George Bateman
e936416a8d
Support enum variants in offset_of!
2023-10-31 23:25:54 +00:00
bors
1accf068d8
Auto merge of #113126 - Bryanskiy:delete_old, r=petrochenkov
...
Replace old private-in-public diagnostic with type privacy lints
Next part of RFC https://github.com/rust-lang/rust/issues/48054 .
r? `@petrochenkov`
2023-09-01 12:40:01 +00:00
Ralf Jung
d7c8950838
tell people what to do when removing an error code
2023-08-27 19:12:42 +02:00
Bryanskiy
e26614e6a7
Replace old private-in-public diagnostic with type privacy lints
2023-08-02 13:40:28 +03:00
Christopher Acosta
75563cd725
Error code E0794 for late-bound lifetime parameter error.
2023-03-07 21:26:19 +01:00
Ezra Shaw
90677edcba
refactor: statically guarantee that current error codes are documented
2023-02-26 20:12:36 +13:00
Ezra Shaw
9f876cc900
docs/test: add UI test and docs for E0476
2023-02-25 19:31:02 +13:00
Matthew Kelly
2bcd4e256a
Add extended error message for E0523
...
Adds the extended error documentation for E0523 to indicate that the
error is no longer produced by the compiler.
Update the E0464 documentation to include example code that produces the
error.
Remove the error message E0523 from the compiler and replace it with an
internal compiler error.
2023-02-06 06:58:30 -05:00
Ralf Jung
dfc4a7b2d0
make unaligned_reference a hard error
2023-01-31 20:28:11 +01:00
Ezra Shaw
00ff718da8
add UI test + docs for E0789
2023-01-23 20:38:14 +13:00
Matthias Krüger
68f12338af
Rollup merge of #104505 - WaffleLapkin:no-double-spaces-in-comments, r=jackh726
...
Remove double spaces after dots in comments
Most of the comments do not have double spaces, so I assume these are typos.
2023-01-17 20:21:25 +01:00
Maybe Waffle
6a28fb42a8
Remove double spaces after dots in comments
2023-01-17 08:09:33 +00:00
Oli Scherer
6b69b5e460
Improve a TAIT error and add an error code plus documentation
2023-01-16 16:54:14 +00:00
nils
c61f29ca52
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
...
remove unreachable error code `E0490`
AFAIK, the untested and undocumented error code `E0490` is now unreachable, it was from the days of the original borrow checker.
cc ``@GuillaumeGomez`` #61137
2023-01-12 15:44:52 +01:00
Ezra Shaw
02005e9f22
remove unreachable error code E0490
2023-01-12 14:15:21 +13:00
bowlerman
f75eb24f4f
remove E0280 and ICE instead
2023-01-10 03:04:28 +01:00
Ezra Shaw
24ce65c8d6
docs/test: add error-docs and UI test for E0711
2023-01-09 15:48:53 +13:00
Ezra Shaw
ecc0507fdd
docs/test: add empty error-docs for E0208, E0640 and E0717
2023-01-09 15:48:52 +13:00
Ezra Shaw
93c0d8d5d5
remove unreachable error code E0313
2023-01-08 14:47:12 +13:00
Ezra Shaw
24b39ece2f
refactor: merge E0465 into E0464
2022-12-31 20:44:54 +13:00
Ezra Shaw
726519d4f5
docs: add long-form error docs for E0514
2022-12-29 14:32:39 +13:00
Ezra Shaw
da7fcc7a09
docs/test: add UI test and long-form error docs for E0519
2022-12-29 13:16:10 +13:00
Ezra Shaw
f66e7529b5
docs: add long-form error docs for E0461
2022-12-27 17:03:39 +13:00
Matthias Krüger
e08dd9d998
Rollup merge of #105970 - Ezrashaw:add-docs+test-e0462, r=GuillaumeGomez
...
docs/test: add UI test and long-form error docs for E0462
Another UI test/ docs combo.
r? ``@GuillaumeGomez``
2022-12-24 00:31:40 +01:00
Ezra Shaw
66ed1812cf
docs/test: add UI test and long-form error docs for E0462
2022-12-23 10:56:16 +13:00
Matthias Krüger
4726e514d7
Rollup merge of #105791 - Ezrashaw:add-e0472-long-docs, r=GuillaumeGomez
...
docs: add long error explanation for error E0472
Add long-form error docs for E0472: "inline assembly not supported on this target" and update UI tests.
R? `@GuillaumeGomez`
2022-12-20 23:35:14 +01:00
Ezra Shaw
082ca1e461
docs: add long error explanation for error E0472
2022-12-20 21:34:30 +13:00
Ezra Shaw
e798fdf7be
docs/test: add UI test and long-form error docs for E0377
2022-12-20 18:31:15 +13:00
Ezra Shaw
540c3f434f
docs: add long-form error-code docs for E0457
2022-12-19 08:55:08 +13:00
Ezra Shaw
7e66d451ad
docs: add long-form error-code docs for E0460
2022-12-19 08:55:08 +13:00
Ezra Shaw
fe52882986
docs: add long error explanation for error E0320
2022-12-17 07:38:23 +13:00
Peter Collingbourne
f44a0153bc
Support Option and similar enums as type of static variable with linkage attribute.
...
Compiler MCP:
https://github.com/rust-lang/compiler-team/issues/565
2022-12-05 15:05:43 -08:00
Matthew Kelly
fa91980d2d
Add long description and test for E0311
...
Adds a long description and unit test for the E0311 compiler error.
2022-08-19 06:46:37 -04:00
lcnr
43ccacf89b
region_outlives_predicate no snapshot
2022-07-21 13:09:01 +02:00
aticu
1cbacc0c8a
Add E0790 as more specific variant of E0283
2022-07-19 10:16:10 +02:00
Jane Losare-Lusby
e4e6b1ebc6
fixes post rebase
2022-07-08 21:18:16 +00:00
Jane Lusby
b55453dbad
add opt in attribute for stable-in-unstable items
2022-07-08 21:18:15 +00:00
onlinesoftwaredevok
99672fb2dc
Add comment for internal error codes
2022-06-12 19:52:49 -03:00
ltdk
5fabdb8f7f
Add E0788 for improper #[no_coverage] usage
2022-05-28 17:20:43 -04:00
Guillaume Gomez
eae2903150
Add long error explanation for E0667
2022-03-27 14:09:52 +02:00
Guillaume Gomez
911de7b98c
Add explanation for E0726
2022-02-28 15:51:05 +01:00
Guillaume Gomez
087fb23dc9
Add missing E0192 in the error code listing
2022-02-12 00:43:09 +01:00
Matthias Krüger
11898a56c2
Rollup merge of #88205 - danii:e0772, r=GuillaumeGomez
...
Add Explanation For Error E0772
I've added an error explanation for the error code E0772.
Assists with #61137
2022-01-29 14:46:29 +01:00
Daniel Conley
4f8b9a4126
Add Explanation For Error E0772
2022-01-28 11:00:56 -05:00
Tomasz Miąsko
888332fee4
Reject unsupported naked functions
...
Transition unsupported naked functions future incompatibility lint into
an error:
* Naked functions must contain a single inline assembly block.
Introduced as future incompatibility lint in 1.50 #79653 .
Change into an error fixes a soundness issue described in #32489 .
* Naked functions must not use any forms of inline attribute.
Introduced as future incompatibility lint in 1.56 #87652 .
2022-01-21 17:38:21 +01:00
TmLev
406d6d4028
docs(error-codes): Add long error explanation for E0227
2021-12-28 15:46:20 +03:00
Joshua Nelson
257ac1b498
Improve error when an .rlib can't be parsed
...
This usually describes either an error in the compiler itself or some
sort of IO error. Either way, we should report it to the user rather
than just saying "crate not found".
This only gives an error if the crate couldn't be loaded at all - if the
compiler finds another .rlib or .rmeta file which was valid, it will
continue to compile the crate.
Example output:
```
error[E0785]: found invalid metadata files for crate `foo`
--> bar.rs:3:24
|
3 | println!("{}", foo::FOO_11_49[0]);
| ^^^
|
= warning: failed to parse rlib '/home/joshua/test-rustdoc/libfoo.rlib': Invalid archive extended name offset
```
2021-11-07 15:03:40 +00:00