about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-12-18Auto merge of #119082 - matthiaskrgr:rollup-3pzzwxk, r=matthiaskrgrbors-5/+15
Rollup of 3 pull requests Successful merges: - #118941 (llvm-wrapper: adapt for LLVM API changes) - #119068 (Copy 1.74.1 release notes to master) - #119080 (Comment out `change-id` in `config.example.toml`) r? `@ghost` `@rustbot` modify labels: rollup
2023-12-18Rustup to rustc 1.76.0-nightly (6a6287132 2023-12-17)bjorn3-1/+1
2023-12-18Sync from rust 6a62871320e262661bb1a0ea7f8aec9d3abeddf2bjorn3-1/+1
2023-12-18fix computing the offset of an unsized field in a packed structbjorn3-10/+14
cc rust-lang/rust#118540 Fixes rust-lang/rustc_codegen_cranelift#1435
2023-12-18Update booksrustbot-0/+0
2023-12-18fix dynamic size/align computation logic for packed types with dyn trait tailbjorn3-22/+38
cc rust-lang/rust#118538
2023-12-18Rollup merge of #119080 - onur-ozkan:comment-change-id-in-example-config, ↵Matthias Krüger-5/+5
r=Kobzol Comment out `change-id` in `config.example.toml` This way, we only update CONFIG_CHANGE_HISTORY for major changes, which is much simpler (and updating example.toml doesn't make much sense) r? `@Kobzol` (as this was mainly your idea)
2023-12-18Rollup merge of #119068 - sksat:copy-1.74.1-release-note-to-master, ↵Matthias Krüger-0/+7
r=Mark-Simulacrum Copy 1.74.1 release notes to master - #119065 - this cherry-pick 1.74.1 release note from #118607(66033ec4e5762bc7d6b274938c294ac65e12161d) Fixes #119065.
2023-12-18Rollup merge of #118941 - krasimirgg:llvm-cov, r=nikicMatthias Krüger-0/+3
llvm-wrapper: adapt for LLVM API changes Adapt for https://github.com/llvm/llvm-project/commit/8ecbb0404d740d1ab173554e47cef39cd5e3ef8c. r? `@nikic` `@rustbot` label: +llvm-main
2023-12-18Auto merge of #119024 - lqd:linker-docs, r=petrochenkovbors-4/+57
Document unstable linker flags in the unstable book This PR: - removes the unstable linker flavors from the stable documentation - documents the unstable `-C linker-flavor` values in the unstable book (including the ones previously described as stable) - documents the unstable `-C link-self-contained` components in the unstable book I don't know if these have some common reviewers, but if not r? `@petrochenkov` as the most knowledgeable person in this area. Please feel free to reassign, I know that you are quite busy.
2023-12-18Implement has_ptr_meta without computing type layoutbjorn3-5/+9
This matches type_has_metadata in cg_ssa and doesn't require computing the layout of the type. It is also a bit faster.
2023-12-18Fix test for size_of_val and align_of_val panicking on extern typesbjorn3-11/+0
2023-12-18Panic for size_of_val and align_of_val of extern typebjorn3-58/+85
cc rust-lang/rust#118534
2023-12-18Check generic params after sigature for main-fn-tyr0cky-52/+69
2023-12-18Auto merge of #118584 - gurry:118144-projection-kind-mismatched, r=WaffleLapkinbors-36/+51
Fix ICE `ProjectionKinds Deref and Field were mismatched` Fix #118144 Removed the check that ICEd if the sequence of projection kinds were different across captures. Instead we now sort based only on `Field` projection kinds.
2023-12-18Comment out `change-id` in `config.example.toml`onur-ozkan-5/+5
This way, we only update CONFIG_CHANGE_HISTORY for major changes, which is much simpler (and updating example.toml doesn't make much sense) Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-18Auto merge of #117818 - fmease:properly-reject-defaultness-on-free-consts, ↵bors-13/+43
r=cjgillot Properly reject `default` on free const items Fixes #117791. Technically speaking, this is a breaking change but I doubt it will lead to any real-world regressions (maybe in some macro-trickery crates?). Doing a crater run probably isn't worth it.
2023-12-18llvm-wrapper: adapt for LLVM API changesKrasimir Georgiev-0/+3
Adapt for https://github.com/llvm/llvm-project/commit/8ecbb0404d740d1ab173554e47cef39cd5e3ef8c.
2023-12-18Fix ICE `ProjectionKinds Deref and Field were mismatched`Gurinder Singh-36/+51
2023-12-18Auto merge of #119070 - lnicola:sync-from-ra, r=lnicolabors-476/+1079
Subtree update of `rust-analyzer`
2023-12-18Use `.into_diagnostic()` less.Nicholas Nethercote-130/+109
This commit replaces this pattern: ``` err.into_diagnostic(dcx) ``` with this pattern: ``` dcx.create_err(err) ``` in a lot of places. It's a little shorter, makes the error level explicit, avoids some `IntoDiagnostic` imports, and is a necessary prerequisite for the next commit which will add a `level` arg to `into_diagnostic`. This requires adding `track_caller` on `create_err` to avoid mucking up the output of `tests/ui/track-diagnostics/track4.rs`. It probably should have been there already.
2023-12-18fix typo in stable doc codegen-options chapterRémy Rakic-1/+1
2023-12-18describe unstable self-contained linking components in the unstable bookRémy Rakic-0/+24
2023-12-18Add new tier 3 aarch64-apple-watchos targetleohowell-0/+24
2023-12-18Auto merge of #119069 - matthiaskrgr:rollup-xxk4m30, r=matthiaskrgrbors-47/+162
Rollup of 5 pull requests Successful merges: - #118852 (coverage: Skip instrumenting a function if no spans were extracted from MIR) - #118905 ([AIX] Fix XCOFF metadata) - #118967 (Add better ICE messages for some undescriptive panics) - #119051 (Replace `FileAllocationInfo` with `FileEndOfFileInfo`) - #119059 (Deny `~const` trait bounds in inherent impl headers) r? `@ghost` `@rustbot` modify labels: rollup
2023-12-18dont discard overflow from normalizes-to goalslcnr-23/+82
2023-12-18track the source of nested goalslcnr-81/+173
2023-12-18Merge commit '21b06c1beb9bb59369ffd652f5d617bcf6952e05' into sync-from-raLaurențiu Nicola-476/+1079
2023-12-18Rollup merge of #119059 - fmease:no-tilde-const-in-inh-impl-headers, r=fee1-deadMatthias Krüger-20/+36
Deny `~const` trait bounds in inherent impl headers Follow-up to #117817. Implements https://github.com/rust-lang/rust/pull/117817#discussion_r1416213747. Fixes #117004. r? fee1-dead or compiler
2023-12-18Rollup merge of #119051 - ChrisDenton:wine, r=workingjubileeMatthias Krüger-6/+8
Replace `FileAllocationInfo` with `FileEndOfFileInfo` This fixes WINE support
2023-12-18Rollup merge of #118967 - RossSmyth:panic-messages, r=TaKO8KiMatthias Krüger-4/+11
Add better ICE messages for some undescriptive panics Add some better messages at some panics re: #118955 I took a look at some others but either was not able to figure out what they did, or it was unclear what they should say instead. For example in the query system whether each time a poisoned value is matched upon if they should all just call `FatalError.raise()`
2023-12-18Rollup merge of #118905 - bzEq:revert-u64-on-xcoff, r=WaffleLapkinMatthias Krüger-10/+14
[AIX] Fix XCOFF metadata #118344 accidentally changed the way to get metadata from XCOFF file and broken our internal CI. This PR reverts part of #118344 .
2023-12-18Rollup merge of #118852 - Zalathar:no-spans, r=cjgillotMatthias Krüger-7/+93
coverage: Skip instrumenting a function if no spans were extracted from MIR The immediate symptoms of #118643 were fixed by #118666, but some users reported that their builds now encounter another coverage-related ICE: ``` error: internal compiler error: compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs:98:17: A used function should have had coverage mapping data but did not: (...) ``` I was able to reproduce at least one cause of this error: if no relevant spans could be extracted from a function, but the function contains `CoverageKind::SpanMarker` statements, then codegen still thinks the function is instrumented and complains about the fact that it has no coverage spans. This PR prevents that from happening in two ways: - If we didn't extract any relevant spans from MIR, skip instrumenting the entire function and don't create a `FunctionCoverateInfo` for it. - If coverage codegen sees a `CoverageKind::SpanMarker` statement, skip it early and avoid creating `func_coverage`. --- Fixes #118850.
2023-12-18copy 1.74.1 release notes to masterMark Rousskov-0/+7
2023-12-18Auto merge of #119063 - nnethercote:dcx, r=compiler-errorsbors-1392/+1296
Consistent `Handler` naming This PR implements the renaming described in https://github.com/rust-lang/compiler-team/issues/699. r? `@compiler-errors`
2023-12-18Rename many `DiagCtxt` and `EarlyDiagCtxt` locals.Nicholas Nethercote-2/+2
2023-12-18Fix up some `ui-fulldeps` tests.Nicholas Nethercote-22/+22
2023-12-18Rename many `DiagCtxt` arguments.Nicholas Nethercote-2/+2
2023-12-18Rename many `DiagCtxt` and `EarlyDiagCtxt` locals.Nicholas Nethercote-261/+253
2023-12-18Rename many `EarlyDiagCtxt` arguments.Nicholas Nethercote-196/+196
2023-12-18Rename many `DiagCtxt` arguments.Nicholas Nethercote-353/+317
2023-12-18Rename `__diagnostic_handler_sess` as `_sess`.Nicholas Nethercote-4/+5
2023-12-18Rename `default_handler` as `default_dcx`.Nicholas Nethercote-2/+2
2023-12-18Rename `new_handler` as `new_dcx`.Nicholas Nethercote-10/+6
2023-12-18Rename `DiagnosticDeriveKind::Diagnostic::handler` as ↵Nicholas Nethercote-10/+10
`DiagnosticDeriveKind::Diagnostic::dcx`.
2023-12-18Rename `CollectProcMacros::handler` as `CollectProcMacros::dcx`.Nicholas Nethercote-11/+11
2023-12-18Rename `EarlyDiagCtxt::handler` as `EarlyDiagCtxt::dcx`.Nicholas Nethercote-17/+14
2023-12-18Rename `SilentEmitter::fatal_handler` as `SilentEmitter::fatal_dcx`.Nicholas Nethercote-5/+5
2023-12-18Rename `Session::span_diagnostic` as `Session::dcx`.Nicholas Nethercote-1/+1
2023-12-18Rename `UnstableOptions::diagnostic_handler_flags` as ↵Nicholas Nethercote-4/+3
`UnstableOptions::dcx_flags`.