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
Ashley Mannix
9b2c8d866e
revert const_type_id stabilization
...
This reverts commit e3856616ee .
2020-09-23 09:40:51 +10:00
Simon Vandel Sillesen
ff241633f4
rebless after rebase
2020-09-22 23:09:07 +02:00
Simon Vandel Sillesen
b6f51d6d6a
cleanup cfg after optimization
2020-09-22 23:09:07 +02:00
Simon Vandel Sillesen
290dca1781
MIR pass to remove unneeded drops on types not needing drop
...
This is heavily dependent on MIR inlining running to actually see the drop statement
2020-09-22 23:09:07 +02:00
Andy Weiss
5b475a4618
Suggest async {} for async || {}
...
Fixes #76011
This adds support for adding help diagnostics to the feature gating checks and
then uses it for the async_closure gate to add the extra bit of help
information as described in the issue.
2020-09-22 13:22:10 -07:00
Bastian Kauschke
438d229b25
dead_code: look at trait impls even if they don't contain items
2020-09-22 22:13:58 +02:00
Jonas Schievink
928a29fd41
Bless mir-opt tests
2020-09-22 20:59:05 +02:00
Jonas Schievink
4b6a4821b7
Fix dest prop miscompilation around references
2020-09-22 20:19:00 +02:00
Dylan MacKenzie
9be3d106c3
Bless compile-fail
2020-09-22 10:05:58 -07:00
Dylan MacKenzie
ef6d4277ed
Bless tests
2020-09-22 10:05:58 -07:00
blitzerr
14736ca20b
fixing the custom.rs
2020-09-22 08:51:20 -07:00
Raoul Strackx
cd31f40b6f
generic load hardening test
2020-09-22 13:54:15 +02:00
Raoul Strackx
a13239dac2
generic ret hardening test
2020-09-22 13:54:14 +02:00
ecstatic-morse
0863f9a965
Rollup merge of #77032 - lcnr:visit-all-the-item-likes, r=davidtwco
...
lint missing docs for extern items
fixes #76991
2020-09-21 20:41:01 -07:00
ecstatic-morse
50d4aebc7a
Rollup merge of #76914 - lcnr:path-no-more, r=ecstatic-morse
...
extend `Ty` and `TyCtxt` lints to self types
blocked on #76891
r? @ecstatic-morse cc @Aaron1011
2020-09-21 20:40:57 -07:00
ecstatic-morse
60b99015e9
Rollup merge of #76807 - ecstatic-morse:const-checking-staged-api, r=oli-obk
...
Use const-checking to forbid use of unstable features in const-stable functions
First step towards #76618 .
Currently this code isn't ever hit because `qualify_min_const_fn` runs first and catches pretty much everything. One exception is `const_precise_live_drops`, which does not use the newly added code since it runs as part of a separate pass.
Also contains some unrelated refactoring, which is split into separate commits.
r? @oli-obk
2020-09-21 20:40:53 -07:00
ecstatic-morse
30f1bab7e6
Rollup merge of #76581 - lcnr:bound-too-generic, r=eddyb
...
do not ICE on bound variables, return `TooGeneric` instead
fixes #73260 , fixes #74634 , fixes #76595
r? @nikomatsakis
2020-09-21 20:40:47 -07:00
ecstatic-morse
ef6c3a7bca
Rollup merge of #76489 - GuillaumeGomez:add-explanation-e0756, r=jyn514
...
Add explanation for E0756
r? @pickfire
2020-09-21 20:40:46 -07:00
blitzerr
d9d02fa168
Changing the alloc() to accept &self instead of &mut self
2020-09-21 16:43:36 -07:00
Bastian Kauschke
d452744100
lint missing docs for extern items
2020-09-22 00:02:46 +02:00
Bastian Kauschke
2f893e458a
review
2020-09-21 23:25:52 +02:00
Simon Vandel Sillesen
dfc469ddae
Run the test with explicit -O such that Add is generated instead of CheckedAdd
...
This makes the test run deterministic regardless of noopt testruns
2020-09-21 22:15:30 +02:00
Simon Vandel Sillesen
2bb3844820
Add optimization to avoid load of address
2020-09-21 22:08:27 +02:00
Bastian Kauschke
9a493ced74
add test for closures in abstract consts
2020-09-21 22:01:18 +02:00
Alexis Bourget
5be843fc54
Move format-ref-cell test
2020-09-21 21:50:27 +02:00
Alexis Bourget
f6a4189d05
Move vec-cycle-wrapped test
2020-09-21 21:50:27 +02:00
Alexis Bourget
6bc0357dad
Move vec-cycle test
2020-09-21 21:50:27 +02:00
Alexis Bourget
275eed7eb1
Move vec-slice-drop test
2020-09-21 21:50:27 +02:00
Alexis Bourget
8904921c1d
Move array cycle test
2020-09-21 21:50:26 +02:00
Alexis Bourget
ac39debeba
Move panic safety traits tests
2020-09-21 21:50:26 +02:00
Alexis Bourget
ed52c7bb75
Move deref-lval test
2020-09-21 21:50:26 +02:00
Alexis Bourget
949c96660c
move format! interface tests
2020-09-21 21:50:26 +02:00
Alexis Bourget
fc152cd67e
move 'test zip ...' tests
2020-09-21 21:50:26 +02:00
Alexis Bourget
af44a2a857
move 'cell does not clone' test
2020-09-21 21:50:25 +02:00
Alexis Bourget
f69c5aa428
Move more tests using Cell to unit tests
2020-09-21 21:50:19 +02:00
Bastian Kauschke
7a02ebd828
bless tests
2020-09-21 21:50:00 +02:00
Alexis Bourget
8aae1eee94
Move cell exterior test into library unit tests
2020-09-21 21:28:33 +02:00
Mara Bos
bcc1d56917
Test that AtomicU64::from_mut is not available on x86 linux.
2020-09-21 21:20:05 +02:00
Aaron Hill
e734733a9e
Record tcx.def_span instead of item.span in crate metadata
...
This was missed in PR #75465 . As a result, a few places have been using
the full body span of functions, instead of just the header span.
2020-09-21 15:10:16 -04:00
Guillaume Gomez
63195ecb45
Add explanation for E0756
2020-09-21 21:04:56 +02:00
Mara Bos
54fdf54e06
Add feature gate ui test for cfg(target_has_atomic_equal_alignment).
2020-09-21 20:43:44 +02:00
Mara Bos
af56ad7633
Add feature gate ui test for cfg(target_has_atomic_load_store).
2020-09-21 20:43:44 +02:00
Bastian Kauschke
8fc782afc2
add test
2020-09-21 20:36:05 +02:00
bors
4eff9b0b29
Auto merge of #77013 - RalfJung:rollup-84ut0xq, r=RalfJung
...
Rollup of 10 pull requests
Successful merges:
- #76439 (Add error explanation for E0755)
- #76521 (Fix segfault if pthread_getattr_np fails)
- #76835 (make replace_prefix only take &str as arguments )
- #76967 (Revert adding Atomic::from_mut.)
- #76977 (Add a regression test for copy propagation miscompilation)
- #76981 (liballoc bench use imported path Bencher)
- #76983 (BTreeMap: extra testing & fixed comments)
- #76996 (Fix typo in rustc_lexer docs)
- #77009 (Dogfood total_cmp in the test crate)
- #77012 (update Miri for another bugfix)
Failed merges:
- #76489 (Add explanation for E0756)
r? `@ghost`
2020-09-21 15:06:20 +00:00
Ralf Jung
9c14ef572f
Rollup merge of #76977 - tmiasko:issue-76740, r=wesleywiser
...
Add a regression test for copy propagation miscompilation
2020-09-21 15:30:42 +02:00
Ralf Jung
670e204ace
Rollup merge of #76439 - GuillaumeGomez:add-error-explanation-e0755, r=pickfire,jyn514
...
Add error explanation for E0755
r? @pickfire
2020-09-21 15:30:34 +02:00
bors
e0bf356f9e
Auto merge of #74040 - lcnr:const-occurs-check, r=nikomatsakis
...
fix unification of const variables
r? `@nikomatsakis` `@varkor` `@eddyb` let's just ping everyone here 😅
2020-09-21 12:52:09 +00:00