Michael Goulet
ec79720c1e
Add async_fn_in_trait lint
2023-10-03 00:37:18 +00:00
Scott McMurray
f8fc0d7716
Use addr_eq
in {Arc,Rc}::ptr_eq
...
Since it's made for stuff like this (see 106447)
2023-10-02 17:32:01 -07:00
James Haywood
0c6d279728
Appease tidy
2023-10-02 19:22:42 -04:00
Michael Goulet
07851679cd
Point out the actual mismatch error
2023-10-02 23:14:29 +00:00
Michael Goulet
8be12f4ed7
For a single impl candidate, try to unify it with error trait ref
2023-10-02 23:14:29 +00:00
James Haywood
f96cfb533a
Adapt todo!
documentation to mention displaying custom values
...
Correct hidden trait in doc test
2023-10-02 19:09:11 -04:00
bors
2e5a9dd6c9
Auto merge of #102099 - InnovativeInventor:re-cold-land, r=nikic
...
Rebased: Mark drop calls in landing pads cold instead of noinline
I noticed that certain inlining optimizations were missing while staring at some compiled code output. I'd like to see this relanded, so I rebased the PR from `@erikdesjardins` (PR #94823 ).
This PR reapplies https://github.com/rust-lang/rust/pull/92419 , which was reverted in https://github.com/rust-lang/rust/pull/94402 due to https://github.com/rust-lang/rust/issues/94390 .
Fixes https://github.com/rust-lang/rust/issues/46515 , fixes https://github.com/rust-lang/rust/issues/87055 .
Update: fixes #97217 .
2023-10-02 22:02:12 +00:00
Eduardo Sánchez Muñoz
f2918b4a3d
Bump stdarch submodule
2023-10-02 23:43:35 +02:00
Josh Stone
0eb8973fa9
Shuffle around some 1.73.0 relnotes
2023-10-02 14:41:10 -07:00
Josh Stone
c6bb73101e
Apply suggestions for 1.73.0 relnotes
...
Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
2023-10-02 14:37:34 -07:00
Michael Goulet
ac5aa8c1a4
Don't suggest nonsense suggestions for unconstrained type vars in note_source_of_type_mismatch_constraint
2023-10-02 21:13:46 +00:00
Michael Goulet
2ffaeb5110
Rename both of the Match relations
2023-10-02 21:06:09 +00:00
ouz-a
5d753abb30
have better explanation for relate_types
2023-10-02 23:39:45 +03:00
ouz-a
6f0c5ee2d4
change is_subtype to relate_types
2023-10-02 23:39:45 +03:00
ouz-a
cd7f471931
Add docs, remove code, change subtyper code
2023-10-02 23:39:44 +03:00
ouz-a
ea4b38820b
subtyping_projections
2023-10-02 23:37:49 +03:00
ouz-a
3148e6a993
subtyping_projections
2023-10-02 23:37:49 +03:00
bors
5333b878c8
Auto merge of #116356 - tmandry:rollup-trfidc8, r=tmandry
...
Rollup of 5 pull requests
Successful merges:
- #114453 (Print GHA log groups to stdout instead of stderr)
- #114454 (Replace `HashMap` with `IndexMap` in pattern binding resolve )
- #116289 (Add missing #[inline] on AsFd impl for sys::unix::fs::File)
- #116349 (ensure the parent path's existence on `x install`)
- #116350 (Improve wording of `hint::black_box` docs)
r? `@ghost`
`@rustbot` modify labels: rollup
2023-10-02 20:11:28 +00:00
Tyler Mandry
132e38366f
Rollup merge of #116350 - Nilstrieb:in-situ, r=Dylan-DPC
...
Improve wording of `hint::black_box` docs
The wording is a bit confusing.
squash of #109634
2023-10-02 16:09:43 -04:00
Tyler Mandry
d7621cdb19
Rollup merge of #116349 - onur-ozkan:hfix, r=tmandry
...
ensure the parent path's existence on `x install`
fixes https://github.com/rust-lang/rust/pull/116127#issuecomment-1743454109
cc `@tmandry`
2023-10-02 16:09:43 -04:00
Tyler Mandry
1edf7233fa
Rollup merge of #116289 - linkmauve:patch-1, r=the8472
...
Add missing #[inline] on AsFd impl for sys::unix::fs::File
This operation should be extremely cheap, at most the `mov` of the underlying file descriptor, but due to this missing `#[inline]` it is currently a function call.
2023-10-02 16:09:42 -04:00
Tyler Mandry
af77806bee
Rollup merge of #114454 - Nilstrieb:no-evil-sorting, r=cjgillot
...
Replace `HashMap` with `IndexMap` in pattern binding resolve
fixes https://github.com/rust-lang/rust/pull/114332#discussion_r1284189179
2023-10-02 16:09:42 -04:00
Tyler Mandry
14f6249018
Rollup merge of #114453 - Kobzol:ci-group-stdout, r=onur-ozkan
...
Print GHA log groups to stdout instead of stderr
In all other places (e.g. `bootstrap.py`, `opt-dist`), we use stdout instead of stderr. I think that using stderr might be causing some discrepancies in the log, where sometimes the contents of a group "leak" outside the group. Let's see what happens if we use stdout instead. It's possible that it will be worse, since we print most stuff to stderr (?).
r? `@ghost`
2023-10-02 16:09:41 -04:00
Orson Peters
07e96314ec
Clarify float rounding direction for signed zero
2023-10-02 22:05:17 +02:00
Jakub Beránek
76b70eb033
Add new bors try branches to CI
2023-10-02 21:38:50 +02:00
Lukas Wirth
2d73d30a3c
Fix incorrect inlining of RangeInclusive::size_hint
2023-10-02 21:31:16 +02:00
Lukas Wirth
b25c84510d
Add some docs regarding rustc_abi rust-analyzer compat changes
2023-10-02 21:31:16 +02:00
Lukas Wirth
6d141c11c0
Implement Deref<LayoutS> for Layout
2023-10-02 21:31:16 +02:00
Lukas Wirth
67e5eb6cec
Cfg out ReprOption::field_shuffle_seed
2023-10-02 21:31:16 +02:00
Lukas Wirth
e8a2673159
Add VariantIdx back
2023-10-02 21:31:16 +02:00
Lukas Wirth
f14b7c9443
Move FieldIdx and Layout to rustc_target
2023-10-02 21:31:16 +02:00
Lukas Wirth
b47ad3b744
Bring back generic FieldIdx
2023-10-02 21:31:11 +02:00
Lukas Wirth
3b99d73f5a
Unglob rustc_abi imports
2023-10-02 21:29:19 +02:00
bors
08c429f241
Auto merge of #11596 - blyxyas:fix-fp-needless_pass_by_ref_mut, r=Jarcho
...
Move `needless_pass_by_ref_mut`: `suspicious` -> `nursery`
[Related to [this Zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/needless_pass_by_ref_mut.20isn't.20ready.20for.20stable )]
`needless_pass_by_ref_mut` has been released with some important bugs (notably having a lot of reported false positives and an ICE). So it may not be really ready for being in stable until these problems are solved. This PR changes the lint's category from `suspicious` to `nursery`, just that.
changelog: none
2023-10-02 18:40:32 +00:00
blyxyas
07e63291ec
Modify tests to account for the new allow-by-default needless_pass_by_ref_mut
2023-10-02 20:14:43 +02:00
4gboframram
44c9818993
Improve wording of hint::black_box
docs
...
The wording is a bit confusing.
Co-authored-by: Chris Denton <christophersdenton@gmail.com>
2023-10-02 20:07:14 +02:00
onur-ozkan
2c8759ef8a
ensure the parent path's existence on x install
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-02 20:48:53 +03:00
bors
8e47113d71
Auto merge of #116331 - lqd:jemalloc-update, r=nnethercote
...
update jemalloc-sys to most recent release
I wouldn't expect this to show perf improvements: IIUC this release should only contain a bugfix.
cc `@nnethercote`
r? `@ghost`
2023-10-02 17:48:05 +00:00
Nilstrieb
6ca07235a6
Replace HashMap
with IndexMap
in pattern binding resolve
...
It will be iterated over, so we should avoid using `HashMap`.
2023-10-02 19:12:42 +02:00
bors
43d10428c8
Auto merge of #3099 - RalfJung:abi-target-feature, r=RalfJung
...
add test for a function ABI mismatch due to target features
Cc https://github.com/rust-lang/miri/issues/3095
2023-10-02 16:32:57 +00:00
Ralf Jung
cfbcc0e6f5
add test for a function ABI mismatch due to target features
2023-10-02 18:30:03 +02:00
bors
5ead7452e5
Auto merge of #116346 - matthiaskrgr:rollup-uwepk8j, r=matthiaskrgr
...
Rollup of 3 pull requests
Successful merges:
- #116313 (Some small cleanups in `rustc_abi`)
- #116326 (Correct misleading std::fmt::Binary example (#116165 ))
- #116340 (`skip_binder` to `instantiate_identity`)
r? `@ghost`
`@rustbot` modify labels: rollup
2023-10-02 15:56:33 +00:00
Jakub Beránek
209789ef4c
Add artifact size and step duration summaries from opt-dist
to github job summary
2023-10-02 17:54:11 +02:00
asquared31415
34ea540720
add must_use on pointer equality functions
2023-10-02 15:10:51 +00:00
Matthias Krüger
cfe9e13627
Rollup merge of #116340 - lcnr:early-binder-skip_binder, r=compiler-errors
...
`skip_binder` to `instantiate_identity`
2023-10-02 16:23:54 +02:00
Matthias Krüger
b3853ccc9d
Rollup merge of #116326 - Colonial-Dev:issue-116165-fix, r=joshtriplett
...
Correct misleading std::fmt::Binary example (#116165 )
Nothing too crazy...
- Add two to the width specifier (so all 32 bits are correctly displayed)
- Pad out the compared string so the assert passes
- Add `// Note` comment highlighting the need for the extra width when using the `#` flag.
The exact contents (and placement?) of the note are, of course, highly bikesheddable.
2023-10-02 16:23:53 +02:00
Matthias Krüger
e51a2aaa4e
Rollup merge of #116313 - nnethercote:rustc_abi, r=the8472
...
Some small cleanups in `rustc_abi`
Minor things I found while looking at this crate's code.
r? `@the8472`
2023-10-02 16:23:53 +02:00
Chinedu Francis Nwafili
bf4df0617f
Tidy
2023-10-02 10:08:03 -04:00
Chinedu Francis Nwafili
9bb55a038f
Tidy
2023-10-02 09:54:45 -04:00
Chinedu Francis Nwafili
67379c4006
Address misc feedback
2023-10-02 08:59:31 -04:00