Commit graph

124480 commits

Author SHA1 Message Date
Niko Matsakis
0d0702623f wip pacify the merciless ui tests 2020-03-26 07:41:26 -04:00
Oliver Scherer
fdc931899d Remove unused argument 2020-03-26 12:20:15 +01:00
Niko Matsakis
011215b2c7 pacify the merciless x.py fmt 2020-03-26 06:52:58 -04:00
Niko Matsakis
c35801e160 use slice pattern instead of calling is_empty() and [0] 2020-03-26 06:52:58 -04:00
Niko Matsakis
b9e09d8f65 add test for negative specializes negative 2020-03-26 06:52:58 -04:00
Niko Matsakis
f5c09ed344 move stderr file too 2020-03-26 06:52:58 -04:00
Niko Matsakis
644b9a0a94 give the negative-impls-builtin test a more sensible name 2020-03-26 06:52:58 -04:00
Niko Matsakis
7107f6e606 comment the typeck-negative-impls-builtin test 2020-03-26 06:52:58 -04:00
Niko Matsakis
f66284778a move feature-gate-negative-impls test to traits/negative-impls 2020-03-26 06:52:58 -04:00
Niko Matsakis
73a55009ac convert to doc comments 2020-03-26 06:52:58 -04:00
Niko Matsakis
68aa798436 bump negative impls version to 1.44.0 2020-03-26 06:52:58 -04:00
Niko Matsakis
cc0d6d03f6 create a tracking issue and link to it 2020-03-26 06:52:57 -04:00
Niko Matsakis
fda3378e3f introduce negative_impls feature gate and document
They used to be covered by `optin_builtin_traits` but negative impls
are now applicable to all traits, not just auto traits.

This also adds docs in the unstable book for the current state of auto traits.
2020-03-26 06:52:55 -04: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
Bastian Kauschke
c21e25c262 simplify match stmt 2020-03-26 10:52:52 +01:00
Mazdak Farrokhzad
b514c42e7b trait_bound_spans -> sized_trait_bound_spans 2020-03-26 09:59:07 +01:00
Mazdak Farrokhzad
af1146bd23 parse: recover on const fn() / async fn(). 2020-03-26 09:44:11 +01:00
Camille GILLOT
260cfaba12 Don't allow access to the Session. 2020-03-26 09:40:52 +01:00
Camille GILLOT
d224e214e0 Rename read_query_job -> current_query_job and simplify it. 2020-03-26 09:40:52 +01:00
Camille GILLOT
fce0d37619 Add comment. 2020-03-26 09:40:52 +01:00
Camille GILLOT
5dfed41812 Simplify generics on try_start. 2020-03-26 09:40:51 +01:00
Camille GILLOT
fa06cfd25b Move generics on QueryCache. 2020-03-26 09:40:51 +01:00
Camille GILLOT
0e8b59a2f4 Prune dependencies. 2020-03-26 09:40:51 +01:00
Camille GILLOT
b6033fca02 Retire DepGraphSafe and HashStableContext. 2020-03-26 09:40:51 +01:00
Camille GILLOT
228ca8ef0a Access QueryStateShard directly. 2020-03-26 09:40:50 +01:00
Camille GILLOT
d305b2ccc6 Unify key types in get_lookup. 2020-03-26 09:40:50 +01:00
Camille GILLOT
301ad11e9b Rustfmt. 2020-03-26 09:40:50 +01:00
Camille GILLOT
dca03443a0 Make librustc compile. 2020-03-26 09:38:33 +01:00
Camille GILLOT
8e873c3c64 Make librustc_query_system compile. 2020-03-26 09:25:35 +01:00
Camille GILLOT
5b8dac3c39 Move query system to librustc_query_system. 2020-03-26 09:22:46 +01:00
Camille GILLOT
6184a71a39 Make get_query into an extension trait. 2020-03-26 09:22:46 +01:00
Camille GILLOT
27e8a95717 Generalise Query starting. 2020-03-26 09:22:46 +01:00
Camille GILLOT
4ac4ccd727 Generalise JobOwner::try_start. 2020-03-26 09:22:46 +01:00
Camille GILLOT
decfd704fe Generalise try_get_cached. 2020-03-26 09:22:46 +01:00
Camille GILLOT
42f0db5987 Move HashStable bound to the trait definition. 2020-03-26 09:22:45 +01:00
Camille GILLOT
63087b6b15 Parametrise by try_collect_active_jobs. 2020-03-26 09:22:45 +01:00
Camille GILLOT
232364a580 Generalise QueryLatch. 2020-03-26 09:22:45 +01:00
Camille GILLOT
a51ad889dd Decouple from DepKind. 2020-03-26 09:22:45 +01:00
Camille GILLOT
2a52436619 Generalise QueryJobId. 2020-03-26 09:22:45 +01:00
Camille GILLOT
ee9781cea0 Make QueryContext a subtrait of DepContext. 2020-03-26 09:22:45 +01:00
Camille GILLOT
c4a451e5af Make QueryCache generic on the context. 2020-03-26 09:22:44 +01:00
Camille GILLOT
57c3177b31 Make QueryDescription parameter a type. 2020-03-26 09:22:44 +01:00
Camille GILLOT
f74fd03999 Make QueryAccessor argument a type. 2020-03-26 09:22:44 +01:00
Camille GILLOT
8c1c90bb5c Make QueryConfig argument a type. 2020-03-26 09:22:44 +01:00
Rakshith Ravi
73c82030e8 Throw error when encountering ... instead of .. while destructing a pattern
Added tests and stderr output
2020-03-26 13:25:34 +05:30
PankajChaudhary5
e5f4dad6c8 Refactor code 2020-03-26 13:17:41 +05:30
bors
3b1d735118 Auto merge of #70391 - RalfJung:miri, r=RalfJung
update miri

Usually I'd wait until https://github.com/rust-lang/rust/pull/70226 lands which will break Miri again, but... the queue is empty (!), so whatever.^^

r? @ghost Cc @oli-obk
Fixes https://github.com/rust-lang/rust/issues/70346
2020-03-26 07:36:21 +00:00
Ralf Jung
5d12f22f35 update miri 2020-03-26 08:21:30 +01:00
PankajChaudhary5
95870e25c6 Add long error explanation for E0703 2020-03-26 11:32:56 +05:30