Michael Goulet
7a22c7e6f4
Rollup merge of #113467 - nbdd0121:unwind, r=compiler-errors
...
Fix comment of `fn_can_unwind`
Reopen of #113213
2023-07-07 22:12:19 -07:00
Michael Goulet
083b2d409c
Rollup merge of #113466 - weihanglo:update-cargo, r=weihanglo
...
Update cargo
1 commits in 5b377cece0e0dd0af686cf53ce4637d5d85c2a10..45782b6b8afd1da042d45c2daeec9c0744f72cc7
2023-06-30 00:01:00 +0000 to 2023-07-05 16:54:51 +0000
- docs(ref): Provide guidance on version requirements (rust-lang/cargo#12323 )
r? ``@ghost``
2023-07-07 22:12:18 -07:00
Michael Goulet
cf1f8c55d5
Rollup merge of #113456 - spastorino:new-rpitit-31, r=compiler-errors
...
Avoid calling report_forbidden_specialization for RPITITs
Fixes #113438
r? ``@compiler-errors``
2023-07-07 22:12:18 -07:00
Michael Goulet
37a05d8054
Rollup merge of #113453 - spastorino:new-rpitit-30, r=compiler-errors
...
Remove unused from_method from rustc_on_unimplemented
Fixes #113439
`on_unimplemented_note` was calling `item_name` for RPITITs and that produced ICEs. I've added a regression test for that but also have removed `from_method` symbol entirely because it wasn't even used and by doing that the `item_name` call was also removed.
r? ``@compiler-errors``
2023-07-07 22:12:17 -07:00
Michael Goulet
2b78119671
Rollup merge of #113441 - RalfJung:assign-no-overlap, r=oli-obk
...
miri: check that assignments do not self-overlap
r? `````@oli-obk`````
2023-07-07 22:12:17 -07:00
Michael Goulet
751dcaceb4
Rollup merge of #113427 - compiler-errors:no-variances-of-rpitit-gat, r=spastorino
...
Remove `variances_of` on RPITIT GATs, remove its one use-case
It doesn't make sense to implement variances on a GAT anyways, since we don't relate GATs with variance:
85bf07972a/compiler/rustc_middle/src/ty/relate.rs (L569-L579)
r? ``@spastorino``
2023-07-07 22:12:16 -07:00
Michael Goulet
a13b57e636
Rollup merge of #113426 - compiler-errors:rtn-in-impl-header, r=fee1-dead
...
Don't ICE in `resolve_bound_vars` when associated return-type bounds are in bad positions
I couldn't find a better way to avoid hitting this ICE, so let's just delay it.
The problem is that we really shouldn't even be *trying* to visit associated type bounds in `resolve_bound_vars` when they show up in impl headers, but we don't have enough context to do this.
Fixes #113423
2023-07-07 22:12:16 -07:00
Michael Goulet
77a6c7f3a1
Rollup merge of #113413 - Nilstrieb:this-needs-some-triaging, r=albertlarsan68
...
Add needs-triage to all new issues
Closes #113261
The label: https://github.com/rust-lang/rust/labels/needs-triage
2023-07-07 22:12:15 -07:00
Michael Goulet
a071044562
Eagerly resolve vars in predicate during coercion loop
2023-07-08 03:41:22 +00:00
Michael Goulet
77c3cf1bfd
Implement selection for unsize for better coercion behavior
2023-07-08 03:41:22 +00:00
bors
d4096e0412
Auto merge of #112652 - oli-obk:tait_only_in_sig, r=compiler-errors
...
Require TAITs to be mentioned in the signatures of functions that register hidden types for them
r? `@lcnr` `@compiler-errors`
This implements the lang team decision from [the TAIT design meeting](https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/design.20meeting.202023-05-31.20TAITs/near/362518164 ).
2023-07-08 03:22:54 +00:00
Yuki Okushi
a088e7961c
Remove default_free_fn
feature
...
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-07-08 12:10:12 +09:00
bors
eee6b31c0c
Auto merge of #113455 - Alexendoo:clippy-tests, r=Nilstrieb
...
Fix failing clippy tests
Comments out the C string literals due to https://github.com/rust-lang/rust/pull/113334
Fixes https://github.com/rust-lang/rust-clippy/issues/11121
Opened against `rust-lang/rust` in order to unblock https://github.com/rust-lang/rust/pull/113450
r? `@Nilstrieb`
2023-07-08 00:01:19 +00:00
Weihang Lo
b9a4cfe05e
Update cargo
2023-07-07 23:17:40 +01:00
Michael Goulet
b7191d8388
Don't ICE in resolve_bound_vars when associated return-type bounds are in bad positions
2023-07-07 19:43:23 +00:00
Santiago Pastorino
24326ee508
Avoid calling report_forbidden_specialization for RPITITs
2023-07-07 16:24:08 -03:00
Santiago Pastorino
6d80879ab9
Add regression test for RPITITs
2023-07-07 15:58:25 -03:00
Santiago Pastorino
3aec8d4227
Remove unused from_method symbol
2023-07-07 15:57:30 -03:00
Alex Macleod
cedcd39cfd
Fix failing clippy tests
...
Comments out the C string literals due to https://github.com/rust-lang/rust/pull/113334
Fixes https://github.com/rust-lang/rust-clippy/issues/11121
2023-07-07 18:19:08 +00:00
Santiago Pastorino
9ca51b92d4
Add Float ty to SMIR
2023-07-07 13:47:55 -03:00
Santiago Pastorino
42eccffce3
Add Uint ty to SMIR
2023-07-07 13:47:33 -03:00
Santiago Pastorino
458ead41d6
Add Int ty to SMIR
2023-07-07 13:47:09 -03:00
Santiago Pastorino
73e816e37c
Add Char ty to SMIR
2023-07-07 13:46:40 -03:00
Santiago Pastorino
61adcaf87b
Add rustc_ty_to_ty basic tests
2023-07-07 13:45:54 -03:00
Nilstrieb
2beabbbf6f
Rename adjustment::PointerCast
and variants using it to PointerCoercion
...
It makes it sound like the `ExprKind` and `Rvalue` are supposed to represent all pointer related
casts, when in reality their just used to share a some enum variants. Make it clear there these
are only coercion to make it clear why only some pointer related "casts" are in the enum.
2023-07-07 18:17:16 +02:00
许杰友 Jieyou Xu (Joe)
b5208b3611
Don't suggest impl Trait
in path position
2023-07-08 00:04:33 +08:00
Michael Goulet
f55b046931
Normalize opaques during codegen in new solver
2023-07-07 16:02:25 +00:00
Michael Goulet
713f9bb5d1
Mark more hanging new-solver tests
2023-07-07 16:02:24 +00:00
Michael Goulet
010ee7b0e0
Remove an AFIT test that isn't an AFIT test
2023-07-07 16:02:24 +00:00
bors
cb80ff132a
Auto merge of #113245 - lukas-code:unsizing-sanity-check, r=the8472
...
sanity check field offsets in unsizeable structs
As promised in https://github.com/rust-lang/rust/pull/112062#issuecomment-1567494994 , this PR extends the layout sanity checks to ensure that structs fields don't move around when unsizing and prevent issues like https://github.com/rust-lang/rust/issues/112048 in the future. Like most other layout sanity checks, this only runs on compilers with debug assertions enabled.
Here is how it looks when it fails:
```text
error: internal compiler error: compiler/rustc_ty_utils/src/layout.rs:533:21: unsizing GcNode<std::boxed::Box<i32>> changed field order!
Layout { size: Size(32 bytes), align: AbiAndPrefAlign { abi: Align(8 bytes), pref: Align(8 bytes) }, abi: Aggregate { sized: true }, fields: Arbitrary { offsets: [Size(0 bytes), Size(8 bytes), Size(24 bytes)], memory_index: [0, 1, 2] }, largest_niche: Some(Niche { offset: Size(24 bytes), value: Pointer(AddressSpace(0)), valid_range: 1..=18446744073709551615 }), variants: Single { index: 0 } }
Layout { size: Size(24 bytes), align: AbiAndPrefAlign { abi: Align(8 bytes), pref: Align(8 bytes) }, abi: Aggregate { sized: false }, fields: Arbitrary { offsets: [Size(16 bytes), Size(0 bytes), Size(24 bytes)], memory_index: [1, 0, 2] }, largest_niche: None, variants: Single { index: 0 } }
```
r? `@the8472`
2023-07-07 15:42:29 +00:00
Ralf Jung
7a83ef82da
miri: check that assignments do not self-overlap
2023-07-07 16:54:44 +02:00
bors
2323ecbd4b
Auto merge of #2969 - oli-obk:run-dep, r=RalfJung
...
Stop parsing ui_test annotations in `run-dep` mode
fixes #2967
2023-07-07 14:05:25 +00:00
Oli Scherer
c6f5b5f557
MIRIFLAGS are already passed in the ./miri
wrapper
2023-07-07 13:42:38 +00:00
Oli Scherer
48fe0dfe48
Remove a now-useless flag
2023-07-07 13:41:32 +00:00
Oli Scherer
813b56b5ab
Silence all the boilerplate around ./miri run
and ./miri run-dep
2023-07-07 13:41:06 +00:00
Oli Scherer
c3004a7b65
Treat closures as part of their parent
2023-07-07 13:17:00 +00:00
Oli Scherer
b549ba1bd4
Fix one layer of closures not being able to constrain opaque types
2023-07-07 13:17:00 +00:00
Oli Scherer
ef52dc7bb8
Add regression test
2023-07-07 13:17:00 +00:00
Oli Scherer
dcacfe7395
Only match on the DefKind
once.
2023-07-07 13:17:00 +00:00
Oli Scherer
18f3d86588
Collect nested items immediately instead of collecting them into an intermediate Vec
first
2023-07-07 13:17:00 +00:00
Oli Scherer
b07d27c81e
Move some logic into a method on OpaqueTypeCollector
2023-07-07 13:17:00 +00:00
Oli Scherer
af9dcf70be
Remove one layer of nested matching on the same thing
2023-07-07 13:17:00 +00:00
Oli Scherer
a3ca139def
liar liar find_taits_declared_in_body on fire
2023-07-07 13:17:00 +00:00
Oli Scherer
2f89c963d3
We don't need to track binders if we aren't normalizing
2023-07-07 13:17:00 +00:00
Oli Scherer
907f97e411
Remove normalization from opaque_types_defined_by
2023-07-07 13:17:00 +00:00
bors
fd68a6ded9
Auto merge of #113437 - workingjubilee:sync-simd-2023-july-07, r=workingjubilee
...
Sync portable-simd to 2023 July 07
r? `@ghost`
2023-07-07 13:15:11 +00:00
Oli Scherer
4c99872efe
Require TAITs to be mentioned in the signatures of functions that register hidden types for them
2023-07-07 13:13:18 +00:00
Jubilee Young
37fea342ea
Use new std::simd fn in miri tests
...
Old fn were slightly divergent.
2023-07-07 04:33:37 -07:00
Jubilee Young
8765f91727
Sync portable-simd to 2023 July 07
...
Sync up to rust-lang/portable-simd@7c7dbe0c50
2023-07-07 04:07:00 -07:00
Jubilee Young
7c7dbe0c50
Remove unused import
2023-07-07 04:03:54 -07:00