| Age | Commit message (Collapse) | Author | Lines |
|
[stable] 1.74.1 release
This includes backports of:
* Dispose llvm::TargetMachines prior to llvm::Context being disposed #118464
* clarify fn discriminant guarantees: only free lifetimes may get erased #118006
* Move subtyper below reveal_all and change reveal_all #116415
* Make subtyping explicit in MIR #115025 (needed for above)
As well as infrastructure fix:
* Don't ask for a specific branch in cargotest #118597
r? `@Mark-Simulacrum`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Josh Stone <cuviper@gmail.com>
|
|
If the TargetMachine is disposed after the Context is disposed, it can
lead to use after frees in some cases.
I've observed this happening occasionally on code compiled for
aarch64-pc-windows-msvc using `-Zstack-protector=strong` but other users
have reported AVs from host aarch64-pc-windows-msvc compilers as well.
|
|
[stable] Prepare 1.74.0 release
https://forge.rust-lang.org/release/process.html#promote-branches-t-3-days-monday
Also backports:
* Disabling specialization as an alternative backport of "Fix excessive initialization and reads beyond EOF in io::copy(_, Vec<u8>) specialization #117576"
* coverage: Avoid creating malformed macro name spans #117827
r? `@Mark-Simulacrum`
|
|
Without the workaround applied, this test will produce malformed mappings that
cause `llvm-cov` to fail.
(And if it does emit well-formed mappings, they should be obviously incorrect.)
|
|
This method is trying to detect macro invocations, so that it can split a span
into two parts just after the `!` of the invocation.
Under some circumstances (probably involving nested macros), it gets confused
and produces a span that is larger than the original span, and possibly extends
outside its enclosing function and even into an adjacent file.
In extreme cases, that can result in malformed coverage mappings that cause
`llvm-cov` to fail. For now, we at least want to detect these egregious cases
and avoid them, so that coverage reports can still be produced.
|
|
the fix on nightly is recent and should get time to bake, removal
of the optimization is the less risky approach for a backport
|
|
|
|
[beta] Clippy beta backport
Follow-up to the stable backport done in
- #116364: https://github.com/rust-lang/rust/pull/116364/commits/d3f6573c121b383d686ee013f24a7ae06c0e344b
r? `@Mark-Simulacrum`
|
|
[beta] backports
- dropck_outlives check whether generator witness needs_drop #117134
- Make sure that predicates with unmentioned bound vars are still considered global in the old solver #117589
- Check binders with bound vars for global bounds that don't hold #117637
- generator layout: ignore fake borrows #117712
r? ghost
|
|
(cherry picked from commit 92267c9794accc7fb990598f23de4ec4b3831c6d)
|
|
also adds some comments
(cherry picked from commit 992d93f687c75f8f5ee69e0fb43bff509c7c9cb8)
|
|
(cherry picked from commit a42eca42df821a1d6e74a931195a00258f94bd6a)
|
|
(cherry picked from commit bf360d407eb36ebb0cf508f6d6df9a41adf27229)
|
|
(cherry picked from commit 58351ae03f19520a586e7c3c1b13e74a9613d1d5)
|
|
(instead of just late bound vars)
(cherry picked from commit 2beca157c96329da93320de83bdb7192bf02fa96)
|
|
global in the old solver
(cherry picked from commit 32294fc0ed1810a16fcea649955a9b21ea061734)
|
|
(cherry picked from commit dda5e32ab0756642a5541678f5f42a3fe207eb6f)
|
|
(cherry picked from commit a582e9638b1653c269a4cba0ed00f78eb138b7e7)
|
|
(cherry picked from commit 57253552de475856a1f3bddedcd76e775892f770)
|
|
(cherry picked from commit f0df3d2dfbdab3567520366c979df4e20b2796f9)
|
|
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
|
|
[beta] backports
- ensure the parent path's existence on `x install` #116349
- Remove `cfg_match` from the prelude #117162
- improve and fix `x install` #117383
- Update to LLVM 17.0.4 #117436
r? cuviper
|
|
(cherry picked from commit 9df857f658ad3acfdf45268952911d51ad58123a)
|
|
Fix: Write access check of `prefix` and `sysconfdir`
when DESTDIR is present.
Improvement: Instead of repeatedly reading `DESTDIR` within
each `fn prepare_dir` usage, read it once and pass it to
the `fn prepare_dir`.
Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit 4b14048d6037a2da5601952a2dd36fe67d04218b)
|
|
(cherry picked from commit 0b96e479ca11daf3bdc5a1a6f002e8bbe516f487)
|
|
Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit 2c8759ef8a91b70b567a7459694635ed70c19248)
|
|
[beta] backports and stage0 bump
- Bump stage0 to released stable compiler
- Hide host effect params from docs #116670
- Fix a performance regression in obligation deduplication. #116826
- Make `#[repr(Rust)]` and `#[repr(C)]` incompatible with one another #116829
- Update to LLVM 17.0.3 #116840
- Disable effects in libcore again #116856
- revert rust-lang/rust#114586 #116879
r? cuviper
|
|
[beta-1.74] Update cargo
1 commits in 22a976c6fb1bef45abcf182b4c7def87ad8b4a4d..ecb9851afd3095e988daaa35a48bc7f3cb748e04
2023-10-12 00:06:40 +0000 to 2023-10-18 20:42:16 +0000
- [beta-1.74.0] Partial-version spec support (rust-lang/cargo#12847)
r? ghost
|
|
(cherry picked from commit a1e274f1721f6be4a36afe10e57a6825eeeaf848)
|
|
(cherry picked from commit bcdd3d77397295f1e20cd257c306d25c3a32dde2)
|
|
(cherry picked from commit ab22470eb3592f41634e411ffe98343f70053e57)
|
|
(cherry picked from commit d0b99e3efe62b5acc107da9c84331eae6cbe5a0d)
|
|
Commit 8378487 from #114611 changed the location of an obligation
deduplication step in `opt_normalize_projection_type`. This meant that
deduplication stopped happening on one path where it was still
necessary, causing a couple of drastic performance regressions.
This commit moves the deduplication back to the old location. The good
news is that #114611 had four commits and 8378487 was of minimal
importance, so the perf benefits from that PR remain.
Fixes #116780, #116797.
(cherry picked from commit 91f2fbc867bfc31f2e103b09e605c61f1a450b33)
|
|
const trait things in libcore
(cherry picked from commit 16f8396f6df6902eeef580396785ab8888c3718b)
|
|
(cherry picked from commit 6724f9926c9e8c2d37e3e68e44238897bd89fddf)
|
|
(cherry picked from commit cfb6afa2965a1504f366eb258193219c4a820141)
|
|
(cherry picked from commit 8f2af7e010945e6d57e839db2673e276e8bf6532)
|
|
(cherry picked from commit c4e61faf2e078dc30b62488326404137600e5e11)
|
|
(cherry picked from commit 20363f40a938d05df68a775bacc9ca52c7490c7c)
|
|
|
|
|