about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-09-18Rollup merge of #115908 - cjgillot:lint-noclone, r=oli-obkMatthias Krüger-21/+4
Do not clone MIR for const-prop lint. Addresses https://github.com/rust-lang/rust/pull/115797#issuecomment-1721250533
2023-09-18Rollup merge of #115907 - RalfJung:interner-check, r=compiler-errorsMatthias Krüger-0/+24
nop_lift macros: ensure that we are using the right interner Right now someone could put down the wrong list name when using these macros, and everything would still build. Nothing does a type-check to ensure that the `$set` contains element of type `Self::Lifted`. Let's fix that. For lists this is fairly easy; for the other interners we need to unwrap some newtypes which makes this more complicated.
2023-09-18Rollup merge of #115902 - Mark-Simulacrum:bump-ci, r=albertlarsan68Matthias Krüger-3/+3
Fix up a few CI images This forward-ports changes made on the stable branch to fix CI (https://github.com/rust-lang/rust/pull/115787).
2023-09-18Rollup merge of #115838 - lcnr:added-goals, r=compiler-errorsMatthias Krüger-92/+160
inspect: closer to proof trees for coherence a continuation of #115751. Now explicitly store the added goals r? ```@compiler-errors```
2023-09-18Rollup merge of #115811 - bzEq:make-aix-known, r=Mark-SimulacrumMatthias Krüger-0/+8
Make AIX known by bootstrap Use `x.py` to build rustc on AIX directly is failing ``` unknown OS type: AIX Build completed unsuccessfully in 0:00:00 ``` If kernel is `AIX`, we should return default triple `powerpc64-ibm-aix` for current rustc.
2023-09-18Rollup merge of #115724 - tgross35:mailmap, r=Mark-SimulacrumMatthias Krüger-0/+2
Add myself to the mailmap
2023-09-18Rollup merge of #115558 - tshepang:patch-4, r=Mark-SimulacrumMatthias Krüger-1/+0
issue has since been fixed
2023-09-18Auto merge of #115923 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 6 commits in d5336f813df39d476e61fc46daabb1446350660a..b4ddf95ad9954118ac0dae835f2966394ad04c02 2023-09-14 19:55:49 +0000 to 2023-09-18 03:48:09 +0000 - doc: differentiate defaults for split-debuginfo (rust-lang/cargo#12680) - feat(cli): Add '-n' to dry-run (rust-lang/cargo#12660) - feat: stabilize credential-process and registry-auth (rust-lang/cargo#12649) - refactor: use `RegistryOrIndex` enum to replace two booleans (rust-lang/cargo#12677) - doc: clarify caret requirements (rust-lang/cargo#12679) - feat(pkgid): Allow incomplete versions when unambigious (rust-lang/cargo#12614) r? ghost
2023-09-18Auto merge of #115831 - nnethercote:remove-unused-Lift-impls, r=bjorn3bors-212/+108
Remove unused `Lift` impls r? `@bjorn3`
2023-09-18Update cargoWeihang Lo-0/+0
2023-09-18Auto merge of #108043 - a1phyr:string_write_fmt, r=workingjubileebors-2/+22
Small wins for formatting-related code This PR does two small wins in fmt code: - Override `write_char` for `PadAdapter` to use inner buffer's `write_char` - Override some `write_fmt` implementations to avoid avoid the additional indirection and vtable generated by the default impl.
2023-09-18Auto merge of #115914 - ↵bors-39/+158
GuillaumeGomez:turn-custom_code_classes_in_docs-into-warning, r=Manishearth Turn custom code classes in docs into warning By habit, since it was a new feature gate, I added a check which emitted an error in case the new syntax was used. However, since rustdoc tags parser was accepting *everything*, using the "new" syntax should never ever emit errors. It now emits a warning. Follow-up of #110800. cc `@Manishearth` r? `@notriddle`
2023-09-18address review commentTshepang Mbambo-0/+1
See https://github.com/rust-lang/rust/pull/115558#issuecomment-1722601187
2023-09-18Auto merge of #115547 - WaffleLapkin:spin_looping, r=Mark-Simulacrumbors-24/+17
Simplify `core::hint::spin_loop` The grouping was inconsistent and not really helpful. r? t-libs
2023-09-18Remove more unused `Lift` impls.Nicholas Nethercote-128/+37
2023-09-18Remove unused `Lift` derives.Nicholas Nethercote-51/+49
I found these by commenting out all `Lift` derives and then adding back the ones that were necessary to successfully compile.
2023-09-18Rename `CloneLiftImpls` as `TrivialLiftImpls`.Nicholas Nethercote-4/+4
To match `TrivialTypeTraversalImpls` and `TrivialTypeTraversalAndLiftImpls`, and because the `Clone` doesn't mean anything.
2023-09-18Remove unused `Display` impls.Nicholas Nethercote-6/+0
2023-09-18Remove `RegionHighlightMode::tcx`.Nicholas Nethercote-23/+18
It's easier to pass it in to the one method that needs it (`highlighting_region_vid`) than to store it in the type. This means `RegionHighlightMode` can impl `Default`.
2023-09-17Specialize `fmt::Write::write_fmt` for `Sized` typesBenoît du Garreau-2/+22
2023-09-17nop_lift macros: ensure that we are using the right internerRalf Jung-0/+24
2023-09-17Update src/librustdoc/markdown.rsManish Goregaokar-1/+1
Co-authored-by: Michael Howell <michael@notriddle.com>
2023-09-17Auto merge of #115334 - RalfJung:transparent-aligned-zst, r=compiler-errorsbors-88/+91
repr(transparent): it's fine if the one non-1-ZST field is a ZST This code currently gets rejected: ```rust #[repr(transparent)] struct MyType([u16; 0]) ``` That clearly seems like a bug to me: `repr(transparent)` [got defined ](https://github.com/rust-lang/rust/issues/77841#issuecomment-716575747) as having any number of 1-ZST fields plus optionally one more field; `MyType` clearly satisfies that definition. This PR changes the `repr(transparent)` logic to actually match that definition.
2023-09-17Auto merge of #115909 - Dylan-DPC:rollup-uf96r2d, r=Dylan-DPCbors-434/+640
Rollup of 6 pull requests Successful merges: - #114965 (Remove Drop impl of mpsc Receiver and (Sync)Sender) - #115434 (make `Debug` impl for `ascii::Char` match that of `char`) - #115477 (Stabilize the `Saturating` type) - #115611 (add diagnostic for raw identifiers in format string) - #115654 (improve PassMode docs) - #115862 (Migrate `compiler/rustc_hir_typeck/src/callee.rs` to translatable diagnostics) r? `@ghost` `@rustbot` modify labels: rollup
2023-09-17Update tests for `custom_code_classes_in_docs` featureGuillaume Gomez-7/+14
2023-09-17Don't emit an error if the `custom_code_classes_in_docs` feature is disabled ↵Guillaume Gomez-32/+144
when its syntax is used.
2023-09-17Auto merge of #114750 - Enselic:metadata-dep-info, r=compiler-errorsbors-28/+49
Make `.rmeta` file in `dep-info` have correct name (`lib` prefix) Since `filename_for_metadata()` and `OutputFilenames::path(OutputType::Metadata)` had different logic for the name of the metadata file, the `.d` file contained a file name different from the actual name used. Share the logic to fix the out-of-sync name. Without this fix, the `.d` file contained dash-separated_something-extra.rmeta: dash-separated.rs instead of libdash_separated_something-extra.rmeta: dash-separated.rs which is the name of the file that is actually written by the compiler. Worth noting: It took me several iterations to get all tests to pass, so I am relatively confident that this PR does not break anything. Closes #68839
2023-09-17Rollup merge of #115862 - clubby789:migrate-callee-translatable, ↵Dylan DPC-54/+101
r=compiler-errors Migrate `compiler/rustc_hir_typeck/src/callee.rs` to translatable diagnostics
2023-09-17Rollup merge of #115654 - RalfJung:pass-mode-cast, r=compiler-errorsDylan DPC-96/+118
improve PassMode docs
2023-09-17Rollup merge of #115611 - lukas-code:format!("{r#ident}"), r=compiler-errorsDylan DPC-35/+158
add diagnostic for raw identifiers in format string Format strings don't support raw identifiers (e.g. `format!("{r#type}")`), but they do support keywords in the format string directly (e.g. `format!("{type}")`). This PR improves the error output when attempting to use a raw identifier in a format string and adds a machine-applicable suggestion to remove the `r#`. fixes https://github.com/rust-lang/rust/issues/115466
2023-09-17Rollup merge of #115477 - kellerkindt:stabilized_int_impl, r=dtolnayDylan DPC-226/+220
Stabilize the `Saturating` type Closes #87920 Closes #92354 Stabilization report https://github.com/rust-lang/rust/issues/87920#issuecomment-1652346124 FCP https://github.com/rust-lang/rust/issues/87920#issuecomment-1676438885
2023-09-17Rollup merge of #115434 - soqb:ascii-char-manual-debug, r=dtolnayDylan DPC-2/+39
make `Debug` impl for `ascii::Char` match that of `char` # Objective use a more recognisable format for the `Debug` impl on `ascii::Char` than the derived one based off the enum variants. The alogorithm used is the following: - escape `ascii::Char::{Null, CharacterTabulation, CarraigeReturn, LineFeed, ReverseSolidus, Apostrophe}` to `'\0'`, `'\t'`, `'\r'`, `'\n'`, `'\\'` and `'\''` respectively. these are the same escape codes as `<char as Debug>::fmt` uses. - if `u8::is_ascii_control` is false, print the character wrapped in single quotes. - otherwise, print in the format `'\xAB'` where `A` and `B` are the hex nibbles of the byte. (`char` uses unicode escapes and this seems like the corresponding ascii format). Tracking issue: https://github.com/rust-lang/rust/issues/110998
2023-09-17Rollup merge of #114965 - benschulz:mpsc-drop, r=dtolnayDylan DPC-21/+4
Remove Drop impl of mpsc Receiver and (Sync)Sender This change removes the empty `Drop` implementations for `mpsc::Receiver`, `mpsc::Sender` and `mpsc::SyncSender`. These implementations do not specify `#[may_dangle]`, so by removing them we make `mpsc` types play nice with drop check. This was previously attempted in [#105243](https://github.com/rust-lang/rust/pull/105243#issuecomment-1337188646) but then [abandoned due to a test failure](https://github.com/rust-lang/rust/pull/105243#issuecomment-1337227970). I've aligned the test with those for `Mutex` and `RwLock`.
2023-09-17Auto merge of #114452 - weiznich:feature/diagnostic_on_unimplemented, ↵bors-39/+360
r=compiler-errors `#[diagnostic::on_unimplemented]` without filters This commit adds support for a `#[diagnostic::on_unimplemented]` attribute with the following options: * `message` to customize the primary error message * `note` to add a customized note message to an error message * `label` to customize the label part of the error message The relevant behavior is specified in [RFC-3366](https://rust-lang.github.io/rfcs/3366-diagnostic-attribute-namespace.html)
2023-09-17Do not clone MIR for const-prop lint.Camille GILLOT-21/+4
2023-09-17Auto merge of #115514 - onur-ozkan:bootstrap-codebase-improvements, ↵bors-105/+97
r=albertlarsan68 optimize and cleanup bootstrap source I suggest reviewing this commit by commit.
2023-09-17Auto merge of #113748 - clarfonthey:ip-step, r=dtolnaybors-2/+67
impl Step for IP addresses ACP: rust-lang/libs-team#235 Note: since this is insta-stable, it requires an FCP. Separating out from the bit operations PR since it feels logically disjoint, and so their FCPs can be separate.
2023-09-17micro-level optimizations for bootstraponur-ozkan-77/+60
Overall optimizations for bootstrap on conditions, assertions, trait implementations, etc. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-09-17update the beginning part of `bootstrap/README.md`onur-ozkan-3/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-09-17Auto merge of #115782 - a1phyr:improve_pad_adapter, r=dtolnaybors-0/+8
Improve `PadAdapter::write_char` Split from #108043
2023-09-17Auto merge of #113753 - dvdsk:master, r=dtolnaybors-1/+81
Add implementation for thread::sleep_until - Feature gate is `thread::sleep_until` - Tracking issue is: #113752 - APC: https://github.com/rust-lang/libs-team/issues/237
2023-09-16Auto merge of #115900 - matthiaskrgr:rollup-3ba15da, r=matthiaskrgrbors-35/+78
Rollup of 8 pull requests Successful merges: - #115247 (Document std limitations before/after main) - #115329 (fix std::primitive doc: homogenous -> homogeneous) - #115487 (Improve documentation on when signes are printed by default) - #115560 (Update doc for `alloc::format!` and `core::concat!`) - #115836 (update rust_analyzer_settings.json) - #115884 (make ty::Const debug printing less verbose) - #115890 (Migrate GUI colors test to original CSS color format) - #115895 (Improve Vec(Deque)::truncate documentation) r? `@ghost` `@rustbot` modify labels: rollup
2023-09-16Move to older, mirrored redox installMark Rousskov-1/+1
2023-09-16Bump to supported UbuntuMark Rousskov-2/+2
The 22.10 Ubuntu repositories were returning 404s in last stable build.
2023-09-16Rollup merge of #115895 - 52:patch-docs-vec-truncate, r=dtolnayMatthias Krüger-4/+4
Improve Vec(Deque)::truncate documentation Fixes #115784
2023-09-16Rollup merge of #115890 - GuillaumeGomez:migrate-gui-test-color-41, r=notriddleMatthias Krüger-1/+1
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? `@notriddle`
2023-09-16Rollup merge of #115884 - RalfJung:const-debug-print, r=oli-obkMatthias Krüger-12/+26
make ty::Const debug printing less verbose Similar in spirit to https://github.com/rust-lang/rust/pull/115873
2023-09-16Rollup merge of #115836 - RalfJung:rust_analyzer_settings.json, ↵Matthias Krüger-2/+3
r=compiler-errors update rust_analyzer_settings.json This works around https://github.com/rust-lang/rust-analyzer/issues/15595, and avoids relying on the unspecified working directory of this command.
2023-09-16Rollup merge of #115560 - ShE3py:format-results, r=dtolnayMatthias Krüger-6/+10
Update doc for `alloc::format!` and `core::concat!` Closes #115551. Used comments instead of `assert!`s as [`std::fmt`](https://doc.rust-lang.org/std/fmt/index.html#usage) uses comments. Should all the str-related macros (`format!`, `format_args!`, `concat!`, `stringify!`, `println!`, `writeln!`, etc.) references each others? For instance, [`concat!`](https://doc.rust-lang.org/core/macro.concat.html) mentions that integers are stringified, but don't link to `stringify!`. `@rustbot` label +A-docs +A-fmt
2023-09-16Rollup merge of #115487 - ModProg:patch-1, r=dtolnayMatthias Krüger-2/+2
Improve documentation on when signes are printed by default I found the original formulation a bit irritating, but not sure if I really improved it.