about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2022-08-17Auto merge of #100677 - matthiaskrgr:rollup-au41ho1, r=matthiaskrgrbors-414/+577
Rollup of 15 pull requests Successful merges: - #99474 (Rustdoc json tests: New `@hasexact` test command) - #99972 (interpret: only consider 1-ZST when searching for receiver) - #100018 (Clean up `LitKind`) - #100379 (triagebot: add translation-related mention groups) - #100389 (Do not report cycle error when inferring return type for suggestion) - #100489 (`is_knowable` use `Result` instead of `Option`) - #100532 (unwind: don't build dependency when building for Miri) - #100608 (needless separation of impl blocks) - #100621 (Pass +atomics-32 feature for {arm,thumb}v4t-none-eabi) - #100646 (Migrate emoji identifier diagnostics to `SessionDiagnostic` in rustc_interface) - #100652 (Remove deferred sized checks (make them eager)) - #100655 (Update books) - #100656 (Update cargo) - #100660 (Fixed a few documentation errors) - #100661 (Fixed a few documentation errors) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-08-17Rollup merge of #100661 - PunkyMunky64:patch-1, r=thomccMatthias Krüger-3/+3
Fixed a few documentation errors Quick pull request; IEEE-754, not IEEE-745. May save someone a quick second some time.
2022-08-17Rollup merge of #100660 - PunkyMunky64:patch-2, r=thomccMatthias Krüger-3/+3
Fixed a few documentation errors Quick pull request; IEEE-754, not IEEE-745. May save someone a quick second some time.
2022-08-17Rollup merge of #100656 - ehuss:update-cargo, r=ehussMatthias Krüger-1/+1
Update cargo 3 commits in efd4ca3dc0b89929dc8c5f5c023d25978d76cb61..9809f8ff33c2b998919fd0432c626f0f7323697a 2022-08-12 01:28:28 +0000 to 2022-08-16 22:10:06 +0000 - Improve error message for an array value in the manifest (rust-lang/cargo#10944) - Fix file locking being not supported on Android raising an error (rust-lang/cargo#10975) - Bump to 0.66.0, update changelog (rust-lang/cargo#10983)
2022-08-17Rollup merge of #100655 - ehuss:update-books, r=ehussMatthias Krüger-0/+0
Update books ## nomicon 2 commits in 8d1e4dccf71114ff56f328f671f2026d8e6b62a2..8e6aa3448515a0654e347b5e2510f1d4bc4d5a64 2022-07-18 18:12:35 -0400 to 2022-08-15 15:36:13 -0700 - Update the `repr(transparent)` section to reflect the current state (rust-lang/nomicon#376) - [typo] typo on limits of lifetime chapter (rust-lang/nomicon#377) ## reference 5 commits in f3d3953bf3b158d596c96d55ce5366f9f3f972e9..e647eb102890e8927f488bea12672b079eff8d9d 2022-08-01 17:17:37 -0700 to 2022-08-16 11:35:27 -0700 - #[non_exhaustive] on variant blocks cross-crate as casts (rust-lang/reference#1249) - Revert let chains reference docs (rust-lang/reference#1251) - Update subtyping.md (rust-lang/reference#1240) - a fix about .await (rust-lang/reference#1245) - Be less specific about the representation of `+bundle` (rust-lang/reference#1246) ## book 2 commits in 36383b4da21dbd0a0781473bc8ad7ef0ed1b6751..42ca0ef484fcc8437a0682cee23abe4b7c407d52 2022-07-19 21:03:20 -0400 to 2022-08-12 21:52:02 -0400 - Missing period at end of sentence - Fix grammar in ch06-02 ## rust-by-example 8 commits in ee342dc91e1ba1bb1e1f1318f84bbe3bfac04798..03301f8ae55fa6f20f7ea152a517598e6db2cdb7 2022-07-27 11:06:36 -0300 to 2022-08-14 08:51:44 -0300 - Update print.md (rust-lang/rust-by-example#1597) - in Meta, replace 'playpen' with 'playground' (rust-lang/rust-by-example#1596) - Update doc comment to link to name field without compilation warning (rust-lang/rust-by-example#1595) - add line numbers for playpen fixes rust-lang/rust-by-example#1593 (rust-lang/rust-by-example#1594) - clarify that the map-reduce example relies on static data (rust-lang/rust-by-example#1592) - Update flow_control.md (rust-lang/rust-by-example#1591) - Remove duplicate line in the hello/print.md file (rust-lang/rust-by-example#1590) - Make rust editable in chapter on defaults (rust-lang/rust-by-example#1589) ## rustc-dev-guide 15 commits in 04f3cf0bb2f5a6ee2bfc4b1a6a6cd8c11d1c5531..d3daa1f28e169087becbc5e2b49ac91ca0405a44 2022-07-31 07:46:57 +0200 to 2022-08-13 10:00:38 +0900 - Improve the "Diagnostic items" chapter (rust-lang/rustc-dev-guide#1427) - date-check: crates-io - fix/improve compiler-debugging - Update src/compiler-debugging.md - add gdb tips for symbol-mangling-version - move references down to avoid clutter (rust-lang/rustc-dev-guide#1420) - update date-check format on github issue (rust-lang/rustc-dev-guide#1416) - Fix legend colors in dark mode - Add color for downloaded nodes - Add colors to diagram - Add bootstrapping diagram - date-check: rustc_codegen_ssa is still alive - note is now too old to be relevant - date-check: be more strict - make date-check more lightweight (rust-lang/rustc-dev-guide#1394) ## edition-guide 3 commits in c55611dd6c58bdeb52423b5c52fd0f3c93615ba8..6038be9d37d7251c966b486154af621d1794d7af 2022-02-21 14:21:39 +0100 to 2022-08-15 08:12:42 -0700 - use title "The Rust Edition Guide" everywhere (rust-lang/edition-guide#280) - "Creating a new project": add example using 'cargo new --edition YEAR' (rust-lang/edition-guide#279) - fixes rust-lang/edition-guide#277: mention rust 1.0 release month and year (rust-lang/edition-guide#278)
2022-08-17Rollup merge of #100652 - compiler-errors:no-defer-sized-checks, r=TaKO8KiMatthias Krüger-107/+37
Remove deferred sized checks (make them eager) Improves diagnostics spans... this doesn't seem to be the case anymore: ```rust // Some additional `Sized` obligations badly affect type inference. // These obligations are added in a later stage of typeck. pub(super) deferred_sized_obligations: RefCell<Vec<(Ty<'tcx>, Span, traits::ObligationCauseCode<'tcx>)>>, ```
2022-08-17Rollup merge of #100646 - finalchild:emoji-diag, r=compiler-errorsMatthias Krüger-18/+31
Migrate emoji identifier diagnostics to `SessionDiagnostic` in rustc_interface * Migrate emoji identifier diagnostics to `interface_ferris_identifier` and `interface_emoji_identifier`. This is my first PR! I'm learning how to migrate these diagnostics. Thanks in advance. r? rust-lang/diagnostics
2022-08-17Rollup merge of #100621 - taiki-e:armv4t-atomics-32, r=cuviperMatthias Krüger-2/+6
Pass +atomics-32 feature for {arm,thumb}v4t-none-eabi Similar to https://github.com/rust-lang/rust/commit/89582e8193e0da64a54c4ffae7f9fa64ed9fe2af, but for ARMv4t. Pre-v6 ARM target does not have atomic CAS, except for Linux and Android where atomic CAS is provided by compiler-builtins. So, there is a similar issue as thumbv6m. I have confirmed that enabling the `atomics-32` target feature fixes the problem in the project affected by this issue. (https://github.com/taiki-e/portable-atomic/pull/28#discussion_r946604136) Closes #100619 r? ``@nikic`` cc ``@Lokathor``
2022-08-17Rollup merge of #100608 - tshepang:needless-separation, r=TaKO8KiMatthias Krüger-2/+0
needless separation of impl blocks
2022-08-17Rollup merge of #100532 - RalfJung:unwind-miri, r=Mark-SimulacrumMatthias Krüger-1/+7
unwind: don't build dependency when building for Miri This is basically re-submitting https://github.com/rust-lang/rust/pull/94813. In that PR there was a suggestion to instead have bootstrap set a `RUST_CHECK` env var and use that rather than doing something Miri-specific. However, such an env var would mean that when switching between `./x.py check` and `./x.py build`, the build script gets re-run each time, which doesn't seem good. So I think for now checking for Miri probably causes fewer problems. r? ````@Mark-Simulacrum````
2022-08-17Rollup merge of #100489 - lcnr:is_knowable-Result, r=davidtwcoMatthias Krüger-8/+8
`is_knowable` use `Result` instead of `Option`
2022-08-17Rollup merge of #100389 - compiler-errors:return-type-suggestion-cycle, ↵Matthias Krüger-0/+75
r=cjgillot Do not report cycle error when inferring return type for suggestion The UI test is a good example of a case where this happens. The cycle is due to needing the value of the return type `-> _` to compute the variances of items in the crate, but then needing the variances of the items in the crate to do typechecking to infer what `-> _`'s real type is. Since we're already gonna emit an error in astconv, just delay the cycle bug as an error.
2022-08-17Rollup merge of #100379 - davidtwco:triagebot-diag, r=Mark-SimulacrumMatthias Krüger-163/+219
triagebot: add translation-related mention groups - Move some code around so that triagebot can ping relevant parties when translation logic is modified. - Add mention groups to triagebot for translation-related files/folders. - Auto-label pull requests with changes to translation-related files/folders with `A-translation`. r? `@Mark-Simulacrum`
2022-08-17Rollup merge of #100018 - nnethercote:clean-up-LitKind, r=petrochenkovMatthias Krüger-66/+73
Clean up `LitKind` r? ``@petrochenkov``
2022-08-17Rollup merge of #99972 - RalfJung:1zst, r=lcnrMatthias Krüger-1/+3
interpret: only consider 1-ZST when searching for receiver `repr(transparent)` currently entirely rejects ZST with alignment larger than 1 (which is odd, arguably [this](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=02870f29396fa948c3123cb53d869ad1) should be accepted), so this should be safe. And if it ever isn't safe then that is very likely a bug elsewhere in the compiler.
2022-08-17Rollup merge of #99474 - aDotInTheVoid:rustdoc-json-noinline-test-cleanup, ↵Matthias Krüger-39/+111
r=CraftSpider Rustdoc json tests: New @hasexact test command Alot of the time, we wanted to assert that a module had an exact set of items. Most of the time this was done by asserting that the ```@count``` of the module was `n`, and then doing `n` ```@has``` checks on the module. This was tedious, so often shortcuts were done. This PR adds a new command to jsondocck to allow consistently expressing this behavior, and then uses it to clean up the tests. ``@rustbot`` modify labels: +A-rustdoc-json +A-testsuite
2022-08-17`is_knowable` use `Result` instead of `Option`lcnr-8/+8
2022-08-16Fixed a few documentation errorsPunkyMunky64-3/+3
Quick pull request; IEEE-754, not IEEE-745. May save someone a quick second some time.
2022-08-16Fixed a few documentation errorsPunkyMunky64-3/+3
IEEE-754, not IEEE-745. May save someone a second sometime
2022-08-16Update cargoEric Huss-1/+1
2022-08-16Update booksEric Huss-0/+0
2022-08-16Remove deferred sized checksMichael Goulet-107/+37
2022-08-16Auto merge of #100644 - TaKO8Ki:rollup-n0o6a1t, r=TaKO8Kibors-47/+78
Rollup of 4 pull requests Successful merges: - #100243 (Remove opt_remap_env_constness from rustc_query_impl) - #100625 (Add `IpDisplayBuffer` helper struct.) - #100629 (Use `merged_ty` method instead of rewriting it every time) - #100630 (rustdoc JSON: Fix ICE with `pub extern crate self as <self_crate_name>`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-08-17Rollup merge of #100630 - Enselic:export_extern_crate_as_self, r=GuillaumeGomezTakayuki Maeda-2/+13
rustdoc JSON: Fix ICE with `pub extern crate self as <self_crate_name>` Closes #100531 r? `@GuillaumeGomez` `@rustbot` labels +A-rustdoc-json +T-rustdoc
2022-08-17Rollup merge of #100629 - GuillaumeGomez:merged-ty, r=compiler-errorsTakayuki Maeda-2/+2
Use `merged_ty` method instead of rewriting it every time `merged_ty` [source code](https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_typeck/check/coercion.rs.html#1331-1333) is quite literally the same, so instead of rewriting it, makes more sense to use the method instead. r? `@compiler-errors`
2022-08-17Rollup merge of #100625 - reitermarkus:ip-display-buffer, r=thomccTakayuki Maeda-30/+63
Add `IpDisplayBuffer` helper struct. This removes the dependency on `std::io::Write` for implementing `Display`, allowing it to be moved to `core` as proposed in https://github.com/rust-lang/rfcs/pull/2832.
2022-08-17Rollup merge of #100243 - kckeiks:remove-macros-in-query-system, r=cjgillotTakayuki Maeda-13/+0
Remove opt_remap_env_constness from rustc_query_impl 1st task off #96524. r? `@cjgillot`
2022-08-17Migrate emoji identifier diagnostics to `SessionDiagnostic`finalchild-18/+31
2022-08-16Auto merge of #100626 - Dylan-DPC:rollup-mwbm7kj, r=Dylan-DPCbors-5168/+5964
Rollup of 6 pull requests Successful merges: - #99942 (Fix nonsense non-tupled `Fn` trait error) - #100609 (Extend invalid floating point literal suffix suggestion) - #100610 (Ast and parser tweaks) - #100613 (compiletest: fix typo in runtest.rs) - #100616 (:arrow_up: rust-analyzer) - #100622 (Support 128-bit atomics on all aarch64 targets) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-08-16Simplify `IpDisplayBuffer` API.Markus Reiter-6/+10
2022-08-16Use `MaybeUninit<u8>` for `IpDisplayBuffer`.Markus Reiter-6/+14
2022-08-16Move `IpDisplayBuffer` into submodule.Markus Reiter-32/+36
2022-08-16Add `IpDisplayBuffer` helper struct.Markus Reiter-31/+48
2022-08-16rustdoc JSON: Fix ICE with `pub extern crate self as <self_crate_name>`Martin Nordholts-2/+13
2022-08-16Use `merged_ty` method instead of rewriting it every timeGuillaume Gomez-2/+2
2022-08-16Rollup merge of #100622 - taiki-e:aarch64-atomic-128, r=AmanieuDylan DPC-5/+5
Support 128-bit atomics on all aarch64 targets Some aarch64 targets currently set `max_atomic_width` to 64, but aarch64 always supports 128-bit atomics. r? `@Amanieu`
2022-08-16Rollup merge of #100616 - lnicola:rust-analyzer-2022-08-16, r=lnicolaDylan DPC-5108/+5774
:arrow_up: rust-analyzer r? `@ghost`
2022-08-16Rollup merge of #100613 - eltociear:patch-15, r=Mark-SimulacrumDylan DPC-1/+1
compiletest: fix typo in runtest.rs nonexistant -> nonexistent
2022-08-16Rollup merge of #100610 - nnethercote:ast-and-parser-tweaks, r=spastorinoDylan DPC-25/+14
Ast and parser tweaks r? `@spastorino`
2022-08-16Rollup merge of #100609 - chenyukang:fix-100527, r=davidtwcoDylan DPC-16/+83
Extend invalid floating point literal suffix suggestion Fixes #100527
2022-08-16Rollup merge of #99942 - compiler-errors:nonsense-un-tupled-fn-trait-error, ↵Dylan DPC-13/+87
r=cjgillot Fix nonsense non-tupled `Fn` trait error Given this code: ```rust #![feature(unboxed_closures)] fn a<F: Fn<usize>>(f: F) {} fn main() { a(|_: usize| {}); } ``` We currently emit this error: ``` error[E0631]: type mismatch in closure arguments --> src/main.rs:6:5 | 6 | a(|_: usize| {}); | ^ ---------- found signature of `fn(usize) -> _` | | | expected signature of `fn(usize) -> _` | note: required by a bound in `a` --> src/main.rs:3:9 | 3 | fn a<F: Fn<usize>>(f: F) {} | ^^^^^^^^^ required by this bound in `a` For more information about this error, try `rustc --explain E0631`. error: could not compile `playground` due to previous error ``` Notably, it says the same thing for "expected" and "found"! Fix the output so that we instead emit: ``` error[E0308]: mismatched types --> /home/gh-compiler-errors/test.rs:6:5 | 6 | a(|_: usize| {}); | ^ types differ | = note: expected trait `Fn<usize>` found trait `Fn<(usize,)>` note: required by a bound in `a` --> /home/gh-compiler-errors/test.rs:3:9 | 3 | fn a<F: Fn<usize>>(f: F) {} | ^^^^^^^^^ required by this bound in `a` error: aborting due to previous error ``` The error could still use some work, namely the "mismatched types" part, but I'm leaving it a bit rough since the only way you'd ever get this error is when you're messing with `#![feature(unboxed_closures)]`. Simply making sure we actually print out the difference in trait-refs is good enough for me. I could probably factor in some additional improvements if those are desired.
2022-08-16use proper words in help message for floating pointyukang-21/+26
2022-08-16Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errorsbors-0/+104
Fix #95079 unhelpful error when missing move in nested closure Fix #95079 by adding help for missing move in nested closure
2022-08-16Support 128-bit atomics on all aarch64 targetsTaiki Endo-5/+5
2022-08-16Pass +atomics-32 feature for {arm,thumb}v4t-none-eabiTaiki Endo-2/+6
2022-08-16:arrow_up: rust-analyzerLaurențiu Nicola-5108/+5774
2022-08-16Auto merge of #100441 - nnethercote:shrink-ast-Attribute, r=petrochenkovbors-149/+167
Shrink `ast::Attribute`. r? `@ghost`
2022-08-16compiletest: fix typo in runtest.rsIkko Ashimine-1/+1
nonexistant -> nonexistent
2022-08-16Auto merge of #100611 - matthiaskrgr:rollup-rxj10ur, r=matthiaskrgrbors-335/+318
Rollup of 6 pull requests Successful merges: - #100338 (when there are 3 or more return statements in the loop) - #100384 (Add support for generating unique profraw files by default when using `-C instrument-coverage`) - #100460 (Update the minimum external LLVM to 13) - #100567 (Add missing closing quote) - #100590 (Suggest adding an array length if possible) - #100600 (Rename Machine memory hooks to suggest when they run) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-08-16Rollup merge of #100600 - saethlin:rename-memory-hooks, r=RalfJungMatthias Krüger-8/+14
Rename Machine memory hooks to suggest when they run Some of the other memory hooks start with `before_` or `after_` to indicate that they run before or after a certain operation. These don't, so I was a bit confused as to when they are supposed to run. `memory_read` can be read two ways in English, "memory was read" or "this is a memory read" so without the prefix this was especially ambiguous.