200172 Commits

Author SHA1 Message Date
bors
897e37553b Auto merge of #103859 - Mark-Simulacrum:stable-next, r=flip1995
[stable] Lower lint level for READ_ZERO_BYTE_VEC

This avoids reporting false-positives; see rust-lang/rust-clippy#9274 for details.

cc `@rust-lang/clippy` -- do we want a direct change landed on stable here? If so, please r+ this PR, otherwise we can just close it. Would appreciate confirmation this is the right change to make as well.

cc `@joshtriplett` -- filing due to https://rust-lang.zulipchat.com/#narrow/stream/301329-t-devtools/topic/clippy.20false.20positive
1.65.0
2022-11-02 14:35:54 +00:00
Mark Rousskov
3100c850b0 Fix stable channel downloads of LLVM 2022-11-02 08:11:53 -04:00
Mark Rousskov
7c57093599 Run update lint tool 2022-11-01 20:23:04 -04:00
Mark Rousskov
0ef6a65a4b Lower lint level for READ_ZERO_BYTE_VEC
This avoids reporting false-positives; see rust-lang/rust-clippy#9274
for details.
2022-11-01 20:09:24 -04:00
bors
d939e5a3e5 Auto merge of #103804 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.67.0 release

Last minute backports:

* rustdoc: add support for incoherent impls on structs and traits #103746

r? `@ghost`
2022-10-31 15:40:56 +00:00
Michael Howell
4bf5437062 rustdoc: add support for incoherent impls on structs and traits
Fixes #103170
2022-10-31 10:47:31 -04:00
Mark Rousskov
c1f444fac5 Bump channel to stable 2022-10-31 10:46:23 -04:00
bors
90b3882115 Auto merge of #103739 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backport rollup

* poll_fn and Unpin: fix pinning #102737
* Support raw-dylib functions being used inside inlined functions #102988
* Fix line numbers for MIR inlined code #103071
* Add architectures to fn create_object_file #103240
* Add eval hack in super_relate_consts back #103279
* Mark std::os::wasi::io::AsFd etc. as stable. #103308
* Truncate thread names on Linux and Apple targets #103379
* Do not consider repeated lifetime params for elision. #103450
* rustdoc: add missing URL redirect #103588
* Remove commit_if_ok probe from NLL type relation #103601

Also includes a copy of the release notes.

r? `@ghost`
2022-10-29 20:44:01 +00:00
Mark Rousskov
108b32ea59 Fix tests 2022-10-29 15:07:38 -04:00
Mark Rousskov
3e9b8bace3 1.65.0 release notes 2022-10-29 15:07:38 -04:00
Michael Goulet
238c5de173 No need to probe when relating opaques in nll_relate 2022-10-29 13:24:02 -04:00
Weihang Lo
390e475975 fix(rustdoc): add missing URL component for error messages 2022-10-29 13:24:02 -04:00
Weihang Lo
2d6e3d91d5 doc(rustdoc): redirect more urls 2022-10-29 13:24:02 -04:00
Camille GILLOT
80348e4364 Only ban duplication across parameters. 2022-10-29 13:24:02 -04:00
Camille GILLOT
2cd924b9ce Do not consider repeated lifetime params for elision. 2022-10-29 13:24:02 -04:00
Josh Stone
5baadbd546 Only test pthread_getname_np on linux-gnu 2022-10-29 13:24:02 -04:00
Josh Stone
6d6b7d42e9 Move truncation next to other thread tests for tidy 2022-10-29 13:24:02 -04:00
Josh Stone
150eda3de1 Truncate thread names on Linux and Apple targets
These targets have system limits on the thread names, 16 and 64 bytes
respectively, and `pthread_setname_np` returns an error if the name is
longer. However, we're not in a context that can propagate errors when
we call this, and we used to implicitly truncate on Linux with `prctl`,
so now we manually truncate these names ahead of time.
2022-10-29 13:24:02 -04:00
Dan Gohman
002ce8c918 Mark std::os::wasi::io::AsFd etc. as stable.
io_safety was stabilized in Rust 1.63, so mark the io_safety exports in
`std::os::wasi::io` as stable.

Fixes #103306.
2022-10-29 13:24:02 -04:00
Mark Rousskov
a258a543b8 Add test validating successful backport 2022-10-29 12:52:21 -04:00
Michael Goulet
b251c69072 Add normalize hack back 2022-10-29 12:52:21 -04:00
Michael Goulet
ea8900332b Comment why normalization is needed for debug assertions 2022-10-29 12:52:21 -04:00
Daniil Belov
544b3cc77b Add architectures to fn create_object_file 2022-10-29 11:14:29 -04:00
Wesley Wiser
1de923f392 Fix line numbers for MIR inlined code
`should_collapse_debuginfo` detects if the specified span is part of a
macro expansion however it does this by checking if the span is anything
other than a normal (non-expanded) kind, then the span sequence is
walked backwards to the root span.

This doesn't work when the MIR inliner inlines code as it creates spans
with expansion information set to `ExprKind::Inlined` and results in the
line number being attributed to the inline callsite rather than the
normal line number of the inlined code.
2022-10-29 11:14:04 -04:00
Wesley Wiser
4a6fc7a2f2 Add test case for MIR inlining debuginfo line numbers 2022-10-29 11:14:04 -04:00
Daniel Paoliello
cf5c3b8cd3 Support raw-dylib functions being used inside inlined functions 2022-10-29 11:13:12 -04:00
Ralf Jung
4b7c6cb033 poll_fn and Unpin: fix pinning 2022-10-29 11:12:42 -04:00
bors
636a78aca8 Auto merge of #103633 - compiler-errors:beta-revert-rcvr-args-split, r=pnkfelix
Revert "Do not consider method call receiver as an argument in AST."

Reverts #100232, including a few places where there were merge conflicts after this landed.

r? `@pnkfelix`
cc `@cjgillot`

cc #103430 the nightly workaround for this issue.
2022-10-28 03:44:12 +00:00
Michael Goulet
4d01f53ec0 Additional revert fixes 2022-10-27 15:03:34 +00:00
Michael Goulet
85dee2b354 Revert "Do not consider method call receiver as an argument in AST."
This reverts commit 970184528718d7c10579cac7b7e7e66ef2e2a3f5.
2022-10-27 14:53:42 +00:00
Michael Goulet
1fc2385678 Revert "Adapt ui-fulldeps test."
This reverts commit 69205db766acb80181462f3293a502c5a32d2ca5.
2022-10-27 14:45:01 +00:00
bors
a317055498 Auto merge of #103316 - cuviper:beta-next, r=cuviper
[beta] backports

- Use rebind instead of dummy binder in `SameTypeModuloInfer` relation #102059
- Add missing space between notable trait tooltip and where clause #102107
- Avoid repeated re-initialization of the BufReader buffer #102760
- Ensure enum cast moves #103016
- Fix `TyKind::is_simple_path` #103176
- Do anonymous lifetimes remapping correctly for nested rpits #103205
- [beta] Cargo backport 1.65.0 #103303
- linker: Fix weak lang item linking with combination windows-gnu + LLD + LTO #103092

r? `@ghost`
2022-10-21 06:52:36 +00:00
Vadim Petrochenkov
731bbc854d linker: Fix weak lang item linking with combination windows-gnu + LLD + LTO
(cherry picked from commit acf51e13457c45b97cdfd551d85d3e75140e0ff7)
2022-10-20 12:50:05 -07:00
Weihang Lo
b1fb60e5a6 [beta] Update cargo
1 commits in 082503982ea0fb7a8fd72210427d43a2e2128a63..4bc8f24d3e899462e43621aab981f6383a370365
2022-09-13 17:49:38 +0000 to 2022-10-20 06:00:42 +0000

- [BETA-1.65] Fix deadlock when build scripts are waiting for input on stdin (rust-lang/cargo#11257)
2022-10-20 12:28:28 -07:00
Santiago Pastorino
5dbca914b5 Do anonymous lifetimes remapping correctly for nested rpits
(cherry picked from commit 49ce8a22b05d779da4ffc531a44380656d51404b)
2022-10-20 11:58:08 -07:00
Santiago Pastorino
2396c20488 Extract orig_opt_local_def_id as a function
(cherry picked from commit fb5475887f8f3641aea994e1f8f8954d1290449a)
2022-10-20 11:58:07 -07:00
Nicholas Nethercote
692bc5b3ca Fix TyKind::is_simple_path.
PR #98758 introduced code to avoid redundant assertions in derived code
like this:
```
let _: ::core::clone::AssertParamIsClone<u32>;
let _: ::core::clone::AssertParamIsClone<u32>;
```
But the predicate `is_simple_path` introduced as part of this failed to
account for generic arguments. Therefore the deriving code erroneously
considers types like `Option<bool>` and `Option<f32>` to be the same.

This commit fixes `is_simple_path`.

Fixes #103157.

(cherry picked from commit 9a23f60f9c801dd0b4686cc75c6a9979bd8928fa)
2022-10-20 11:57:41 -07:00
Nicholas Nethercote
8f1050e005 Tweak deriving-all-codegen.rs.
To include some `Option<>` fields of different types in a single enum.
The test output is currently buggy, but the next commit will fix that.

(cherry picked from commit dfa9d5c971d74aa5bdf6b99253fe4b7db39f9b67)
2022-10-20 11:57:41 -07:00
Gary Guo
7539bc352b Fix test
(cherry picked from commit 4a25a49edfcca0392a9731df351f1a1229a6e662)
2022-10-20 11:54:03 -07:00
Gary Guo
b4ad734ee2 Bless tests
(cherry picked from commit 247da7b18de01886fb73a49f8b9ca59cfec16e64)
2022-10-20 11:53:58 -07:00
Gary Guo
8c36d46f5e Add test for issue 102389
(cherry picked from commit f1452fc1c99bc6d126a096694b0f70d9fe4734b6)
2022-10-20 11:49:05 -07:00
Gary Guo
f66eca1f13 Ensure enum cast moves
(cherry picked from commit de0396c7180f8e36165c3fefb9325b0ec1bfb5a2)
2022-10-20 11:49:05 -07:00
Ben Kimock
de7a6e5b3e Avoid defensive re-initialization of the BufReader buffer
(cherry picked from commit 95ae993bd86b97aff9a27498f2187fef431cab58)
2022-10-20 11:48:54 -07:00
Urgau
45b953a09d Add missing space between notable trait tooltip and where clause
(cherry picked from commit e214385a4d1933ddb6a4c6ffeed50c7228674656)
2022-10-20 11:37:06 -07:00
Michael Goulet
f2dd585e64 Better binder treatment
(cherry picked from commit 83e6128b577649384ef4bd137223bcffe5c8a5b0)
2022-10-20 11:30:00 -07:00
bors
da7ffa2d1d Auto merge of #102676 - cuviper:beta-next, r=cuviper
[beta] backports

* Avoid duplicating StorageLive in let-else #101894
* Re-add HRTB implied static bug note #101924
* Revert "Copy stage0 binaries into stage0-sysroot" #101942
* implied_bounds: deal with inference vars #102016
* fix ConstProp handling of written_only_inside_own_block_locals #102045
* Fix wrongly refactored Lift impl #102088
* Fix a typo “pararmeter” in error message #102119
* Deny associated type bindings within associated type bindings #102338
* Continue migration of CSS themes #101934
* Fix search result colors #102369
* Fix unwind drop glue for if-then scopes #102394
* Revert "Use getentropy when possible on all Apple platforms" #102693
* Fix associated type bindings with anon const in GAT position #102336
* Revert perf-regression 101620 #102064
* `EscapeAscii` is not an `ExactSizeIterator` #99880
2022-10-10 00:22:17 +00:00
Michael Goulet
f73da694c6 EscapeAscii is not an ExactSizeIterator
(cherry picked from commit 8abcd4d23538aa1e4c1164bca2c96ce0d7eb57ed)
2022-10-08 14:40:11 -07:00
Camille GILLOT
d223452d10 Revert "Auto merge of #101620 - cjgillot:compute_lint_levels_by_def, r=oli-obk"
This reverts commit 2cb9a65684dba47c52de8fa938febf97a73e70a9, reversing
changes made to 750bd1a7ff3e010611b97ee75d30b7cbf5f3a03c.

(cherry picked from commit fc43df0333d5862a219f16d294ae38b14b9191d3)
2022-10-06 10:11:02 -07:00
Michael Goulet
328b53f5f0 Support bindings with anon consts in generics
(cherry picked from commit 92561f43f185b54c81167ddc89fbe2dcd94b4efb)
2022-10-06 10:07:34 -07:00
Michael Goulet
99a8cc16d8 Make type_of work correctly for const arg bindings
(cherry picked from commit 05267b5a50bfa3952fe2a4433f4e12a93e15dd22)
2022-10-06 10:07:34 -07:00