bors
5a8b288712
Auto merge of #108056 - matthiaskrgr:rollup-oa6bxvh, r=matthiaskrgr
...
Rollup of 9 pull requests
Successful merges:
- #107573 (Update the minimum external LLVM to 14)
- #107626 (Fix `x fix` on the standard library itself)
- #107673 (update ICU4X to 1.1.0)
- #107733 (Store metrics from `metrics.json` to CI PGO timer)
- #108007 (Use `is_str` instead of string kind comparison)
- #108033 (add an unstable `#[rustc_coinductive]` attribute)
- #108039 (Refactor refcounted structural_impls via functors)
- #108040 (Use derive attributes for uninteresting traversals)
- #108044 (interpret: rename Pointer::from_addr → from_addr_invalid)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-02-14 21:07:04 +00:00
Matthias Krüger
b8c36429e4
Rollup merge of #108007 - compiler-errors:str-less-kind, r=Nilstrieb
...
Use `is_str` instead of string kind comparison
Split out from #107939
2023-02-14 18:24:42 +01:00
Oli Scherer
e3a739a115
s/eval_usize/eval_target_usize/ for clarity
2023-02-14 08:51:19 +00:00
Michael Goulet
4b8f112d09
Use is_str instead of string kind comparison
2023-02-13 19:06:22 +00:00
Alan Egerton
340d9e818a
Make visiting traits generic over the Interner
2023-02-13 10:24:49 +00:00
Alan Egerton
e8e9c32af9
Alias folding/visiting traits instead of re-export
2023-02-13 10:24:46 +00:00
Philipp Krones
5c7a65251a
Merge commit '1480cea393d0cee195e59949eabdfbcf1230f7f9' into clippyup
2023-01-27 21:09:08 +01:00
Kyle Matsuda
afb586fa1f
change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata
2023-01-26 20:28:25 -07:00
Kyle Matsuda
38899d0c29
replace usages of fn_sig query with bound_fn_sig
2023-01-26 20:15:36 -07:00
Kyle Matsuda
2bfba8685d
fix missing subst in clippy utils
2023-01-17 08:55:28 -07:00
Kyle Matsuda
a084d7908c
change item_bounds query to return EarlyBinder; remove bound_item_bounds query
2023-01-17 08:55:28 -07:00
Kyle Matsuda
5dac27503f
change usages of item_bounds query to bound_item_bounds
2023-01-17 08:55:27 -07:00
Nilstrieb
c617a8e01c
Rename Rptr
to Ref
in AST and HIR
...
The name makes a lot more sense, and `ty::TyKind` calls it `Ref` already
as well.
2022-12-28 18:52:36 +01:00
Philipp Krones
1c422524c7
Merge commit '4bdfb0741dbcecd5279a2635c3280726db0604b5' into clippyup
2022-12-17 14:12:54 +01:00
Oli Scherer
65069d5c5b
Ensure no one constructs AliasTy
s themselves
2022-12-14 15:36:39 +00:00
Michael Goulet
957ab6ae52
Combine projection and opaque into alias
2022-12-13 17:48:55 +00:00
Michael Goulet
89b8840543
squash OpaqueTy and ProjectionTy into AliasTy
2022-12-13 17:40:27 +00:00
Michael Goulet
a274e7e9a2
ProjectionTy.item_def_id -> ProjectionTy.def_id
2022-12-13 17:34:44 +00:00
Michael Goulet
ad55e4c972
Use ty::OpaqueTy everywhere
2022-12-13 17:29:26 +00:00
Philipp Krones
d05e2865a0
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
2022-12-01 18:29:38 +01:00
Michael Goulet
a61e2a91f5
FnCtxt normalization stuff
2022-11-28 17:35:39 +00:00
Michael Goulet
82c07f09e5
partially_normalize_... -> At::normalize
2022-11-28 17:35:39 +00:00
Santiago Pastorino
3f059a49a4
Introduce PredicateKind::Clause
2022-11-25 00:04:54 -03:00
Maybe Waffle
284ce9ed0d
Move get_associated_type
from clippy
to rustc_lint
2022-11-23 15:40:27 +00:00
bors
b33afd61ed
Auto merge of #104688 - flip1995:clippyup, r=Manishearth,flip1995
...
Update Clippy
r? `@Manishearth`
Sorry for taking so long. There were so many blockers and so little time. This situation should be mitigated with #104007 in the future.
2022-11-22 17:09:06 +00:00
Oli Scherer
595ae83855
Stop passing the self-type as a separate argument.
2022-11-21 20:39:46 +00:00
Oli Scherer
f60e43ee05
Fix clippy's missing substs
2022-11-21 20:39:29 +00:00
Oli Scherer
c7828221e3
Allow iterators instead of requiring slices that will get turned into iterators
2022-11-21 20:33:55 +00:00
Philipp Krones
6fce4691d5
Clippy: Don't import GenericParamDefKind
2022-11-21 21:05:06 +01:00
Philipp Krones
46c5a5d234
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
2022-11-21 20:51:52 +01:00
Cameron Steffen
16566e97fd
Use LanguageItems::require less
2022-10-29 16:04:10 -05:00
Maybe Waffle
471d855a8e
Update tooling
2022-10-27 18:41:26 +04:00
Michael Goulet
2ed404937f
Introduce subst_iter and subst_iter_copied on EarlyBinder
2022-10-22 06:52:12 +00:00
Cameron Steffen
6819e85501
Change InferCtxtBuilder from enter to build
2022-10-07 07:10:40 -05:00
Philipp Krones
d75b25faab
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
2022-10-06 09:44:38 +02:00
David Koloski
4d015293d1
Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy
2022-09-21 13:13:27 -04:00
lcnr
70f4c712c5
remove the Subst
trait, always use EarlyBinder
2022-09-19 11:37:27 +02:00
Eric Holk
27e91b65d5
Address code review comments
2022-09-13 14:50:12 -07:00
Eric Holk
b95b285ef4
Make x.py check work
2022-09-12 17:29:11 -07:00
Jason Newcomb
fb41bfa774
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
2022-08-31 09:24:45 -04:00
Philipp Krones
dc29cfb8d5
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
2022-08-11 19:42:16 +02:00
Philipp Krones
7d4daaa8fa
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
2022-07-18 09:39:37 +02:00
Alan Egerton
5c35569ff7
Relax constrained generics to TypeVisitable
2022-07-05 22:25:43 +01:00
Philipp Krones
09f5df5087
Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup
2022-06-30 10:50:09 +02:00
flip1995
f8f9d01c2a
Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup
2022-06-16 17:39:06 +02:00
Philipp Krones
f067783461
Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup
2022-06-04 13:34:07 +02:00
Michael Goulet
0ad3a0ac07
Lifetime variance fixes for clippy
2022-05-23 09:34:49 -07:00
xFrednet
4587b6628d
Merge 'rust-clippy/master' into clippyup
2022-05-21 13:24:00 +02:00
bors
198c70daab
Auto merge of #96883 - jackh726:early-binder-2, r=oli-obk
...
Add EarlyBinder
Chalk has no concept of `Param` (e0ade19d13/chalk-ir/src/lib.rs (L579)
) or `ReEarlyBound` (e0ade19d13/chalk-ir/src/lib.rs (L1308)
). Everything is just "bound" - the equivalent of rustc's late-bound. It's not completely clear yet whether to move everything to the same time of binder in rustc or add `Param` and `ReEarlyBound` in Chalk.
Either way, tracking when we have or haven't already substituted out these in rustc can be helpful.
As a first step, I'm just adding a `EarlyBinder` newtype that is required to call `subst`. I also add a couple "transparent" `bound_*` wrappers around a couple query that are often immediately substituted.
r? `@nikomatsakis`
2022-05-14 23:53:11 +00:00
Jack Huey
6dab55cfae
Add bound_fn_sig
2022-05-13 18:27:40 -04:00