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
61d86fa06c
Check for missing const-stability attributes in stability
...
This used to happen as a side-effect of `is_min_const_fn`, which was
subtle.
2020-09-25 14:31:32 -07:00
Jacob Hughes
3f1b4b39e3
Fix compilation & test failures
2020-09-22 22:54:52 -04:00
Avi Dessauer
2793da3f39
Update src/librustc_passes/stability.rs
...
Co-authored-by: varkor <github@varkor.com>
2020-09-22 21:55:38 -04:00
Avi Dessauer
41eec9065a
Update src/librustc_passes/stability.rs
...
Co-authored-by: varkor <github@varkor.com>
2020-09-22 21:55:29 -04:00
Avi Dessauer
19e90843a4
Add documentation
2020-09-22 21:55:23 -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
89fb34fea7
Turn unstable trait impl error into a lint, so it can be disabled.
2020-09-11 13:36:42 +02:00
Mara Bos
e5c645f40e
Turn useless #[unstable] attributes into errors.
2020-09-11 13:36:15 +02:00
Mara Bos
1854f8b3d8
Warn for #[unstable] on trait impls when it has no effect.
2020-09-11 13:36:15 +02:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00