Michael Howell
|
e1873ba007
|
cleanup(rustc_trait_selection): remove vestigial code from rustc_on_unimplemented
This isn't allowed by the validator, and seems to be unused.
When it was added in ed10a3faae,
it was used on `Sized`, and that usage is gone.
|
2021-09-11 16:42:42 -07:00 |
|
Jubilee
|
c2e1097f44
|
Rollup merge of #88849 - matthiaskrgr:clony_on_copy, r=petrochenkov
don't clone types that are Copy (clippy::clone_on_copy)
|
2021-09-11 08:23:45 -07:00 |
|
bors
|
641e02f388
|
Auto merge of #88327 - bonega:scalar_refactor, r=eddyb
`WrappingRange` (#88242) follow-up (`is_full_for`, `Scalar: Copy`, etc.)
Some changes related to feedback during #88242
r? `@RalfJung`
|
2021-09-11 10:18:05 +00:00 |
|
Deadbeef
|
a0b83f542f
|
Fix duplicate bounds for const_trait_impl
|
2021-09-11 09:40:19 +00:00 |
|
Matthias Krüger
|
c1e96085d3
|
don't clone types that are Copy (clippy::clone_on_copy)
|
2021-09-11 10:18:56 +02:00 |
|
Manish Goregaokar
|
257f5adf0e
|
Rollup merge of #88578 - notriddle:notriddle/suggest-add-reference-to-for-loop-iter, r=nagisa
fix(rustc): suggest `items` be borrowed in `for i in items[x..]`
Fixes #87994
|
2021-09-10 08:23:18 -07:00 |
|
Ellen
|
8295e4a6cf
|
add test for builtin types N + N unifying with fn call
|
2021-09-09 15:44:04 +01:00 |
|
Andreas Liljeqvist
|
5b2f757dae
|
Make abi::Abi Copy and remove a *lot* of refs
fix
fix
Remove more refs and clones
fix
more
fix
|
2021-09-09 10:41:19 +02:00 |
|
Deadbeef
|
1ca83c6451
|
Use trait select logic instead of query
|
2021-09-09 05:21:32 +00:00 |
|
Deadbeef
|
f0a52128ee
|
fmt
|
2021-09-09 05:21:31 +00:00 |
|
Deadbeef
|
a13b13ff46
|
Const drop selection candidates
|
2021-09-09 05:21:31 +00:00 |
|
Ellen
|
cd2915eddb
|
fmt
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
3212734bd7
|
resolve from_hir_call FIXME
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
8c7954dc42
|
add a CastKind to Node::Cast
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
955e2b2da0
|
nits
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
79be080255
|
remove comment
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
406d2ab95d
|
rename mir -> thir around abstract consts
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
15101c8e95
|
remove debug stmts
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
1f57f8b903
|
remove WorkNode
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
4cbcb0936a
|
handle ExprKind::NeverToAny
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
fc63e9a8fb
|
dont build abstract const for monomorphic consts
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
c170dcf04c
|
tidy
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
4483c2bdf6
|
dont support blocks
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
9b2913814b
|
as casts and block exprs
|
2021-09-09 01:32:03 +01:00 |
|
Ellen
|
2987f4ba42
|
WIP state
|
2021-09-09 01:32:03 +01:00 |
|
Mark Rousskov
|
2eac09d258
|
Use index newtyping for TyVid
|
2021-09-06 22:38:06 -04:00 |
|
Gary Guo
|
97214eecc5
|
Add query own_existential_vtable_entries
|
2021-09-05 18:13:32 +01:00 |
|
Gary Guo
|
871eb6233e
|
Stop allocating vtable entries for non-object-safe methods
|
2021-09-05 18:13:32 +01:00 |
|
bors
|
c5799b2a73
|
Auto merge of #88618 - m-ou-se:rollup-6tss5z6, r=m-ou-se
Rollup of 7 pull requests
Successful merges:
- #88202 (Add an example for deriving PartialOrd on enums)
- #88483 (Fix LLVM libunwind build for non-musl targets)
- #88507 (Add test case for using `slice::fill` with MaybeUninit)
- #88557 (small const generics cleanup)
- #88579 (remove redundant / misplaced sentence from docs)
- #88610 (Update outdated docs of array::IntoIter::new.)
- #88613 (Update primitive docs for rust 2021.)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
|
2021-09-03 11:37:52 +00:00 |
|
Mara Bos
|
4b5da4aefe
|
Rollup merge of #88557 - lcnr:const-generics-cleanup, r=BoxyUwU
small const generics cleanup
|
2021-09-03 13:30:48 +02:00 |
|
bors
|
e4e4179539
|
Auto merge of #86454 - tlyu:refactor-unsized-suggestions, r=davidtwco
Refactor unsized suggestions
`@rustbot` label +A-diagnostics +A-traits +A-typesystem +C-cleanup +T-compiler
|
2021-09-03 08:51:21 +00:00 |
|
Aaron Hill
|
611191f54c
|
Report cycle error using 'deepest' obligation in the cycle
|
2021-09-02 11:49:32 -05:00 |
|
Aaron Hill
|
f2d9ee9c34
|
Preserve most sub-obligations in the projection cache
|
2021-09-02 11:10:40 -05:00 |
|
Michael Howell
|
733bdd079a
|
fix(rustc): suggest items be borrowed in for i in items[x..]
Fixes #87994
|
2021-09-01 20:14:01 -07:00 |
|
lcnr
|
fc2a2650e2
|
cleanup const generics FIXME
|
2021-09-01 11:41:06 +02:00 |
|
Cameron Steffen
|
2f4e86b9ef
|
Enforce diverging let...else
|
2021-08-30 20:18:42 -05:00 |
|
Ellen
|
fcc2badf9b
|
rename const_evaluatable_checked to generic_const_exprs
✨
|
2021-08-30 11:00:21 +02:00 |
|
Deadbeef
|
f3d96e9391
|
fmt
|
2021-08-27 08:09:00 +00:00 |
|
Deadbeef
|
80e1ee5aee
|
Add ty::BoundConstness
|
2021-08-27 06:49:18 +00:00 |
|
lcnr
|
7cbfa2ee33
|
rebase
|
2021-08-26 11:14:31 +02:00 |
|
lcnr
|
f3996f6a88
|
review
|
2021-08-26 11:14:31 +02:00 |
|
lcnr
|
bc0156bace
|
shrink ty::PredicateKind again
|
2021-08-26 11:00:30 +02:00 |
|
lcnr
|
caa975c89e
|
use ty::Unevaluated instead of def substs pair
|
2021-08-26 11:00:30 +02:00 |
|
lcnr
|
ab9108b70f
|
update TypeFlags to deal with missing ct substs
|
2021-08-26 11:00:30 +02:00 |
|
lcnr
|
cc47998e28
|
add tcx to fn walk
|
2021-08-26 11:00:30 +02:00 |
|
lcnr
|
bfaf13af4e
|
make unevaluated const substs optional
|
2021-08-26 11:00:30 +02:00 |
|
lcnr
|
f4b606fd17
|
require a tcx for TypeVisitor
|
2021-08-26 10:54:01 +02:00 |
|
jackh726
|
af14db14f4
|
Review comments
|
2021-08-24 22:29:41 -04:00 |
|
Jack Huey
|
8d7707f3c4
|
Normalize associated types with bound vars
|
2021-08-24 22:29:39 -04:00 |
|
Mara Bos
|
5cf025f076
|
Rollup merge of #88230 - steffahn:a_an, r=oli-obk
Fix typos “a”→“an”
Fix typos in comments; found using a regex to find some easy instance of incorrect usage of a vs. an.
While automation was used to find these, every change was checked manually.
Changes in submodules get separate PRs:
* https://github.com/rust-lang/stdarch/pull/1201
* https://github.com/rust-lang/cargo/pull/9821
* https://github.com/rust-lang/miri/pull/1874
* https://github.com/rust-lang/rls/pull/1746
* https://github.com/rust-analyzer/rust-analyzer/pull/9984
_folks @ rust-analyzer are fast at merging…_
* https://github.com/rust-analyzer/rust-analyzer/pull/9985
* https://github.com/rust-analyzer/rust-analyzer/pull/9987
* https://github.com/rust-analyzer/rust-analyzer/pull/9989
_For `clippy`, I don’t know if the changes should better better be moved to a PR to the original repo._
<hr>
This has some overlap with #88226, but neither is a strict superset of the other.
If you want multiple commits, I can split it up; in that case, make sure to suggest a criterion for splitting.
|
2021-08-23 20:45:49 +02:00 |
|