Jack Huey
f1767dbb42
Add ExtraConstraintInfo
2022-09-16 17:33:12 -04:00
Jack Huey
9929c0ac76
Add AscribeUserTypeProvePredicate
2022-09-16 17:20:11 -04:00
Jack Huey
ec17be2656
Add outlives_constraint to BlameConstraint
2022-09-16 17:08:35 -04:00
Jack Huey
67653292be
Add to_constraint_category to ObligationCause and SubregionOrigin
2022-09-16 17:00:11 -04:00
Jack Huey
6075877c89
Pass ConstraintCategory thorough a few more places
2022-09-16 16:44:18 -04:00
Jack Huey
a46376e247
Make QueryOutlivesConstraint contain a ConstraintCategory
2022-09-16 16:15:41 -04:00
bors
95a992a686
Auto merge of #97800 - pnkfelix:issue-97463-fix-aarch64-call-abi-does-not-zeroext, r=wesleywiser
...
Aarch64 call abi does not zeroext (and one cannot assume it does so)
Fix #97463
2022-09-16 20:08:05 +00:00
Charles Lew
a76dcd8b3b
Update unicode-rs
crates to Unicode 15
2022-09-17 01:55:56 +08:00
bors
4d4e51e428
Auto merge of #101902 - jackh726:revert-static-hrtb-error, r=nikomatsakis
...
Partially revert #101433
reverts #101433 to fix #101844
We should get this into the beta cut, since the ICE is getting hit quite a bit.
2022-09-16 16:46:14 +00:00
Rageking8
b248a6faf9
add help for invalid inline argument
2022-09-16 23:57:08 +08:00
Jack Huey
92b759f517
Revert "Better errors for implied static bound"
...
This reverts commit c75817b0a75d4b6b01ee10900ba5d01d4915e6a8.
2022-09-16 09:47:07 -04:00
Jack Huey
bba514b7b4
Revert "Use Predicate ConstraintCategory when normalizing"
...
This reverts commit aae37f87632dd74856d55c0cd45d2c192379c990.
2022-09-16 09:01:28 -04:00
bors
54f20bbb8a
Auto merge of #101895 - GuillaumeGomez:rollup-ured85q, r=GuillaumeGomez
...
Rollup of 7 pull requests
Successful merges:
- #101494 (rustdoc mobile: move notable traits to return type)
- #101813 (Extend CSS check to CSS variables)
- #101825 (Fix back RPIT changes)
- #101843 (Suggest associated const for incorrect use of let in traits)
- #101859 (Slight vertical formatting)
- #101868 (rustdoc: use more precise URLs for jump-to-definition links)
- #101877 (rustdoc: remove no-op CSS `.block { padding: 0 }`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-09-16 12:43:22 +00:00
Oli Scherer
dab1074b91
Only generate OpaqueCast
for opaque types
2022-09-16 11:37:50 +00:00
Oli Scherer
40e2de8c41
Revert "Revert "Rollup merge of #98582 - oli-obk:unconstrained_opaque_type, r=estebank""
...
This reverts commit 4a742a691e7dd2522bad68b86fe2fd5a199d5561.
2022-09-16 11:36:39 +00:00
Oli Scherer
5d664f7a8f
Merge two arguments into one
2022-09-16 11:36:09 +00:00
Rageking8
d433efa649
more simple formatting
2022-09-16 19:07:42 +08:00
Guillaume Gomez
9a72ded562
Rollup merge of #101859 - Rageking8:slight-vertical-formatting, r=compiler-errors
...
Slight vertical formatting
2022-09-16 13:07:18 +02:00
Guillaume Gomez
72d9e0821e
Rollup merge of #101843 - chenyukang:fix-101797, r=oli-obk
...
Suggest associated const for incorrect use of let in traits
Fixes #101797
2022-09-16 13:07:18 +02:00
Guillaume Gomez
8ba133fa7b
Rollup merge of #101825 - spastorino:fix-rpit-changes, r=oli-obk
...
Fix back RPIT changes
r? `@oli-obk`
cc `@compiler-errors`
2022-09-16 13:07:17 +02:00
bors
2d1aa57d1e
Auto merge of #101860 - oli-obk:information_throwing, r=compiler-errors
...
Don't throw away information just to recompute it again
also allows making some functions private.
2022-09-16 09:57:32 +00:00
yukang
484b612909
use subdiagnostic for logical negation, bitwise not
2022-09-16 14:41:42 +08:00
Dylan DPC
28b4c62382
Rollup merge of #101787 - compiler-errors:cache-rpitit, r=petrochenkov
...
cache `collect_trait_impl_trait_tys`
Micro-optimization for RPITITs
2022-09-16 11:17:01 +05:30
Dylan DPC
edf9e5eb63
Rollup merge of #101753 - oli-obk:tait_closure_args, r=compiler-errors
...
Prefer explict closure sig types over expected ones
fixes #100800
Previously we only checked that given closure arguments are equal to expected closure arguments, but now we choose the given closure arguments for the signature that is used when type checking the closure body, and keep the other signature for the type of the closure as seen outside of it.
2022-09-16 11:17:01 +05:30
Dylan DPC
61126d3611
Rollup merge of #101738 - dpaoliello:linkname, r=petrochenkov
...
Fix `#[link kind="raw-dylib"]` to respect `#[link_name]`
Issue Details:
When using `#[link kind="raw-dylib"]` (#58713 ), the Rust compiler ignored any `#[link_name]` attributes when generating the import library and so the resulting binary would fail to link due to missing symbols.
Fix Details:
Use the name from `#[link_name]` if present when generating the `raw-dylib` import library, otherwise default back to the actual symbol name.
2022-09-16 11:17:00 +05:30
Takayuki Maeda
7510a1b15e
remove an unused struct field
2022-09-16 14:34:05 +09:00
Deadbeef
5ead742e18
remap ParamEnv with obligation
2022-09-16 12:08:46 +08:00
Deadbeef
08aeb1aa9b
unconditionally remap to nonconst in borrowck
2022-09-16 12:08:46 +08:00
Deadbeef
f8813cf10e
do const trait method bounds check later in rustc_const_eval
2022-09-16 11:48:43 +08:00
Deadbeef
77b0c47b82
Normalize param_env for trait assoc consts in typeck
2022-09-16 11:48:43 +08:00
Deadbeef
07608bd60e
fix const_trait
unstable message
2022-09-16 11:48:43 +08:00
Deadbeef
4231661789
Do not require const predicates to hold when checking if a projection type is wf
2022-09-16 11:48:42 +08:00
Deadbeef
81b1810cd7
Require #[const_trait]
for const
impl
s
2022-09-16 11:48:42 +08:00
Takayuki Maeda
527292a1a6
do not suggest a placeholder to const and static without a type
2022-09-16 11:24:14 +09:00
bors
cf9ed0dd58
Auto merge of #101831 - compiler-errors:issue-75899, r=jackh726
...
Normalize struct field types in `confirm_builtin_unsize_candidate`
Fixes #75899
---
edited to move the normalization into `confirm_builtin_unsize_candidate` instead of the coercion code.
2022-09-15 21:06:36 +00:00
b-naber
d77248e6d2
nits
2022-09-15 22:27:41 +02:00
est31
173eb6f407
Only enable the let_else feature on bootstrap
...
On later stages, the feature is already stable.
Result of running:
rg -l "feature.let_else" compiler/ src/librustdoc/ library/ | xargs sed -s -i "s#\\[feature.let_else#\\[cfg_attr\\(bootstrap, feature\\(let_else\\)#"
2022-09-15 21:06:45 +02:00
est31
5633e863bd
Remove feature gate from let else suggestion
...
The let else suggestion added by 0d92752b8aac53e033541d04fc7d9677d8bca227
does not need a feature gate any more.
2022-09-15 21:06:45 +02:00
est31
bca3cf7e86
Stabilize the let_else feature
2022-09-15 21:06:45 +02:00
bors
df34db9b03
Auto merge of #101858 - oli-obk:lift_derive, r=lcnr
...
derive various impls instead of hand-rolling them
r? `@lcnr`
This may not have been what you asked for in 964b97e845 (r84051418)
but I got carried away while following the compiler team meeting today.
2022-09-15 18:14:29 +00:00
yukang
4bf7d2ca91
tweak suggestion
2022-09-16 01:09:26 +08:00
Camille GILLOT
c9c6c507b7
Do not fetch HIR node when iterating to find lint.
2022-09-15 18:40:03 +02:00
Oli Scherer
8aed75bee0
Don't throw away information just to recompute it again
2022-09-15 16:23:10 +00:00
Rageking8
6d7beafc87
slight vertical formatting
2022-09-15 23:51:43 +08:00
Oli Scherer
c6fcb1c6a3
Merge all TypeVisitable for &List<T>
impls into one generic one
2022-09-15 15:33:46 +00:00
bors
35a0407814
Auto merge of #101410 - dingxiangfei2009:fix-let-else-scoping, r=jackh726
...
Reorder nesting scopes and declare bindings without drop schedule
Fix #99228
Fix #99975
Storages are previously not declared before entering the `else` block of a `let .. else` statement. However, when breaking out of the pattern matching into the `else` block, those storages are recorded as scheduled for drops. This is not expected.
This MR fixes this issue by not scheduling the drops for those storages.
cc `@est31`
2022-09-15 15:19:40 +00:00
Oli Scherer
9d9306828c
Replace more manual TypeFoldable and TypeVisitable impls with derives
2022-09-15 15:05:03 +00:00
lcnr
5669ce1a28
change FnMutDelegate
to trait objects
2022-09-15 16:59:58 +02:00
Oli Scherer
a5ab8da1e2
derive TypeVisitable and TypeFoldable for mir types
2022-09-15 14:42:43 +00:00
yukang
f43562b95b
more tweak on diagnostic messages
2022-09-15 22:39:16 +08:00