Jack Huey
a24df5b3cd
Reintegrate chalk using chalk-solve
2020-05-07 17:35:58 -04:00
Tshepang Lekhonkhobe
3be52b5941
fix rustdoc warnings
2020-05-02 10:41:04 +02:00
Camille GILLOT
e33327782f
Move a few queries to using an arena.
2020-04-28 11:49:55 +02:00
Camille GILLOT
e56c400432
Use the query system to allocate.
2020-04-28 11:34:17 +02:00
marmeladema
bfce24aa67
Modify `as_local_hir_id` to return a bare `HirId`
2020-04-23 23:14:07 +01:00
marmeladema
6148db719f
Modify `as_local_hir_id` to accept a `LocalDefId` instead of a `DefId`
2020-04-23 23:14:07 +01:00
marmeladema
92fb59d7f3
librustc_middle: return LocalDefId instead of DefId in local_def_id
2020-04-23 23:14:07 +01:00
bors
513a6473d6
Auto merge of #70643 - Rustin-Liu:rustin-patch-rename, r=eddyb
...
Rename AssocKind::Method to AssocKind::Fn
Part of https://github.com/rust-lang/rust/issues/60163 .
https://github.com/rust-lang/rust/issues/60163#issuecomment-607284413
2020-04-14 03:11:12 +00:00
Rustin-Liu
b07e7fe047
Rename AssocKind::Method to AssocKind::Fn
...
Rename fn_has_self_argument to fn_has_self_parameter
Rename AssocItemKind::Method to AssocItemKind::Fn
Refine has_no_input_arg
Refine has_no_input_arg
Revert has_no_input_arg
Refine suggestion_descr
Move as_def_kind into AssocKind
Signed-off-by: Rustin-Liu <rustin.liu@gmail.com>
Fix tidy check issue
Signed-off-by: Rustin-Liu <rustin.liu@gmail.com>
2020-04-14 07:12:07 +08:00
marmeladema
e08ad7ae58
Use `CRATE_HIR_ID` instead of `DUMMY_HIR_ID` when appropriate.
...
Those usage ends up forwarded to a `ObligationClause` which uses
`CRATE_HIR_ID` for dummy value as seen in `ObligationClause::dummy`.
2020-04-13 15:42:01 +01:00
Jonas Schievink
b00ba382e0
Use query instead of `impl_is_default` fn
2020-03-30 19:48:32 +02:00
Mazdak Farrokhzad
1ccb0b4a02
rustc -> rustc_middle part 3 (rustfmt)
2020-03-30 07:19:55 +02:00
Mazdak Farrokhzad
0cb9e36090
rustc -> rustc_middle part 2
2020-03-30 07:16:56 +02:00
Mazdak Farrokhzad
4392a8b73c
use direct imports for `rustc::{lint, session}`.
2020-03-16 02:52:06 +01:00
John Kåre Alsaker
8b16b023b1
Index HIR after creating TyCtxt
2020-03-14 22:52:30 +01:00
Camille GILLOT
1fcdc52f70
Make downstream crates compile.
2020-03-14 14:17:43 +01:00
Matthias Krüger
7b1b08cfee
remove lifetimes that can be elided (clippy::needless_lifetimes)
2020-03-12 20:03:09 +01:00
CAD97
b3777c952f
Remove chalk integration
2020-03-02 18:11:53 -05:00
Dylan MacKenzie
a0212ba40f
Construct `AssociatedItems` from an iterator instead of a `Vec`
2020-02-19 12:55:59 -08:00
Dylan MacKenzie
7f3ec5e50b
Make lookup of associated item by name O(log n)
2020-02-19 10:51:40 -08:00
Camille GILLOT
bee6a5ac12
Other crates.
2020-02-16 11:59:35 +01:00
bors
a1912f2e89
Auto merge of #68679 - matthewjasper:needs-type-op, r=varkor
...
Improve `ty.needs_drop`
* Handle cycles in `needs_drop` correctly
* Normalize types when computing `needs_drop`
* Move queries from rustc to rustc_ty
* Avoid query in simple cases
reopens #65918
2020-02-12 19:31:49 +00:00
Jonas Schievink
66fd4e6ed8
Make `associated_items` query return a slice
2020-02-08 14:29:18 +01:00
Dylan DPC
f6bfdf4620
Rollup merge of #68837 - jonas-schievink:assoc-item-lookup-2, r=estebank
...
Make associated item collection a query
Before this change, every time associated items were iterated over (which rustc does *a lot* – this can probably be further optimized), there would be N+1 queries to fetch all assoc. items. Now there's just one after they've been computed once.
2020-02-06 15:37:43 +01:00
Jonas Schievink
4fc4b951f1
Make associated item lookup a query
2020-02-05 01:43:03 +01:00
Matthew Jasper
570c1613c1
Remove unnecessary features in rustc_ty
2020-02-02 21:46:29 +00:00
Esteban Küber
6870f79e9c
Use more accurate failed predicate spans
2020-02-02 11:53:09 -08:00
Matthias Krüger
ec61761e46
don't clone types that are copy, round two.
2020-01-27 01:18:18 +01:00
Dylan MacKenzie
d2aefbb286
Add `ConstnessAnd` that implements `ToPredicate`
2020-01-20 00:00:08 -08:00
Dylan MacKenzie
4743995ed3
Use named fields for `hir::ItemKind::Impl`
2020-01-17 16:14:29 -08:00
Camille GILLOT
9908a87367
Move to new crate rustc_ty.
2020-01-13 13:41:25 +01:00