summary refs log tree commit diff
path: root/compiler
AgeCommit message (Collapse)AuthorLines
2022-09-19fix RPIT ICE for implicit HRTB when missing dynSantiago Pastorino-2/+1
2022-09-02CTFE: more informative error message on ReadPointerAsBytes troubleRalf Jung-37/+26
2022-08-31Auto merge of #101050 - pnkfelix:revert-mir-inline-policy-for-beta-1.64, ↵bors-10/+2
r=compiler-errors revert mir inlining policy for beta-1.64 revert mir inlining policy for beta-1.64 Fix #101004
2022-08-30Auto merge of #99860 - oli-obk:revert_97346, r=pnkfelixbors-10/+22
Revert "Rollup merge of #97346 - JohnTitor:remove-back-compat-hacks, … …r=oli-obk" This reverts commit c703d11dccb4a895c7aead3b2fcd8cea8c483184, reversing changes made to 64eb9ab869bc3f9ef3645302fbf22e706eea16cf. it didn't apply cleanly, so now it works the same for RPIT and for TAIT instead of just working for RPIT, but we should keep those in sync anyway. It also exposed a TAIT bug (see the feature gated test that now ICEs). r? `@pnkfelix` fixes #99536
2022-08-30Rollup merge of #100155 - compiler-errors:issue-100154, r=jackh726Dylan DPC-7/+7
Use `node_type_opt` to skip over generics that were not expected Fixes #100154
2022-08-30Auto merge of #99893 - compiler-errors:issue-99387, r=davidtwcobors-18/+36
Delay formatting trimmed path until lint/error is emitted Fixes #99387 r? `@davidtwco`
2022-08-26revert mir inlining policy for beta-1.64 to resolve issue #101004.Felix S. Klock II-10/+2
2022-08-15Revert let_chains stabilizationNilstrieb-46/+72
This reverts commit 326646074940222d602f3683d0559088690830f4. It was discovered that they are not implemented correctly, which does not make them ready for stabilization.
2022-08-11Add docs for get_remapped_def_idSantiago Pastorino-0/+13
2022-08-11Iterate def_ids map backwards to try first the latest mappings (it's a stack)Santiago Pastorino-1/+1
2022-08-05Auto merge of #95977 - FabianWolff:issue-92790-dead-tuple, r=estebankbors-27/+142
Warn about dead tuple struct fields Continuation of #92972. Fixes #92790. The language team has already commented on this in https://github.com/rust-lang/rust/pull/92972#issuecomment-1021511970; I have incorporated their requests here. Specifically, there is now a new allow-by-default `unused_tuple_struct_fields` lint (name bikesheddable), and fields of unit type are ignored (https://github.com/rust-lang/rust/pull/92972#issuecomment-1021815408), so error messages look like this: ``` error: field is never read: `1` --> $DIR/tuple-struct-field.rs:6:21 | LL | struct Wrapper(i32, [u8; LEN], String); | ^^^^^^^^^ | help: change the field to unit type to suppress this warning while preserving the field numbering | LL | struct Wrapper(i32, (), String); | ~~ ``` r? `@joshtriplett`
2022-08-05Auto merge of #99867 - spastorino:refactor-remap-lifetimes, r=nikomatsakisbors-296/+581
Split create_def and lowering of lifetimes for opaque types and bare async fns r? `@cjgillot` This work is kind of half-way, but I think it could be merged anyway. I think we should be able to remove all the vacant arms in `new_named_lifetime_with_res`, if I'm not wrong that requires visiting more nodes. We can do that as a follow up. In follow-up PRs, besides the thing mentioned previously, I'll be trying to remove `LifetimeCaptureContext`, `captured_lifetimes` as a global data structure, global `binders_to_ignore` and all their friends :). Also try to remap in a more general way based on def-ids.
2022-08-04Rollup merge of #100148 - durin42:llvm-16-pointertype, r=nikicMatthias Krüger-1/+6
RustWrapper: update for TypedPointerType in LLVM This is a result of https://reviews.llvm.org/D130592. r? `@nikic`
2022-08-04Rollup merge of #100095 - jackh726:early-binder, r=lcnrMatthias Krüger-68/+94
More EarlyBinder cleanups Each commit is independent r? types
2022-08-04Rollup merge of #100093 - wcampbell0x2a:unused-parens-for-match-arms, ↵Matthias Krüger-3/+17
r=petrochenkov Enable unused_parens for match arms Fixes: https://github.com/rust-lang/rust/issues/92751 Currently I can't get the `stderr` to work with `./x.py test`, but this should fix the issue. Help would be appreciated!
2022-08-04Rollup merge of #100058 - ↵Matthias Krüger-8/+67
TaKO8Ki:suggest-positional-formatting-argument-instead-of-format-args-capture, r=estebank Suggest a positional formatting argument instead of a captured argument This patch fixes a part of #96999. fixes #98241 fixes #97311 r? `@estebank`
2022-08-04Rollup merge of #98796 - compiler-errors:no-semi-if-comma, r=estebankMatthias Krüger-1/+2
Do not exclusively suggest `;` when `,` is also a choice Fixes #96791
2022-08-04Fix typoSantiago Pastorino-1/+1
2022-08-04Improve opt_local_def_id docsSantiago Pastorino-7/+9
2022-08-04Improve record_def_id_remap docsSantiago Pastorino-1/+4
2022-08-04Do not collect lifetimes with Infer resolutionSantiago Pastorino-14/+21
2022-08-04RustWrapper: update for TypedPointerType in LLVMAugie Fackler-1/+6
This is a result of https://reviews.llvm.org/D130592.
2022-08-04Use span_bug instead of panicSantiago Pastorino-4/+8
2022-08-04Add docs to generics_def_id_mapSantiago Pastorino-1/+4
2022-08-04Add docs to record_elided_anchorSantiago Pastorino-0/+3
2022-08-04Extract record_elided_anchorSantiago Pastorino-18/+13
2022-08-04Move new_remapping inside with_hir_id_ownerSantiago Pastorino-1/+2
2022-08-04Add documentation for create_lifetime_defsSantiago Pastorino-0/+4
2022-08-04Add more debug callsSantiago Pastorino-4/+5
2022-08-04Add documentation about lifetime argsSantiago Pastorino-0/+2
2022-08-04Add documentation about lifetime_defsSantiago Pastorino-0/+3
2022-08-04Move hir_bounds after lifetime_defsSantiago Pastorino-5/+4
2022-08-04captures -> collected_lifetimesSantiago Pastorino-9/+10
2022-08-04Move lifetimes_in_bounds call to outside with_hir_id_owner block in ↵Santiago Pastorino-5/+14
lower_async_fn_ret_ty
2022-08-04Move lifetimes_in_bounds call to outside with_hir_id_owner block in ↵Santiago Pastorino-18/+23
lower_opaque_impl_trait
2022-08-04Document what collected_lifetimes vec containtsSantiago Pastorino-0/+3
2022-08-04Document lower_opaque_impl_traitSantiago Pastorino-0/+29
2022-08-04with_lifetime_binder is now lower_lifetime_binder and doesn't need a closureSantiago Pastorino-55/+52
2022-08-04Add comments on with_remappingSantiago Pastorino-0/+10
2022-08-04Document opt_local_def_idSantiago Pastorino-0/+11
2022-08-04Document generics_def_id_map field and record/get methods on itSantiago Pastorino-1/+8
2022-08-04Add comments about lifetime collect and create lifetime defs for RPITsSantiago Pastorino-0/+8
2022-08-04Avoid explicitly handling res when is not neededSantiago Pastorino-31/+46
2022-08-04create_and_capture_lifetime_defs -> create_lifetime_defsSantiago Pastorino-3/+3
2022-08-04Remove captured_lifetimes and LifetimeCaptureContext and make ↵Santiago Pastorino-82/+43
create_lifetime_defs return the captures
2022-08-04Implement def_id based remappingSantiago Pastorino-107/+140
2022-08-04Remove local_def_id from captured_lifetimesSantiago Pastorino-22/+17
2022-08-04Capture things as Lifetime object to simplify thingsSantiago Pastorino-49/+59
2022-08-04Create new_mapping local structure and avoid checking def_ids on capturesSantiago Pastorino-34/+48
2022-08-04Remove binders_to_ignore from LifetimeCaptureContextSantiago Pastorino-16/+3