Simon Jakobi
3ea62cb5d1
Remove redundant ignore-tidy-linelength annotations
...
This is step 2 towards fixing #77548 .
In the codegen and codegen-units test suites, the `//` comment markers
were kept in order not to affect any source locations. This is because
these tests cannot be automatically `--bless`ed.
2021-04-03 22:30:20 +02:00
Vadim Petrochenkov
7e66e9d6b0
More precise spans for HIR paths
2021-03-15 22:13:45 +03:00
bors
a0d66b54fb
Auto merge of #71481 - estebank:inherit-stability, r=nikomatsakis
...
Inherit `#[stable(..)]` annotations in enum variants and fields from its item
Lint changes for #65515 . The stdlib will have to be updated once this lands in beta and that version is promoted in master.
2021-03-05 05:28:07 +00:00
Jesus Rubio
5ae392f3c6
Add long explanation for E0549
2021-02-18 06:53:01 +01:00
Jesus Rubio
c80b737394
Add long explanation for E0543
2021-02-17 18:08:30 +01:00
Jesus Rubio
8192793d50
Add long explanation for E0545
2021-02-15 19:16:39 +01:00
Esteban Küber
19806e4514
Tweak stability attribute diagnostic output
2021-02-10 21:35:27 -08:00
Esteban Küber
4cb089bb54
Inherit #[stable(..)] annotations in enum variants and fields from its item
2021-02-10 19:10:14 -08:00
Jesus Rubio
4d33d41ef3
Add long explanation for E0547
2021-02-08 18:25:05 +01:00
Jesus Rubio
be159379f6
Add long error explanation for E0542
2021-02-06 16:42:34 +01:00
Joshua Nelson
c819a4c025
Don't mark ineffective_unstable_trait_impl as an internal lint
...
It's not an internal lint:
- It's not in the rustc::internal lint group
- It's on unconditionally, because it actually lints `staged_api`, not
the compiler
This fixes a bug where `#[deny(rustc::internal)]` would warn that
`rustc::internal` was an unknown lint.
2021-01-15 17:31:10 -05:00
bstrie
1e1ca28f39
Allow since="TBD" for rustc_deprecated
2020-12-16 13:21:24 -05:00
Vadim Petrochenkov
4eb9da3b17
Move some tests to subdirectories
2020-12-07 02:25:09 +03:00
Daiki Ihara
ea5aff4565
bless stability-attribute-sanity ui test
2020-12-02 00:18:36 +09:00
Mara Bos
9c647d1021
Improve deprecation attribute diagnostic messages.
...
(From the PR feedback.)
Co-authored-by: Esteban Küber <esteban@kuber.com.ar>
2020-11-02 13:21:18 +01:00
Mara Bos
706bc33651
Use the right span for errors about #[deprecated] attributes.
2020-11-01 20:48:58 +01:00
Jonas Schievink
9f086fcb00
Rollup merge of #77203 - ecstatic-morse:const-stability-attr-checks, r=oli-obk
...
Check for missing const-stability attributes in `rustc_passes`
Currently, this happens as a side effect of `is_min_const_fn`, which is non-obvious. Also adds a test for this case, since we didn't seem to have one before.
2020-09-27 18:37:21 +02:00
Dylan MacKenzie
6ce178f60e
Test for missing const-stability attributes
2020-09-25 14:31:32 -07:00
Jacob Hughes
98eab09cf4
Add enum and type alias tests for generic default stability
2020-09-23 02:14:42 -04:00
Jacob Hughes
3f1b4b39e3
Fix compilation & test failures
2020-09-22 22:54:52 -04:00
Avi Dessauer
d281620d8f
Test removing unstable default parameter
2020-09-22 21:55:50 -04:00
Avi Dessauer
a73e7d0a4d
Test unstable Alloc param on Box
2020-09-22 21:55:47 -04:00
Avi Dessauer
7616b30bff
Add unstable default feature enabled test
2020-09-22 21:55:44 -04:00
Avi Dessauer
af19d44921
Add test case demonstrating leak
2020-09-22 21:55:41 -04:00
Avi Dessauer
a1892f1a79
Test stability on default parameter of deprecated
2020-09-22 21:54:13 -04:00
Avi Dessauer
f665ccd3a2
Add more tests
2020-09-22 21:54:10 -04:00
Avi Dessauer
cb7264b22a
Fix tests
2020-09-22 21:54:07 -04:00
Avi Dessauer
eb7abb9e32
Unstable default types leak in public fields
2020-09-22 21:54:04 -04:00
Avi Dessauer
88b77b6534
Comment out broken tests
2020-09-22 21:54:01 -04:00
Avi Dessauer
8b81a17d73
Uncomment struct tests
2020-09-22 21:53:58 -04:00
Avi Dessauer
a9d6da576b
ignore-tidy-linelength generic default stab test
...
Co-authored-by: Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com>
2020-09-22 21:53:55 -04:00
Avi Dessauer
a7a2086053
Stability annotations on generic trait parameters
2020-09-22 21:53:48 -04:00
Mara Bos
14cc17759d
Improve ineffective_unstable_trait_impl error message.
2020-09-11 21:42:28 +02:00
Mara Bos
1c1bfba84a
Add test for unstable trait impl lint.
2020-09-11 13:36:45 +02:00
Mark Rousskov
c5cc29b0e0
Parse rustc_deprecated as deprecated attribute
2020-07-20 21:22:14 -04:00
unexge
e4ee172ab0
Add long error explanation for E0539
2020-05-02 21:14:08 +03:00
Eduard-Mihai Burtescu
d00f94ffc1
Remove redundant descr/descriptive_variant methods from HIR.
2020-04-24 13:44:08 -05:00
Matthias Prechtl
7b555178ae
--bless --compare-mode=nll
2020-02-09 20:43:49 +01:00
Yuki Okushi
bf269335d0
Forbid using 0 as issue number
2020-02-06 16:19:39 +09:00
Andy Russell
7632ade65b
clarify "incorrect issue" error
2020-01-30 09:01:56 -05:00
Ross MacArthur
f7256d28d1
Require issue = "none" over issue = "0" in unstable attributes
2019-12-21 13:16:18 +02:00
Oliver Scherer
5e17e39881
Require stable/unstable annotations for the constness of all stable functions with a const modifier
2019-12-13 11:27:02 +01:00
Oliver Scherer
d75c7530f3
Reuse the staged_api feature for rustc_const_unstable
2019-12-13 11:27:01 +01:00
Mazdak Farrokhzad
01075d8f6b
Rollup merge of #64763 - GuillaumeGomez:long-err-explanation-E0734, r=estebank
...
Add E0734 and its long explanation
Part of https://github.com/rust-lang/rust/issues/61137
2019-09-28 22:12:02 +02:00
Guillaume Gomez
2e7868389a
Update ui tests
2019-09-27 13:23:07 +02:00
Guillaume Gomez
8220252f8e
Add test for E0543
2019-09-26 13:24:41 +02:00
Samy Kacimi
41e71b0c93
normalize use of backticks in compiler messages for libsyntax/feature_gate
...
https://github.com/rust-lang/rust/issues/60532
2019-07-09 14:13:28 +02:00
Esteban Küber
609ffa1a89
Reword malformed attribute input diagnostics
...
- Handle empty `cfg_attr` attribute
- Reword empty `derive` attribute error
- Use consistend error message: "malformed `attrname` attribute input"
- Provide suggestions when possible
- Move note/help to label/suggestion
- Use consistent wording "ill-formed" -> "malformed"
- Move diagnostic logic out of parser
2019-05-25 11:55:50 -07:00
varkor
497dcfa221
Update ui tests
2019-04-23 11:42:14 +01:00
varkor
62838975d0
Remove unnecessary ignore-tidy-linelength
2019-04-23 11:42:14 +01:00