Camille GILLOT
7e795bdf03
Replace _with_overflow instrinsics in LowerIntrinsics.
2023-02-18 21:45:10 +00:00
Camille GILLOT
39068eb1cc
Adapt cg_clif.
2023-02-18 21:35:02 +00:00
Camille GILLOT
f79db59953
Adapt cg_clif.
2023-02-18 21:35:02 +00:00
Camille GILLOT
c107e0e945
Fix codegen test.
2023-02-18 21:35:02 +00:00
Camille GILLOT
c1a0f8205c
Rename checked_binop_checks_overflow.
2023-02-18 21:35:02 +00:00
Camille GILLOT
a5769193d1
Remove special case in rvalue codegen.
2023-02-18 21:35:02 +00:00
Camille GILLOT
e9c73ea502
Make name more explicit.
2023-02-18 21:35:02 +00:00
Camille GILLOT
4f13aa7f46
Comment codegen optimization.
2023-02-18 21:35:02 +00:00
Camille Gillot
328696ca17
Update compiler/rustc_middle/src/mir/syntax.rs
...
Co-authored-by: Ralf Jung <post@ralfj.de >
2023-02-18 21:35:02 +00:00
Camille GILLOT
fb1f7f747a
Remove exception from MIR doc.
2023-02-18 21:35:02 +00:00
Camille GILLOT
085eaa7ee3
Adapt interpreter.
2023-02-18 21:35:02 +00:00
Camille GILLOT
7f36a3fcd7
Fix CTFE interpreter.
2023-02-18 21:35:02 +00:00
Camille GILLOT
4c93145b33
Remove outdated comment.
2023-02-18 21:35:02 +00:00
Camille GILLOT
7567f1f31d
Adapt interpreter.
2023-02-18 21:35:02 +00:00
Camille GILLOT
1480b1c524
Correct comment.
2023-02-18 21:35:02 +00:00
Camille GILLOT
d0cc00f758
Add comment.
2023-02-18 21:35:02 +00:00
Camille GILLOT
86dbcb5390
Add codegen test.
2023-02-18 21:35:02 +00:00
Camille GILLOT
e34caaf42d
Remove overflow checks from ConstProp.
2023-02-18 21:35:02 +00:00
Camille GILLOT
4bd2ebc58b
Do not codegen overflow check when not required.
2023-02-18 21:35:02 +00:00
Michael Goulet
3e57b20391
Add test
2023-02-18 20:36:39 +00:00
Michael Goulet
d42a3fbd69
Assume we can normalize trait default method RPITITs in param-env instead
2023-02-18 20:36:39 +00:00
bors
610dbcbf8e
Auto merge of #2784 - bryangarza:future-sizes-tests, r=RalfJung
...
Add tests for moving data across await point
This patch adds a few tests to assert the current behavior when passing data across an await point. This will help to test out an upcoming fix for the issue of arguments in async functions growing in size because of the generator upvar that is generated when we desugar the async function.
See https://github.com/rust-lang/rust/issues/62958
Also relates to https://github.com/rust-lang/rust/pull/107500
FYI `@oli-obk` `@pnkfelix`
2023-02-18 20:19:42 +00:00
Michael Goulet
c13d5f1aeb
Make sure test_type_match doesn't ICE with late-bound types
2023-02-18 20:16:51 +00:00
bors
4507fdaaa2
Auto merge of #106241 - Sp00ph:vec_deque_iter_methods, r=the8472
...
Implement more methods for `vec_deque::IntoIter`
This implements a couple `Iterator` methods on `vec_deque::IntoIter` (`(try_)fold`, `(try_)rfold` `advance_(back_)by`, `next_chunk`, `count` and `last`) to allow these to be more efficient than their default implementations, also allowing many other `Iterator` methods that use these under the hood to take advantage of these manual implementations. `vec::IntoIter` has similar implementations for many of these methods. This PR does not yet implement `TrustedRandomAccess` and friends, as I'm not very familiar with the required safety guarantees.
r? `@the8472` (since you also took over my last PR)
2023-02-18 20:12:35 +00:00
Michael Goulet
6f3706ea71
Pretty placeholders using their names
2023-02-18 19:49:40 +00:00
Michael Goulet
ec40b1a393
Collapse placeholders to root universe in canonicalizer if not preserving universes
2023-02-18 19:49:40 +00:00
Michael Goulet
f4a4a31479
Don't ICE on bound types in sized conditions
2023-02-18 19:49:40 +00:00
Michael Goulet
7f798c2b21
Emit the right types for vtable pointers when dropping dyn*
2023-02-18 19:47:34 +00:00
Michael Goulet
e82cc656c8
Make dyn* have the same scalar pair ABI as corresponding fat pointer
2023-02-18 19:47:34 +00:00
Michael Goulet
1f11d841b5
Add codegen test
2023-02-18 19:47:34 +00:00
Michael Goulet
df52e2037a
Use inttoptr to support usize as dyn* value, use pointercast to make sure pointers are compatible
2023-02-18 19:47:33 +00:00
Michael Goulet
6402c98621
Add consider_implied_clause
2023-02-18 19:45:02 +00:00
bors
6c7f09b77d
Auto merge of #2792 - RalfJung:rustup, r=RalfJung
...
Rustup
2023-02-18 19:38:24 +00:00
Ralf Jung
b76b26ee1a
fmt
2023-02-18 20:38:08 +01:00
Michael Goulet
82b52056fe
Check that built-in callable types validate their output type is Sized (in new solver)
2023-02-18 19:32:58 +00:00
Michael Goulet
be55ad53a1
Remove default trait RPITIT candidates
2023-02-18 19:25:07 +00:00
Ralf Jung
88e39ee314
make first component of dyn* use pointer layout+type, and adjust DynStar comment
2023-02-18 19:24:55 +00:00
blyxyas
89fde4abf2
Add placeholders, remove name suggesting
2023-02-18 20:05:30 +01:00
Ralf Jung
036929d86d
Merge from rustc
2023-02-18 19:28:51 +01:00
Ralf Jung
aed3b3f38c
Preparing for merge from rustc
2023-02-18 19:28:38 +01:00
bjorn3
cb12ad7397
Merge pull request #1359 from bjorn3/fix_llvm14-builtins-abi
...
Fix compiler-builtins 0.1.87 on Windows
2023-02-18 19:17:43 +01:00
y21
0610df9314
lint: don't suggest assume_init for uninhabited types
2023-02-18 19:05:44 +01:00
bjorn3
bb933d26dc
Fix abi for checked multiplication
2023-02-18 18:45:27 +01:00
Guillaume Gomez
1ae875f0a3
Improve code readability
2023-02-18 18:28:17 +01:00
Guillaume Gomez
3adc081254
Fix bad handling of primitive types
2023-02-18 18:28:17 +01:00
Guillaume Gomez
7d47d7cbaa
Add regression test for #107677
2023-02-18 18:28:17 +01:00
Guillaume Gomez
0541a0c8c3
Allow reexports of items with same name but different types to both appear
2023-02-18 18:13:23 +01:00
bors
53709aedba
Auto merge of #108209 - petrochenkov:doclean, r=notriddle
...
rustdoc: Cleanup doc link extraction
2023-02-18 16:41:55 +00:00
bjorn3
4991d08bc6
Remove incorrect check in lib_call
2023-02-18 16:40:21 +01:00
bjorn3
90a7ee6c70
Check output of checked_div in std_example
2023-02-18 16:40:06 +01:00