bors
4b91a6ea72
Auto merge of #100273 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
...
[stable] 1.63.0 release
Includes cherry picks of:
* https://github.com/rust-lang/rust/pull/100207
* https://github.com/rust-lang/rust-clippy/pull/9302
* Avoid ICE in rustdoc when using Fn bounds #100205
r? `@Mark-Simulacrum`
2022-08-08 22:45:42 +00:00
Noah Lev
7ddc9b7026
Add regression test comment
2022-08-08 17:50:09 -04:00
Camille GILLOT
ca387339e3
Synthetize a trait ref when none is available.
2022-08-08 17:50:09 -04:00
Camille GILLOT
9d1fd978c2
Avoid ICE in rustdoc.
2022-08-08 17:50:09 -04:00
Jason Newcomb
5643d53ae1
Move significant_drop_in_scrutinee into nursey
2022-08-08 08:21:47 -04:00
Michael Howell
e8cf27d5be
rustdoc: do not mark the contents of a skipped module as inlined
2022-08-08 08:21:33 -04:00
Mark Rousskov
c94d0bc188
Bump to stable
2022-08-08 08:21:18 -04:00
bors
6f955bfdfe
Auto merge of #100171 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
...
[beta] Rollup of beta backports
Includes the following PRs:
* rustc-docs: Be less specific about the representation of +bundle #100074
* Fix backwards-compatibility check for tests with +whole-archive #100068
* Revert write! and writeln! to late drop temporaries #99689
* Upgrade indexmap and thorin-dwp to use hashbrown 0.12 #99251
* rustdoc: avoid inlining modules with duplicate names #99738
r? `@ghost`
2022-08-05 20:06:44 +00:00
Mark Rousskov
8482bac7be
fixup rustdoc test
2022-08-05 14:45:16 -04:00
Mark Rousskov
1542579ea9
Update Cargo.lock
2022-08-05 13:46:34 -04:00
Michael Howell
94a868d6a1
rustdoc: avoid inlining foreigns with duplicate names
2022-08-05 11:25:50 -04:00
Michael Howell
39814b1502
rustdoc: avoid inlining modules with duplicate names
...
Fixes rust-lang/rust#99734
2022-08-05 11:25:50 -04:00
Amanieu d'Antras
68bfd3a7d2
Upgrade hashbrown to 0.12.3
...
This fixes a double-free in the `clone_from` function if dropping an
existing element in the table panics. See
https://github.com/rust-lang/hashbrown/pull/348 for more details.
2022-08-05 11:24:32 -04:00
Josh Stone
e44ea24840
Upgrade indexmap and thorin-dwp to use hashbrown 0.12
...
This removes the last dependencies on hashbrown 0.11.
2022-08-05 11:24:31 -04:00
David Tolnay
eb5fb32fe0
Move write! and writeln! temporaries test to check-fail
2022-08-05 11:23:41 -04:00
David Tolnay
9a95c05573
Regression in issue 99684 fixed
2022-08-05 11:23:41 -04:00
David Tolnay
cd1036e4ac
Revert write! and writeln! to late drop temporaries
2022-08-05 11:23:41 -04:00
David Tolnay
e4d0981365
Add regression test minimized from async-std write
2022-08-05 11:23:41 -04:00
Daniel Sommermann
c4840cac86
Fix backwards-compatibility check for tests with +whole-archive
...
Fixes #100066
2022-08-05 11:22:41 -04:00
Vadim Petrochenkov
f1174bd983
rustc-docs: Be less specific about the representation of +bundle
2022-08-05 11:22:21 -04:00
bors
7410ebb8f6
Auto merge of #99965 - RalfJung:ctfe-number-prov, r=eddyb
...
allow numbers with provenance within CTFE execution
This effectively reverts https://github.com/rust-lang/rust/pull/97684 for CTFE.
Undoes the diagnostic changes that are tracked in https://github.com/rust-lang/rust/issues/99923 , only for beta.
(On master this patch wouldn't apply any more, `enforce_number_no_provenance` is gone with https://github.com/rust-lang/rust/pull/99644 since the interpreter engine is not supposed to ever have provenance on integers.)
The test changes are an exact un-do of https://github.com/rust-lang/rust/pull/97684 . However there is still some risk here since this exact code is not what has been battle-tested.
r? `@Mark-Simulacrum`
2022-08-04 16:39:22 +00:00
Ralf Jung
29ce4d51a8
allow numbers with provenance within CTFE execution
...
This effectively reverts https://github.com/rust-lang/rust/pull/97684 for CTFE
2022-07-30 17:08:38 -04:00
bors
12c5b1ef38
Auto merge of #99586 - ehuss:beta-backports, r=ehuss
...
[beta] Beta 1.63 backports
* Reference: Revert $$ macro_metavar https://github.com/rust-lang/reference/pull/1192
* Revert "Stabilize $$ in Rust 1.63.0" #99435
* rustdoc: avoid inlining items with duplicate `(type, name)` #99344
* Do not call `check_expr` twice in `check_compatible` #99397
2022-07-22 04:01:47 +00:00
Michael Goulet
3c1ef0173d
beta backport of arg mismatch bugfix
2022-07-21 19:51:44 -07:00
Dylan DPC
4766af19d8
Rollup merge of #99344 - notriddle:notriddle/multiple-macro-rules-w-same-name, r=GuillaumeGomez
...
rustdoc: avoid inlining items with duplicate `(type, name)`
Fixes #99221
2022-07-21 19:46:21 -07:00
Matthias Krüger
e6e5bc7289
Rollup merge of #99435 - CAD97:revert-dollar-dollar-crate, r=Mark-Simulacrum
...
Revert "Stabilize $$ in Rust 1.63.0"
This mechanically reverts commit 9edaa76adc , the one commit from #95860 .
https://github.com/rust-lang/rust/issues/99035 ; the behavior of `$$crate` is potentially unexpected and not ready to be stabilized. https://github.com/rust-lang/rust/pull/99193 attempts to forbid `$$crate` without also destabilizing `$$` more generally.
`@rustbot` modify labels +T-compiler +T-lang +P-medium +beta-nominated +relnotes
(applying the labels I think are accurate from the issue and alternative partial revert)
cc `@Mark-Simulacrum`
2022-07-21 19:38:39 -07:00
Eric Huss
6f162b3583
Update reference
...
This is in preparation to merge https://github.com/rust-lang/rust/pull/99435
which will require the toolstate to be passing.
1 commits in 9fce337a55ee4a4629205f6094656195cecad231..dd07eda38b15f756d60556b7bd7eed6d8db3eeca
2022-06-22 13:59:28 -0700 to 2022-07-21 19:05:26 -0700
- This reverts commit 151b8196a30b1c00cb422e25f459dd4354043a6a, reversing (rust-lang/reference#1192 )
2022-07-21 19:37:03 -07:00
bors
efd358333a
Auto merge of #99300 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
...
[beta] rollup
* Fix sized check ICE in asm check #99124
* Windows: Fallback for overlapped I/O #98950
* promote placeholder bounds to 'static obligations #98713
* Create fresh lifetime parameters for bare fn trait too #98637
r? `@Mark-Simulacrum`
2022-07-16 03:31:32 +00:00
Camille GILLOT
f0227e8b9f
Handle fresh lifetimes on bare trait objects.
2022-07-15 18:50:33 -04:00
Camille GILLOT
7c2b316aeb
Add known bug test.
2022-07-15 18:50:33 -04:00
Niko Matsakis
44b476eb2b
promote placeholder bounds to 'static obligations
...
In NLL, when we are promoting a bound out from a closure,
if we have a requirement that `T: 'a` where `'a` is in a
higher universe, we were previously ignoring that, which is
totally wrong. We should be promoting those constraints to `'static`,
since universes are not expressible across closure boundaries.
2022-07-15 18:50:33 -04:00
Chris Denton
bcb9c2352b
Fix ui-fulldep test
2022-07-15 17:59:56 -04:00
Chris Denton
b2ec40b91c
Tests for unsound Windows file methods
2022-07-15 17:59:56 -04:00
Chris Denton
14e487e2ac
Windows: Fallback for overlapped I/O
...
Try waiting on the file handle once. If that fails then give up.
2022-07-15 17:59:56 -04:00
Chris Denton
b7b99299cd
Use rtabort! instead of process::abort
2022-07-15 17:59:56 -04:00
Michael Goulet
45063c7981
Fix sized check ICE in intrisicck
2022-07-15 17:59:40 -04:00
bors
93ef0cd7fd
Auto merge of #99098 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
...
[beta] backport rollup
* Return a FxIndexSet in is_late_bound query. #98959
* rustdoc: filter '_ lifetimes from ty::PolyTraitRef #98727
* don't succeed evaluate_obligation query if new opaque types were registered #98614
* Update llvm-project #98567
There's a few more as-yet-unapproved/unmerged PRs that'll land later, but creating a partial rollup for now so that we can include at least some PRs in the first crater run.
r? `@Mark-Simulacrum`
2022-07-10 01:19:06 +00:00
Mark Rousskov
b5c69118d3
Backport "Update llvm-project #98567 "
...
This cherry picks:
* c9676870a8f378940ec446c4184254f361feabe6
* f14a034634ac7ddc314008e39d62af6ceae0166a
* 3317cfea1b72c0861c9e4e9f5eba5713fd19e7f7
* 8b6b5014fdad3a750f7242a6bfdcad83619498d4
2022-07-09 18:23:33 -04:00
Mark Rousskov
5a81254ef2
Fix tests after beta backport
2022-07-09 18:16:53 -04:00
Oli Scherer
c121fe342e
Only register hidden types for opaque types from the current crate, nothing else would work anyway.
2022-07-09 17:11:42 -04:00
Oli Scherer
68a46961b7
not knowing about opaque types is worse than not knowing about regions, make sure we don't accidentally mark something as ok-modulo-regions if there are opaque types involved
2022-07-09 17:11:42 -04:00
Oli Scherer
e1c665510b
Remove type flag based opaque type workaround
2022-07-09 17:11:42 -04:00
Oli Scherer
1b1022dde7
Make evaluate_obligation not succeed unconditionally if it registered new hidden types for opaque types
2022-07-09 17:11:42 -04:00
Oli Scherer
b721490918
use a method instead of manually doing what its body does
2022-07-09 17:11:42 -04:00
Oli Scherer
32dd17bf9c
pessimistically treat all function items as containing an opaque type
2022-07-09 17:11:42 -04:00
Michael Howell
d8395c064a
rustdoc: filter '_ lifetimes from ty::PolyTraitRef
...
Fixes #98697
2022-07-09 17:10:37 -04:00
Michael Woerister
8a23603129
Add link to issue for src/test/incremental/async-lifetimes.rs
2022-07-09 17:08:43 -04:00
Camille GILLOT
36598fcf3e
Add regression test.
2022-07-09 17:08:43 -04:00
Camille GILLOT
d043f628b8
Return a FxIndexSet in is_late_bound query.
...
This return value is iterated upon by borrowck, hence the need to preserve
a deterministic iteration order.
2022-07-09 17:08:43 -04:00
bors
94811fdc26
Auto merge of #98949 - ehuss:update-beta-cargo, r=ehuss
...
[beta] Beta 1.63 backports
* fix data race in thread::scope #98503
* Mitigate MMIO stale data vulnerability #98126
* Cargo:
* [BETA-1.63] Fix zsh completions for add and locate-project (rust-lang/cargo#10811 )
* [BETA-1.63] Bump cargo-util version. (rust-lang/cargo#10805 )
2022-07-06 08:29:12 +00:00