]> git.lizzy.rs Git - rust.git/log
rust.git
23 months agoRustWrapper: update for TypedPointerType in LLVM
Augie Fackler [Thu, 4 Aug 2022 15:31:01 +0000 (11:31 -0400)]
RustWrapper: update for TypedPointerType in LLVM

This is a result of https://reviews.llvm.org/D130592.

23 months agoUse span_bug instead of panic
Santiago Pastorino [Thu, 4 Aug 2022 15:07:03 +0000 (12:07 -0300)]
Use span_bug instead of panic

23 months agoAdd docs to generics_def_id_map
Santiago Pastorino [Thu, 4 Aug 2022 13:14:16 +0000 (10:14 -0300)]
Add docs to generics_def_id_map

23 months agoAdd docs to record_elided_anchor
Santiago Pastorino [Thu, 4 Aug 2022 13:12:56 +0000 (10:12 -0300)]
Add docs to record_elided_anchor

23 months agoExtract record_elided_anchor
Santiago Pastorino [Thu, 4 Aug 2022 13:10:04 +0000 (10:10 -0300)]
Extract record_elided_anchor

23 months agoMove new_remapping inside with_hir_id_owner
Santiago Pastorino [Thu, 4 Aug 2022 13:05:04 +0000 (10:05 -0300)]
Move new_remapping inside with_hir_id_owner

23 months agoAdd documentation for create_lifetime_defs
Santiago Pastorino [Thu, 4 Aug 2022 13:02:52 +0000 (10:02 -0300)]
Add documentation for create_lifetime_defs

23 months agoAdd more debug calls
Santiago Pastorino [Thu, 4 Aug 2022 12:58:37 +0000 (09:58 -0300)]
Add more debug calls

23 months agoAdd documentation about lifetime args
Santiago Pastorino [Thu, 4 Aug 2022 12:56:12 +0000 (09:56 -0300)]
Add documentation about lifetime args

23 months agoAdd documentation about lifetime_defs
Santiago Pastorino [Thu, 4 Aug 2022 12:52:15 +0000 (09:52 -0300)]
Add documentation about lifetime_defs

23 months agoMove hir_bounds after lifetime_defs
Santiago Pastorino [Thu, 4 Aug 2022 12:44:18 +0000 (09:44 -0300)]
Move hir_bounds after lifetime_defs

23 months agocaptures -> collected_lifetimes
Santiago Pastorino [Thu, 4 Aug 2022 02:26:10 +0000 (23:26 -0300)]
captures -> collected_lifetimes

23 months agoMove lifetimes_in_bounds call to outside with_hir_id_owner block in lower_async_fn_ret_ty
Santiago Pastorino [Thu, 4 Aug 2022 02:24:13 +0000 (23:24 -0300)]
Move lifetimes_in_bounds call to outside with_hir_id_owner block in lower_async_fn_ret_ty

23 months agoMove lifetimes_in_bounds call to outside with_hir_id_owner block in lower_opaque_impl...
Santiago Pastorino [Thu, 4 Aug 2022 02:16:03 +0000 (23:16 -0300)]
Move lifetimes_in_bounds call to outside with_hir_id_owner block in lower_opaque_impl_trait

23 months agoDocument what collected_lifetimes vec containts
Santiago Pastorino [Wed, 3 Aug 2022 22:40:54 +0000 (19:40 -0300)]
Document what collected_lifetimes vec containts

23 months agoDocument lower_opaque_impl_trait
Santiago Pastorino [Wed, 3 Aug 2022 22:34:00 +0000 (19:34 -0300)]
Document lower_opaque_impl_trait

23 months agowith_lifetime_binder is now lower_lifetime_binder and doesn't need a closure
Santiago Pastorino [Wed, 3 Aug 2022 22:09:14 +0000 (19:09 -0300)]
with_lifetime_binder is now lower_lifetime_binder and doesn't need a closure

23 months agoAdd comments on with_remapping
Santiago Pastorino [Wed, 3 Aug 2022 20:32:24 +0000 (17:32 -0300)]
Add comments on with_remapping

23 months agoDocument opt_local_def_id
Santiago Pastorino [Wed, 3 Aug 2022 20:26:38 +0000 (17:26 -0300)]
Document opt_local_def_id

23 months agoDocument generics_def_id_map field and record/get methods on it
Santiago Pastorino [Wed, 3 Aug 2022 20:16:33 +0000 (17:16 -0300)]
Document generics_def_id_map field and record/get methods on it

23 months agoAdd comments about lifetime collect and create lifetime defs for RPITs
Santiago Pastorino [Wed, 3 Aug 2022 20:06:30 +0000 (17:06 -0300)]
Add comments about lifetime collect and create lifetime defs for RPITs

23 months agoAvoid explicitly handling res when is not needed
Santiago Pastorino [Wed, 3 Aug 2022 02:06:38 +0000 (23:06 -0300)]
Avoid explicitly handling res when is not needed

23 months agocreate_and_capture_lifetime_defs -> create_lifetime_defs
Santiago Pastorino [Tue, 2 Aug 2022 23:15:15 +0000 (20:15 -0300)]
create_and_capture_lifetime_defs -> create_lifetime_defs

23 months agoRemove captured_lifetimes and LifetimeCaptureContext and make create_lifetime_defs...
Santiago Pastorino [Tue, 2 Aug 2022 23:14:24 +0000 (20:14 -0300)]
Remove captured_lifetimes and LifetimeCaptureContext and make create_lifetime_defs return the captures

23 months agoImplement def_id based remapping
Santiago Pastorino [Tue, 2 Aug 2022 23:01:40 +0000 (20:01 -0300)]
Implement def_id based remapping

23 months agoRemove local_def_id from captured_lifetimes
Santiago Pastorino [Wed, 3 Aug 2022 02:20:15 +0000 (23:20 -0300)]
Remove local_def_id from captured_lifetimes

23 months agoCapture things as Lifetime object to simplify things
Santiago Pastorino [Tue, 2 Aug 2022 21:04:37 +0000 (18:04 -0300)]
Capture things as Lifetime object to simplify things

23 months agoCreate new_mapping local structure and avoid checking def_ids on captures
Santiago Pastorino [Tue, 2 Aug 2022 20:17:34 +0000 (17:17 -0300)]
Create new_mapping local structure and avoid checking def_ids on captures

23 months agoRemove binders_to_ignore from LifetimeCaptureContext
Santiago Pastorino [Tue, 2 Aug 2022 18:46:03 +0000 (15:46 -0300)]
Remove binders_to_ignore from LifetimeCaptureContext

23 months agoNo need to store parent_def_id in LifetimeCaptureContext
Santiago Pastorino [Tue, 2 Aug 2022 18:34:32 +0000 (15:34 -0300)]
No need to store parent_def_id in LifetimeCaptureContext

23 months agoNo need to check binders to ignore on new_named_lifetime_with_res's LifetimeRes:...
Santiago Pastorino [Tue, 2 Aug 2022 18:27:52 +0000 (15:27 -0300)]
No need to check binders to ignore on new_named_lifetime_with_res's LifetimeRes::Fresh

23 months agoNo need to check binders to ignore on new_named_lifetime_with_res's LifetimeRes:...
Santiago Pastorino [Tue, 2 Aug 2022 18:27:46 +0000 (15:27 -0300)]
No need to check binders to ignore on new_named_lifetime_with_res's LifetimeRes::Param

23 months agonew_named_lifetime_with_res's LifetimeRes::Fresh should have created def_id already
Santiago Pastorino [Tue, 2 Aug 2022 18:14:53 +0000 (15:14 -0300)]
new_named_lifetime_with_res's LifetimeRes::Fresh should have created def_id already

23 months agonew_named_lifetime_with_res's LifetimeRes::Param should have created def_id already
Santiago Pastorino [Tue, 2 Aug 2022 18:14:42 +0000 (15:14 -0300)]
new_named_lifetime_with_res's LifetimeRes::Param should have created def_id already

23 months agoFail if LifetimeRes is Infer when creating def ids for lifetimes copies
Santiago Pastorino [Tue, 2 Aug 2022 14:39:40 +0000 (11:39 -0300)]
Fail if LifetimeRes is Infer when creating def ids for lifetimes copies

23 months agoRecord RPITs elided lifetimes in Rptr Tys
Santiago Pastorino [Tue, 2 Aug 2022 18:06:12 +0000 (15:06 -0300)]
Record RPITs elided lifetimes in Rptr Tys

23 months agoRecord RPITs elided lifetimes in path segments
Santiago Pastorino [Tue, 2 Aug 2022 14:03:29 +0000 (11:03 -0300)]
Record RPITs elided lifetimes in path segments

23 months agoRestructure visit_ty in a more clear way
Santiago Pastorino [Tue, 2 Aug 2022 14:00:34 +0000 (11:00 -0300)]
Restructure visit_ty in a more clear way

23 months agoSkip lifetimes in binders when visiting
Santiago Pastorino [Mon, 1 Aug 2022 19:03:49 +0000 (16:03 -0300)]
Skip lifetimes in binders when visiting

23 months agoMove LifetimeCollectVisitor to rustc_ast_lowering
Santiago Pastorino [Sat, 30 Jul 2022 01:38:07 +0000 (22:38 -0300)]
Move LifetimeCollectVisitor to rustc_ast_lowering

23 months agoCompletely remove captures flag
Santiago Pastorino [Tue, 26 Jul 2022 18:50:25 +0000 (15:50 -0300)]
Completely remove captures flag

23 months agoDo not execute captures code when lowering lifetimes as GenericArg
Santiago Pastorino [Tue, 26 Jul 2022 18:30:58 +0000 (15:30 -0300)]
Do not execute captures code when lowering lifetimes as GenericArg

23 months agoDo not execute captures code for async fns
Santiago Pastorino [Tue, 26 Jul 2022 18:23:26 +0000 (15:23 -0300)]
Do not execute captures code for async fns

23 months agoThere's no need to check binders_to_ignore using the old code anymore
Santiago Pastorino [Tue, 26 Jul 2022 18:11:44 +0000 (15:11 -0300)]
There's no need to check binders_to_ignore using the old code anymore

23 months agoExplicitly gather lifetimes and definitions for bare async fns
Santiago Pastorino [Tue, 26 Jul 2022 18:11:15 +0000 (15:11 -0300)]
Explicitly gather lifetimes and definitions for bare async fns

23 months agoExtract create_and_capture_lifetime_defs function
Santiago Pastorino [Tue, 26 Jul 2022 17:49:24 +0000 (14:49 -0300)]
Extract create_and_capture_lifetime_defs function

23 months agoRemove NEW_COLLECT_LIFETIMES env var
Santiago Pastorino [Tue, 26 Jul 2022 14:56:26 +0000 (11:56 -0300)]
Remove NEW_COLLECT_LIFETIMES env var

23 months agoAdd debug! calls
Santiago Pastorino [Tue, 26 Jul 2022 14:39:06 +0000 (11:39 -0300)]
Add debug! calls

23 months agoExplicitly gather lifetimes and definitions in RPIT
Santiago Pastorino [Wed, 20 Jul 2022 19:30:37 +0000 (16:30 -0300)]
Explicitly gather lifetimes and definitions in RPIT

23 months agoUnroll while_capturing_lifetimes into lower_opaque_impl_trait
Santiago Pastorino [Wed, 20 Jul 2022 01:16:32 +0000 (22:16 -0300)]
Unroll while_capturing_lifetimes into lower_opaque_impl_trait

23 months agoAdd captures flag to capture or not while lowering
Santiago Pastorino [Wed, 20 Jul 2022 15:58:48 +0000 (12:58 -0300)]
Add captures flag to capture or not while lowering

23 months agoMake lower_generic_bound_predicate receive AST bounds instead of HIR bounds
Santiago Pastorino [Tue, 19 Jul 2022 21:10:27 +0000 (18:10 -0300)]
Make lower_generic_bound_predicate receive AST bounds instead of HIR bounds

23 months agoRemove old docs on lower_async_fn_ret_ty
Santiago Pastorino [Fri, 15 Jul 2022 15:58:22 +0000 (12:58 -0300)]
Remove old docs on lower_async_fn_ret_ty

23 months agoAddress nits
Michael Goulet [Thu, 4 Aug 2022 13:59:25 +0000 (13:59 +0000)]
Address nits

23 months agoAdd `traits::fully_solve_obligation` that acts like `traits::fully_normalize`
Michael Goulet [Tue, 2 Aug 2022 06:02:04 +0000 (06:02 +0000)]
Add `traits::fully_solve_obligation` that acts like `traits::fully_normalize`

It spawns up a trait engine, registers the single obligation, then fully
solves it

23 months agoUse ObligationCtxt in impossible_predicates
Michael Goulet [Tue, 26 Jul 2022 04:01:34 +0000 (04:01 +0000)]
Use ObligationCtxt in impossible_predicates

23 months agoRemove unnecessary FulfillmentContext from need_migrate_deref_output_trait_object
Michael Goulet [Tue, 26 Jul 2022 04:01:17 +0000 (04:01 +0000)]
Remove unnecessary FulfillmentContext from need_migrate_deref_output_trait_object

23 months agoRemove FulfillmentContext param from fully_normalize
Michael Goulet [Tue, 26 Jul 2022 03:24:16 +0000 (03:24 +0000)]
Remove FulfillmentContext param from fully_normalize

23 months agoUse ObligationCtxt in main fn return type check
Michael Goulet [Tue, 26 Jul 2022 03:18:45 +0000 (03:18 +0000)]
Use ObligationCtxt in main fn return type check

23 months agoAuto merge of #100087 - JakobDegen:mir-patch, r=tmiasko
bors [Thu, 4 Aug 2022 13:24:57 +0000 (13:24 +0000)]
Auto merge of #100087 - JakobDegen:mir-patch, r=tmiasko

Avoid invalidating the CFG in `MirPatch`

As a part of this change, we adjust `MirPatch` to not needlessly create unnecessary resume blocks.

r? `@tmiasko`

23 months agoadd a comment about what we can parse now
Takayuki Maeda [Thu, 4 Aug 2022 11:43:35 +0000 (20:43 +0900)]
add a comment about what we can parse now

23 months agoUpdate after code review
Chris Denton [Thu, 4 Aug 2022 11:26:40 +0000 (12:26 +0100)]
Update after code review

23 months agoEnable unused_parens for match arms
wcampbell [Wed, 3 Aug 2022 04:00:04 +0000 (00:00 -0400)]
Enable unused_parens for match arms

23 months agoAuto merge of #99953 - cjgillot:in-path-always, r=petrochenkov
bors [Thu, 4 Aug 2022 10:21:40 +0000 (10:21 +0000)]
Auto merge of #99953 - cjgillot:in-path-always, r=petrochenkov

Always create elided lifetimes, even if inferred.

`PathSource` gives the context in which a path is encountered.  The same `PathSource` is used for the full path and the `QSelf` part.

Therefore, we can only rely on `PathSource` to know whether typechecking will be able to infer the lifetimes, not whether we need to insert them at all.

Fixes https://github.com/rust-lang/rust/issues/99949

23 months agokmc-solid: Add a stub implementation of `File::set_times`
Tomoaki Kawada [Thu, 4 Aug 2022 10:11:12 +0000 (19:11 +0900)]
kmc-solid: Add a stub implementation of `File::set_times`

23 months agoAdd min-gdb-version
Ryan Levick [Thu, 4 Aug 2022 09:46:30 +0000 (11:46 +0200)]
Add min-gdb-version

23 months agoremove Clean trait implementation for hir::TraitRef
Guillaume Gomez [Thu, 4 Aug 2022 09:43:50 +0000 (11:43 +0200)]
remove Clean trait implementation for hir::TraitRef

23 months agoremove Clean trait implementation for hir::FnRetTy
Guillaume Gomez [Thu, 4 Aug 2022 09:32:45 +0000 (11:32 +0200)]
remove Clean trait implementation for hir::FnRetTy

23 months agoUpdate FIXME comment
Ryan Levick [Thu, 23 Jun 2022 10:02:07 +0000 (12:02 +0200)]
Update FIXME comment

Co-authored-by: Wesley Wiser <wwiser@gmail.com>
23 months agoAdd comment about issue caused with multiple statics
Ryan Levick [Tue, 21 Jun 2022 15:10:46 +0000 (17:10 +0200)]
Add comment about issue caused with multiple statics

23 months agoFix linux tests
Ryan Levick [Tue, 21 Jun 2022 12:53:55 +0000 (14:53 +0200)]
Fix linux tests

23 months agoTurn CDB test back on and all clarifying test
Ryan Levick [Mon, 20 Jun 2022 16:45:08 +0000 (18:45 +0200)]
Turn CDB test back on and all clarifying test

23 months agoTurn off cdb test for now, link to issue
Ryan Levick [Mon, 20 Jun 2022 13:38:22 +0000 (15:38 +0200)]
Turn off cdb test for now, link to issue

23 months agoAdd a test for issue #33172
Ryan Levick [Mon, 16 May 2022 15:54:12 +0000 (17:54 +0200)]
Add a test for issue #33172

23 months agoAuto merge of #99843 - oli-obk:is_useful_perf, r=compiler-errors
bors [Thu, 4 Aug 2022 07:35:33 +0000 (07:35 +0000)]
Auto merge of #99843 - oli-obk:is_useful_perf, r=compiler-errors

Some `is_useful` cleanups

#98582 was reverted because it was a perf regression.

https://github.com/rust-lang/rust/pull/99806 reintroduces the changes, but this PR picks individual ones that have no regressions.

23 months agoUse (actually) dummy place for let-else divergence
Michael Goulet [Thu, 4 Aug 2022 05:08:09 +0000 (05:08 +0000)]
Use (actually) dummy place for let-else divergence

23 months agoAuto merge of #100120 - matthiaskrgr:rollup-g6ycykq, r=matthiaskrgr
bors [Thu, 4 Aug 2022 03:52:29 +0000 (03:52 +0000)]
Auto merge of #100120 - matthiaskrgr:rollup-g6ycykq, r=matthiaskrgr

Rollup of 6 pull requests

Successful merges:

 - #98771 (Add support for link-flavor rust-lld for iOS, tvOS and watchOS)
 - #98835 (relate `closure_substs.parent_substs()` to parent fn in NLL)
 - #99746 (Use `TraitEngine` in more places that don't specifically need `FulfillmentContext::new_in_snapshot`)
 - #99786 (Recover from C++ style `enum struct`)
 - #99795 (Delay a bug when failed to normalize trait ref during specialization)
 - #100029 (Prevent ICE for `doc_alias` on match arm, statement, expression)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

23 months agodoc: s390x also requires glibc 2.17
Josh Stone [Wed, 30 Mar 2022 21:55:44 +0000 (14:55 -0700)]
doc: s390x also requires glibc 2.17

Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
23 months agoClarify the comment about CentOS 7's kernel version
Josh Stone [Wed, 16 Mar 2022 23:27:15 +0000 (16:27 -0700)]
Clarify the comment about CentOS 7's kernel version

23 months agoIncrease the minimum linux-gnu versions
Josh Stone [Wed, 16 Mar 2022 22:08:37 +0000 (15:08 -0700)]
Increase the minimum linux-gnu versions

This is implementing the MCP from rust-lang/compiler-team#493. It is
increasing the minimum requirements of a couple Tier 1 targets, and
others at lower tiers, so this should go through FCP sign-offs for both
`T-compiler` and `T-release`.

The new `linux-gnu` baseline is kernel 3.2 and glibc 2.17. We will also
take that kernel as the minimum floor for _all_ `*-linux-*` targets, so
it may be broadly assumed in the implementation of the standard library.
That does not preclude specific targets from having greater requirements
where it makes sense, like a new arch needing something newer, or a
platform like `linux-android` choosing a newer baseline.

23 months agoResolve vars before emitting coerce error
Michael Goulet [Thu, 4 Aug 2022 03:05:57 +0000 (03:05 +0000)]
Resolve vars before emitting coerce error

23 months agoDon't point out return span on every E0308
Michael Goulet [Thu, 4 Aug 2022 02:55:40 +0000 (02:55 +0000)]
Don't point out return span on every E0308

23 months agoreturn when captured argument is not a struct field
Takayuki Maeda [Thu, 4 Aug 2022 02:51:25 +0000 (11:51 +0900)]
return when captured argument is not a struct field

23 months agolink_ordinal is available for foreign static
yukang [Thu, 4 Aug 2022 01:28:59 +0000 (09:28 +0800)]
link_ordinal is available for foreign static

23 months agoAuto merge of #100123 - matthiaskrgr:rollup-aylwvyc, r=matthiaskrgr
bors [Thu, 4 Aug 2022 01:10:08 +0000 (01:10 +0000)]
Auto merge of #100123 - matthiaskrgr:rollup-aylwvyc, r=matthiaskrgr

Rollup of 9 pull requests

Successful merges:

 - #98877 (Set llvm configs when building lld)
 - #100068 (Fix backwards-compatibility check for tests with `+whole-archive`)
 - #100083 (rustdoc: use a more compact encoding for source-files.js)
 - #100102 (Fix typo)
 - #100104 (Remove more Clean trait implementations)
 - #100105 (Add regression test for #90871)
 - #100107 (fix trailing whitespace in error message)
 - #100111 (Provide suggestion on missing `let` in binding statement)
 - #100119 (FilesTimes support does not build for ESP-IDF)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

23 months agoRemove Windows function preloading
Chris Denton [Thu, 4 Aug 2022 00:46:14 +0000 (01:46 +0100)]
Remove Windows function preloading

23 months agoAdd visibility modifier to compat macro
Chris Denton [Wed, 3 Aug 2022 23:20:06 +0000 (00:20 +0100)]
Add visibility modifier to compat macro

23 months agoAuto merge of #100065 - ehuss:update-cargo, r=ehuss
bors [Wed, 3 Aug 2022 22:16:07 +0000 (22:16 +0000)]
Auto merge of #100065 - ehuss:update-cargo, r=ehuss

Update cargo, rls

14 commits in 85b500ccad8cd0b63995fd94a03ddd4b83f7905b..4fd148c47e733770c537efac5220744945d572ef
2022-07-24 21:10:46 +0000 to 2022-08-03 15:03:52 +0000
- Revert "Drop check for mingw32-make." (rust-lang/cargo#10934)
- Add reasons to all ignored tests. (rust-lang/cargo#10929)
- Grammar fixup unused patch message (rust-lang/cargo#10933)
- Always allow hg to be missing on CI. (rust-lang/cargo#10931)
- Fix formats_source test requiring rustfmt. (rust-lang/cargo#10918)
- Disable scrape_examples_complex_reverse_dependencies (rust-lang/cargo#10921)
- Contrib: Add docs on the rustbot ready command (rust-lang/cargo#10916)
- Support for negative --jobs parameter, counting backwards from max CPUs (rust-lang/cargo#10844)
- Add requirements to cargo_test. (rust-lang/cargo#9892)
- Contrib: Document submodule update process (rust-lang/cargo#10913)
- Contrib: Add docs on how to use crater (rust-lang/cargo#10912)
- Contrib: Document new-release process (rust-lang/cargo#10914)
- Override to resolver=1 in published package (rust-lang/cargo#10911)
- fix(add): Update the lock file (rust-lang/cargo#10902)

1 commits in fcf1f94c9ab2acc18cfd4368a4aeb38e77da9649..4d8b0a19986a4daab37287a5b5fe2da0775d1873
2022-07-14 17:19:11 +0200 to 2022-08-02 22:34:34 -0400
- Update cargo (rust-lang/rls#1782)

23 months agoRollup merge of #100119 - ivmarkov:master, r=joshtriplett
Matthias Krüger [Wed, 3 Aug 2022 20:30:50 +0000 (22:30 +0200)]
Rollup merge of #100119 - ivmarkov:master, r=joshtriplett

FilesTimes support does not build for ESP-IDF

Commit https://github.com/rust-lang/rust/commit/1f5d8d49eb6111931091f700d07518cd2b80bc18 broke STD for `target_os = "espidf"`.

In future, we might come up with something more sophisticated (as in using the `utime` function which *is* available on the ESP-IDF platform), but for now we are treating ESP-IDF just like `Redox` in that the new API fails at runtime. Most important for us ATM is to restore successful compilation of STD on our platform.

23 months agoRollup merge of #100111 - estebank:missing-let, r=compiler-errors
Matthias Krüger [Wed, 3 Aug 2022 20:30:49 +0000 (22:30 +0200)]
Rollup merge of #100111 - estebank:missing-let, r=compiler-errors

Provide suggestion on missing `let` in binding statement

Fix #78907.

Fallout from the type ascription syntax.

23 months agoRollup merge of #100107 - klensy:tr-w, r=compiler-errors
Matthias Krüger [Wed, 3 Aug 2022 20:30:49 +0000 (22:30 +0200)]
Rollup merge of #100107 - klensy:tr-w, r=compiler-errors

fix trailing whitespace in error message

23 months agoRollup merge of #100105 - TaKO8Ki:add-regression-test-for-90871, r=compiler-errors
Matthias Krüger [Wed, 3 Aug 2022 20:30:48 +0000 (22:30 +0200)]
Rollup merge of #100105 - TaKO8Ki:add-regression-test-for-90871, r=compiler-errors

Add regression test for #90871

closes #90871

23 months agoRollup merge of #100104 - GuillaumeGomez:rm-clean-impls, r=Dylan-DPC
Matthias Krüger [Wed, 3 Aug 2022 20:30:47 +0000 (22:30 +0200)]
Rollup merge of #100104 - GuillaumeGomez:rm-clean-impls, r=Dylan-DPC

Remove more Clean trait implementations

Follow-up of https://github.com/rust-lang/rust/pull/99638.

r? ``@notriddle``

23 months agoRollup merge of #100102 - b-naber:typo-higher-ranked-sub, r=Dylan-DPC
Matthias Krüger [Wed, 3 Aug 2022 20:30:46 +0000 (22:30 +0200)]
Rollup merge of #100102 - b-naber:typo-higher-ranked-sub, r=Dylan-DPC

Fix typo

r? ```@jackh726```

23 months agoRollup merge of #100083 - notriddle:notriddle/source-files-js, r=GuillaumeGomez
Matthias Krüger [Wed, 3 Aug 2022 20:30:46 +0000 (22:30 +0200)]
Rollup merge of #100083 - notriddle:notriddle/source-files-js, r=GuillaumeGomez

rustdoc: use a more compact encoding for source-files.js

This reduces the compiler-doc file from 40K to 36K, a 10% reduction in size.

23 months agoRollup merge of #100068 - dcsommer:master, r=petrochenkov
Matthias Krüger [Wed, 3 Aug 2022 20:30:45 +0000 (22:30 +0200)]
Rollup merge of #100068 - dcsommer:master, r=petrochenkov

Fix backwards-compatibility check for tests with `+whole-archive`

Fixes #100066

23 months agoRollup merge of #98877 - topjohnwu:fix-lld, r=jyn514
Matthias Krüger [Wed, 3 Aug 2022 20:30:44 +0000 (22:30 +0200)]
Rollup merge of #98877 - topjohnwu:fix-lld, r=jyn514

Set llvm configs when building lld

Several LLVM configs applied when building LLVM should also be applied when building LLD.

For example, without the fix, setting both `llvm.thin-lto=true` and `rust.lld=true` when building on Linux will fail, since we need to manually override the compiler and linker to `clang`, but those will not be used when building LLD, causing link errors.

r? ```@jyn514```

23 months agoRollup merge of #100029 - hdelc:master, r=cjgillot
Matthias Krüger [Wed, 3 Aug 2022 20:29:31 +0000 (22:29 +0200)]
Rollup merge of #100029 - hdelc:master, r=cjgillot

Prevent ICE for `doc_alias` on match arm, statement, expression

Fixes #99777.

This is a pretty minimal fix that should be safe, since rustdoc doesn't generate documentation for match arms, statements, or expressions. I mentioned in the linked issue that the `doc_alias` target checking should probably be improved to avoid future ICEs, but as a new contributor, I'm not confident enough with the HIR types to make a larger change.

23 months agoRollup merge of #99795 - compiler-errors:delay-specialization-normalize-error, r...
Matthias Krüger [Wed, 3 Aug 2022 20:29:30 +0000 (22:29 +0200)]
Rollup merge of #99795 - compiler-errors:delay-specialization-normalize-error, r=spastorino

Delay a bug when failed to normalize trait ref during specialization

The error messages still kinda suck here but they don't ICE anymore...

Fixes #45814
Fixes #43037

r? types

23 months agoRollup merge of #99786 - obeis:issue-99625, r=compiler-errors
Matthias Krüger [Wed, 3 Aug 2022 20:29:29 +0000 (22:29 +0200)]
Rollup merge of #99786 - obeis:issue-99625, r=compiler-errors

Recover from C++ style `enum struct`

Closes #99625