Commit graph

208935 commits

Author SHA1 Message Date
bors
69f9c33d71 Auto merge of #105563 - pietroalbini:pa-stable-1.66.0, r=pietroalbini
[stable] Prepare 1.66.0 release

This PR prepares the artifacts for the 1.66.0 release. The following PRs have been backported:

* #104782
* #105023
* #104558
* #104610
* #103989
* #104650
* #105539
* #105477

r? `@ghost`
2022-12-12 16:00:14 +00:00
Tomasz Miąsko
c9aa73c3b1
Ignore errors when including clear_expected_if_blessed
Include is there only for the effect executing the rule.
The file is not intended to be remade successfully to be
actually included.
2022-12-12 16:57:42 +01:00
Guillaume Gomez
94b305dc37
Add test for non-rust code block hashtag prepended lines 2022-12-12 15:35:29 +01:00
Guillaume Gomez
76184b1ba7
Don't take into account hashtag prepended lines if not in rust code block 2022-12-12 15:35:25 +01:00
Arlo Siemsen
47141d6e7a
Fix build of thumbv7a-pc-windows-msvc 2022-12-12 15:34:58 +01:00
BlackHoleFox
3c65475c34
Use XCode 13.4 everywhere in dist CI
Do this because XCode 14 no longer supports a macOS deployment target
of anything before 10.13. We need 10.7+(-ish, really 10.9+) for now.
2022-12-12 15:34:18 +01:00
BlackHoleFox
815f03ed42
Bring back XCode selection CI script
This reverts commit 8514b0097b.
2022-12-12 15:34:12 +01:00
Pietro Albini
61b1219bc2
backport release notes 2022-12-12 14:27:45 +01:00
Pietro Albini
7d682b54ce
bless test 2022-12-12 13:35:26 +01:00
Pietro Albini
9a1ea88568
bump channel to stable 2022-12-11 18:37:03 +01:00
ouz-a
44b23c809c
fix test err 2022-12-11 18:32:19 +01:00
ouz-a
1a0bc8a25a
re-add test and bless 2022-12-11 18:32:11 +01:00
ouz-a
9b74d901a4
revert-overflow 2022-12-11 18:30:47 +01:00
Thom Chiovoloni
2f907eb44e
Handle the case that even the filename array is unaligned. 2022-12-11 18:17:57 +01:00
Thom Chiovoloni
2eff0c7f7c
Don't assume FILE_ID_BOTH_DIR_INFO will be aligned 2022-12-11 18:17:52 +01:00
Tomasz Miąsko
40aec30368
Statics used in reachable function's inline asm are reachable 2022-12-11 18:17:16 +01:00
Oli Scherer
c21148144e
Bump the const eval step limit 2022-12-11 18:16:41 +01:00
bors
0040709e39 Auto merge of #104447 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backport

*  Use nominal_obligations_without_const in wf for FnDef #104180
*  Don't silently eat label before block in block-like expr #103986
*  Revert "Update CI to use Android NDK r25b" #104628
*  rustdoc: Resolve doc links in external traits having local impls #104364
*  Use 64 bits for incremental cache in-file positions #104164
*  rustdoc: Do not add external traits to the crate in register_res #103649
*  Revert "Normalize opaques with escaping bound vars" #103509
* Bump to released stable compiler
* [beta] Update cargo #104486

r? `@Mark-Simulacrum`
2022-11-20 16:04:23 +00:00
Weihang Lo
2caaf9898e [beta] Update cargo
1 commits in 7e484fc1a766f56dbc95380f45719698e0c82749..d65d197ad5c6c09234369f219f943e291d4f04b9
2022-10-27 15:20:57 +0000 to 2022-11-15 21:30:31 +0000
- [beta-1.66] Backport fix for git2 safe-directory disable (rust-lang/cargo#11381)
2022-11-20 10:11:25 -05:00
Mark Rousskov
db0c4e5fdc Ignore test to fix macOS CI
The proper fix for this is
https://github.com/rust-lang/rust/pull/104091, but we're avoiding a
backport for it since this is just failing for an unstable feature.
2022-11-20 10:10:01 -05:00
Michael Goulet
d5150f1c8c Delete miri test 2022-11-20 10:07:24 -05:00
Michael Goulet
58f0fa389d Add test 2022-11-20 10:07:24 -05:00
Michael Goulet
0480b3fa91 Revert "Normalize opaques with escaping bound vars"
This reverts commit 43119d6438.
2022-11-20 10:07:24 -05:00
Vadim Petrochenkov
bc842089db rustdoc: Do not add external traits to the crate in register_res
It's not clear why it was done, and apparently it's no longer necessary now.
Such additions are unpredictable for early doc link resolution and would force us to collect all doc links from all external traits.
2022-11-20 10:06:51 -05:00
Camille GILLOT
de82c91449 Make AbsoluteBytePos a u64. 2022-11-20 10:05:55 -05:00
Vadim Petrochenkov
2ac1288230 rustdoc: Resolve doc links in external traits having local impls 2022-11-20 10:04:48 -05:00
Alex Pinkus
cca1588cc9 Revert "Update CI to use Android NDK r25b"
This reverts commit bf7f1ca316.
2022-11-20 10:04:20 -05:00
Michael Goulet
9d39a2c06b Don't silently eat label before block in block-like expr 2022-11-15 09:11:06 -05:00
Deadbeef
6955b831f9 Use nominal_obligations_without_const in wf for FnDef 2022-11-15 09:10:22 -05:00
Mark Rousskov
8940dd1df5 Update to released stable compiler 2022-11-15 09:08:30 -05:00
bors
e080cc5a65 Auto merge of #103802 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] branch 1.66

This PR:

* Bumps version placeholders
* Bumps CI channel to beta
* Backports "rustdoc: add support for incoherent impls on structs and traits #103746"
2022-11-01 02:03:16 +00:00
Mark Rousskov
c2bb2e1e49 Adjust miri to still be optional
We don't distribute a miri build for beta/stable so it needs to be kept
optional. In the future it likely makes sense to switch the miri
*artifacts* to always be built, but the rustup component to not be
included -- this will avoid some of this pain.
2022-10-31 20:52:55 -04:00
Mark Rousskov
e83be5d76c Enable RUSTC_BOOTSTRAP for a few steps 2022-10-31 11:06:23 -04:00
Michael Howell
a919a54f07 rustdoc: add support for incoherent impls on structs and traits
Fixes #103170
2022-10-31 10:44:20 -04:00
Mark Rousskov
09fd12d68a Bump channel to beta 2022-10-31 10:43:36 -04:00
Mark Rousskov
f244dab021 Bump version placeholders to release 2022-10-31 10:43:15 -04:00
bors
5e97720429 Auto merge of #103450 - cjgillot:elision-nodedup, r=Mark-Simulacrum
Do not consider repeated lifetime params for elision.

Fixes https://github.com/rust-lang/rust/issues/103330
2022-10-29 17:32:45 +00:00
bors
68c836a904 Auto merge of #103727 - GuillaumeGomez:rollup-hfyxccr, r=GuillaumeGomez
Rollup of 8 pull requests

Successful merges:

 - #102634 (compiletest: Refactor test rustcflags)
 - #102721 (Prevent foreign Rust exceptions from being caught)
 - #103415 (filter candidates in pick probe for diagnostics)
 - #103618 (Rename some `OwnerId` fields.)
 - #103625 (Accept `TyCtxt` instead of `TyCtxtAt` in `Ty::is_*` functions)
 - #103653 (Add missing impl blocks for item reexported from private mod in JSON output)
 - #103699 (Emit proper error when casting to `dyn*`)
 - #103719 (fix typo in `try_reserve` method from `HashMap` and `HashSet`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
2022-10-29 14:14:08 +00:00
Guillaume Gomez
6425764045
Rollup merge of #103719 - joseluis:fix-typos-try-reserve, r=the8472
fix typo in `try_reserve` method from `HashMap` and `HashSet`

Currently refers to the `reserve` method, instead of `try_reserve`. Other collections like [Vec](https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve) & [VecDeque](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.try_reserve) shows it well.
2022-10-29 14:18:05 +02:00
Guillaume Gomez
679771f147
Rollup merge of #103699 - compiler-errors:dyn-star-cast-bad, r=TaKO8Ki
Emit proper error when casting to `dyn*`

Fixes #103679
2022-10-29 14:18:05 +02:00
Guillaume Gomez
05ab16b54e
Rollup merge of #103653 - GuillaumeGomez:missing-impl-private-json, r=notriddle
Add missing impl blocks for item reexported from private mod in JSON output

Fixes #102583.

Since we don't inline for the JSON output, the impl blocks from private modules are not present when we generate the output. To go around this limitation, in case the impl block doesn't have `#[doc(hidden)]` and is implementing a public item, we don't strip it.

cc `@fmease` `@aDotInTheVoid`
r? `@notriddle`
2022-10-29 14:18:04 +02:00
Guillaume Gomez
2414a4c31a
Rollup merge of #103625 - WaffleLapkin:no_tyctxt_dogs_allowed, r=compiler-errors
Accept `TyCtxt` instead of `TyCtxtAt` in `Ty::is_*` functions

Functions in answer:

- `Ty::is_freeze`
- `Ty::is_sized`
- `Ty::is_unpin`
- `Ty::is_copy_modulo_regions`

This allows to remove a lot of useless `.at(DUMMY_SP)`, making the code a bit nicer :3

r? `@compiler-errors`
2022-10-29 14:18:03 +02:00
Guillaume Gomez
692a22e735
Rollup merge of #103618 - nnethercote:rename-OwnerId-fields, r=compiler-errors
Rename some `OwnerId` fields.

`@spastorino` noticed some silly expressions like `item_id.def_id.def_id`.

This commit renames several `def_id: OwnerId` fields as `owner_id`, so those expressions become `item_id.owner_id.def_id`.

`item_id.owner_id.local_def_id` would be even clearer, but the use of `def_id` for values of type `LocalDefId` is *very* widespread, so I left that alone.

r? `@compiler-errors`
2022-10-29 14:18:03 +02:00
Guillaume Gomez
07b5c6bdaa
Rollup merge of #103415 - compiler-errors:tiny-perf-increase-on-diagnostic, r=TaKO8Ki
filter candidates in pick probe for diagnostics

Fixes #103411, though also fine with closing this PR if my opinion (https://github.com/rust-lang/rust/issues/103411#issuecomment-1287900069) is shared that this doesn't need to  be fixed.

```
~/rust3$ time rustc +nightly ~/test.rs 2>/dev/null

real    0m4.853s
user    0m4.837s
sys     0m0.016s

~/rust3$ time rustc +rust3 ~/test.rs 2>/dev/null

real    0m0.193s
user    0m0.169s
sys     0m0.024s
```

Also fixes #103427.
2022-10-29 14:18:02 +02:00
Guillaume Gomez
6dd64d38a3
Rollup merge of #102721 - nbdd0121:panic, r=Amanieu
Prevent foreign Rust exceptions from being caught

Fix #102715

Use the address of a static variable (which is guaranteed to be unique per copy of std) to tell apart if a Rust exception comes from local or foreign Rust code, and abort for the latter.
2022-10-29 14:18:02 +02:00
Guillaume Gomez
73e7c3a429
Rollup merge of #102634 - andrewpollack:refactor-test-rustcflags, r=Mark-Simulacrum
compiletest: Refactor test rustcflags

Refactoring `host-rustcflags` and `target-rustcflags` from `Option<String>` to `Vec<String>`

Ref: #102438

r? `@Mark-Simulacrum`
2022-10-29 14:18:01 +02:00
Guillaume Gomez
0ef36b8945 Add regression test for missing item from private mod in JSON output 2022-10-29 11:56:08 +02:00
Guillaume Gomez
f0234f1976 Add missing impl blocks for item reexported from private mod in JSON output 2022-10-29 11:43:29 +02:00
Nicholas Nethercote
c8c25ce5a1 Rename some OwnerId fields.
spastorino noticed some silly expressions like `item_id.def_id.def_id`.

This commit renames several `def_id: OwnerId` fields as `owner_id`, so
those expressions become `item_id.owner_id.def_id`.

`item_id.owner_id.local_def_id` would be even clearer, but the use of
`def_id` for values of type `LocalDefId` is *very* widespread, so I left
that alone.
2022-10-29 20:28:38 +11:00
bors
33b530e040 Auto merge of #103714 - matthiaskrgr:rollup-kajt3i8, r=matthiaskrgr
Rollup of 7 pull requests

Successful merges:

 - #102961 (Make `CStr::from_ptr` `const`.)
 - #103342 (Add test for issue 98634)
 - #103383 (Note scope of TAIT more accurately)
 - #103656 (Specialize ToString for Symbol)
 - #103663 (rustdoc: remove redundant CSS/DOM `div.search-container`)
 - #103664 (rustdoc-json-types: Improve ItemSummary::path docs)
 - #103704 (Add a test for TAIT used with impl/dyn Trait inside RPIT)

Failed merges:

 - #103618 (Rename some `OwnerId` fields.)

r? `@ghost`
`@rustbot` modify labels: rollup
2022-10-29 09:21:35 +00:00