-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 8 pull requests #127169
Rollup of 8 pull requests #127169
Commits on Apr 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0a298ed - Browse repository at this point
Copy the full SHA 0a298edView commit details
Commits on May 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ed7d97e - Browse repository at this point
Copy the full SHA ed7d97eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0dffd9 - Browse repository at this point
Copy the full SHA f0dffd9View commit details
Commits on May 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8aa7112 - Browse repository at this point
Copy the full SHA 8aa7112View commit details
Commits on May 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6965b4a - Browse repository at this point
Copy the full SHA 6965b4aView commit details
Commits on May 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0c204c3 - Browse repository at this point
Copy the full SHA 0c204c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for bff31bd - Browse repository at this point
Copy the full SHA bff31bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cea8a7 - Browse repository at this point
Copy the full SHA 8cea8a7View commit details
Commits on May 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7a53ba2 - Browse repository at this point
Copy the full SHA 7a53ba2View commit details -
Rollup merge of rust-lang#125173 - scottmcm:never-checked, r=davidtwco
Remove `Rvalue::CheckedBinaryOp` Zulip conversation: <https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/intrinsics.20vs.20binop.2Funop/near/438729996> cc `@RalfJung` While it's a draft, r? ghost
Configuration menu - View commit details
-
Copy full SHA for 14134c1 - Browse repository at this point
Copy the full SHA 14134c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39daa5a - Browse repository at this point
Copy the full SHA 39daa5aView commit details
Commits on May 21, 2024
-
Rollup merge of rust-lang#125266 - workingjubilee:stream-plastic-love…
…, r=RalfJung,nikic compiler: add simd_ctpop intrinsic Fairly straightforward addition. cc `@rust-lang/opsem` new (extremely boring) intrinsic
Configuration menu - View commit details
-
Copy full SHA for 2c219ce - Browse repository at this point
Copy the full SHA 2c219ceView commit details
Commits on May 22, 2024
-
rustc_codegen_llvm: add support for writing summary bitcode
Typical uses of ThinLTO don't have any use for this as a standalone file, but distributed ThinLTO uses this to make the linker phase more efficient. With clang you'd do something like `clang -flto=thin -fthin-link-bitcode=foo.indexing.o -c foo.c` and then get both foo.o (full of bitcode) and foo.indexing.o (just the summary or index part of the bitcode). That's then usable by a two-stage linking process that's more friendly to distributed build systems like bazel, which is why I'm working on this area. I talked some to @teresajohnson about naming in this area, as things seem to be a little confused between various blog posts and build systems. "bitcode index" and "bitcode summary" tend to be a little too ambiguous, and she tends to use "thin link bitcode" and "minimized bitcode" (which matches the descriptions in LLVM). Since the clang option is thin-link-bitcode, I went with that to try and not add a new spelling in the world. Per @dtolnay, you can work around the lack of this by using `lld --thinlto-index-only` to do the indexing on regular .o files of bitcode, but that is a bit wasteful on actions when we already have all the information in rustc and could just write out the matching minimized bitcode. I didn't test that at all in our infrastructure, because by the time I learned that I already had this patch largely written.
Configuration menu - View commit details
-
Copy full SHA for 715f226 - Browse repository at this point
Copy the full SHA 715f226View commit details
Commits on May 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cc6c5ec - Browse repository at this point
Copy the full SHA cc6c5ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bb463a - Browse repository at this point
Copy the full SHA 8bb463aView commit details -
Stop passing --check-cfg to rustc
The standard library now has the right configs in it's Cargo.toml
Configuration menu - View commit details
-
Copy full SHA for ba8c695 - Browse repository at this point
Copy the full SHA ba8c695View commit details -
Rollup merge of rust-lang#125345 - durin42:thin-link-bitcode, r=bjorn3
rustc_codegen_llvm: add support for writing summary bitcode Typical uses of ThinLTO don't have any use for this as a standalone file, but distributed ThinLTO uses this to make the linker phase more efficient. With clang you'd do something like `clang -flto=thin -fthin-link-bitcode=foo.indexing.o -c foo.c` and then get both foo.o (full of bitcode) and foo.indexing.o (just the summary or index part of the bitcode). That's then usable by a two-stage linking process that's more friendly to distributed build systems like bazel, which is why I'm working on this area. I talked some to `@teresajohnson` about naming in this area, as things seem to be a little confused between various blog posts and build systems. "bitcode index" and "bitcode summary" tend to be a little too ambiguous, and she tends to use "thin link bitcode" and "minimized bitcode" (which matches the descriptions in LLVM). Since the clang option is thin-link-bitcode, I went with that to try and not add a new spelling in the world. Per `@dtolnay,` you can work around the lack of this by using `lld --thinlto-index-only` to do the indexing on regular .o files of bitcode, but that is a bit wasteful on actions when we already have all the information in rustc and could just write out the matching minimized bitcode. I didn't test that at all in our infrastructure, because by the time I learned that I already had this patch largely written.
Configuration menu - View commit details
-
Copy full SHA for 05b1415 - Browse repository at this point
Copy the full SHA 05b1415View commit details
Commits on May 27, 2024
-
Omit non-needs_drop drop_in_place in vtables
This replaces the drop_in_place reference with null in vtables. On librustc_driver.so, this drops about ~17k dynamic relocations from the output, since many vtables can now be placed in read-only memory, rather than having a relocated pointer included. This makes a tradeoff by adding a null check at vtable call sites. That's hard to avoid without changing the vtable format (e.g., to use a pc-relative relocation instead of an absolute address, and avoid the dynamic relocation that way). But it seems likely that the check is cheap at runtime.
Configuration menu - View commit details
-
Copy full SHA for 9ddcc59 - Browse repository at this point
Copy the full SHA 9ddcc59View commit details
Commits on May 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 676fec7 - Browse repository at this point
Copy the full SHA 676fec7View commit details
Commits on May 29, 2024
-
Rollup merge of rust-lang#124251 - scottmcm:unop-ptr-metadata, r=oli-obk
Add an intrinsic for `ptr::metadata` The follow-up to rust-lang#123840, so we can remove `PtrComponents` and `PtrRepr` from libcore entirely (well, after a bootstrap update). As discussed in <https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/.60ptr_metadata.60.20in.20MIR/near/435637808>, this introduces `UnOp::PtrMetadata` taking a raw pointer and returning the associated metadata value. By no longer going through a `union`, this should also help future PRs better optimize pointer operations. r? ``@oli-obk``
Configuration menu - View commit details
-
Copy full SHA for db4dbc8 - Browse repository at this point
Copy the full SHA db4dbc8View commit details
Commits on May 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a0ea60b - Browse repository at this point
Copy the full SHA a0ea60bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a255965 - Browse repository at this point
Copy the full SHA a255965View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab10da2 - Browse repository at this point
Copy the full SHA ab10da2View commit details
Commits on Jun 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8f1d41e - Browse repository at this point
Copy the full SHA 8f1d41eView commit details
Commits on Jun 4, 2024
-
Auto merge of rust-lang#122597 - pacak:master, r=bjorn3
Show files produced by `--emit foo` in json artifact notifications Right now it is possible to ask `rustc` to save some intermediate representation into one or more files with `--emit=foo`, but figuring out what exactly was produced is difficult. This pull request adds information about `llvm_ir` and `asm` intermediate files into notifications produced by `--json=artifacts`. Related discussion: https://internals.rust-lang.org/t/easier-access-to-files-generated-by-emit-foo/20477 Motivation - `cargo-show-asm` parses those intermediate files and presents them in a user friendly way, but right now I have to apply some dirty hacks. Hacks make behavior confusing: hintron/computer-enhance#35 This pull request introduces a new behavior: now `rustc` will emit a new artifact notification for every artifact type user asked to `--emit`, for example for `--emit asm` those will include all the `.s` files. Most users won't notice this behavior, to be affected by it all of the following must hold: - user must use `rustc` binary directly (when `cargo` invokes `rustc` - it consumes artifact notifications and doesn't emit anything) - user must specify both `--emit xxx` and `--json artifacts` - user must refuse to handle unknown artifact types - user must disable incremental compilation (or deal with it better than cargo does, or use a workaround like `save-temps`) in order not to hit rust-lang#88829 / rust-lang#89149
Configuration menu - View commit details
-
Copy full SHA for be961b0 - Browse repository at this point
Copy the full SHA be961b0View commit details -
Move error on -Cinstrument-coverage earlier and elaborate that it is …
…LLVM specific cc rust-lang/rustc_codegen_cranelift#1494
Configuration menu - View commit details
-
Copy full SHA for eb449c1 - Browse repository at this point
Copy the full SHA eb449c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97d47f7 - Browse repository at this point
Copy the full SHA 97d47f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4067700 - Browse repository at this point
Copy the full SHA 4067700View commit details -
Configuration menu - View commit details
-
Copy full SHA for 632e5df - Browse repository at this point
Copy the full SHA 632e5dfView commit details
Commits on Jun 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5d0ec8d - Browse repository at this point
Copy the full SHA 5d0ec8dView commit details
Commits on Jun 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 63cb28e - Browse repository at this point
Copy the full SHA 63cb28eView commit details -
Merge pull request rust-lang#1495 from folkertdev/add-llvm-sse2-cvtps2dq
add `llvm.x86.sse2.cvtps2dq`
Configuration menu - View commit details
-
Copy full SHA for c511676 - Browse repository at this point
Copy the full SHA c511676View commit details
Commits on Jun 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6210c26 - Browse repository at this point
Copy the full SHA 6210c26View commit details
Commits on Jun 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0eb782b - Browse repository at this point
Copy the full SHA 0eb782bView commit details
Commits on Jun 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c0477a1 - Browse repository at this point
Copy the full SHA c0477a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c06cbc8 - Browse repository at this point
Copy the full SHA c06cbc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee188ca - Browse repository at this point
Copy the full SHA ee188caView commit details -
Update a cranelift patch file for formatting changes.
PR rust-lang#125443 will reformat all the use declarations in the repo. This would break a patch kept in `rustc_codegen_cranelift` that gets applied to `library/std/src/sys/pal/windows/rand.rs`. So this commit formats the use declarations in `library/std/src/sys/pal/windows/rand.rs` in advance of rust-lang#125443 and updates the patch file accordingly. The motivation is that rust-lang#125443 is a huge change and we want to get fiddly little changes like this out of the way so it can be nothing more than an `x fmt --all`.
Configuration menu - View commit details
-
Copy full SHA for 02b20f8 - Browse repository at this point
Copy the full SHA 02b20f8View commit details
Commits on Jun 12, 2024
-
Use
tidy
to sort crate attributes for all compiler crates.We already do this for a number of crates, e.g. `rustc_middle`, `rustc_span`, `rustc_metadata`, `rustc_span`, `rustc_errors`. For the ones we don't, in many cases the attributes are a mess. - There is no consistency about order of attribute kinds (e.g. `allow`/`deny`/`feature`). - Within attribute kind groups (e.g. the `feature` attributes), sometimes the order is alphabetical, and sometimes there is no particular order. - Sometimes the attributes of a particular kind aren't even grouped all together, e.g. there might be a `feature`, then an `allow`, then another `feature`. This commit extends the existing sorting to all compiler crates, increasing consistency. If any new attribute line is added there is now only one place it can go -- no need for arbitrary decisions. Exceptions: - `rustc_log`, `rustc_next_trait_solver` and `rustc_type_ir_macros`, because they have no crate attributes. - `rustc_codegen_gcc`, because it's quasi-external to rustc (e.g. it's ignored in `rustfmt.toml`).
Configuration menu - View commit details
-
Copy full SHA for 0b7375f - Browse repository at this point
Copy the full SHA 0b7375fView commit details -
Require any function with a tait in its signature to actually constra…
…in a hidden type
Configuration menu - View commit details
-
Copy full SHA for 4e0af7c - Browse repository at this point
Copy the full SHA 4e0af7cView commit details -
Rollup merge of rust-lang#126301 - nnethercote:sort-crate-attributes,…
… r=davidtwco Use `tidy` to sort crate attributes for all compiler crates. We already do this for a number of crates, e.g. `rustc_middle`, `rustc_span`, `rustc_metadata`, `rustc_span`, `rustc_errors`. For the ones we don't, in many cases the attributes are a mess. - There is no consistency about order of attribute kinds (e.g. `allow`/`deny`/`feature`). - Within attribute kind groups (e.g. the `feature` attributes), sometimes the order is alphabetical, and sometimes there is no particular order. - Sometimes the attributes of a particular kind aren't even grouped all together, e.g. there might be a `feature`, then an `allow`, then another `feature`. This commit extends the existing sorting to all compiler crates, increasing consistency. If any new attribute line is added there is now only one place it can go -- no need for arbitrary decisions. Exceptions: - `rustc_log`, `rustc_next_trait_solver` and `rustc_type_ir_macros`, because they have no crate attributes. - `rustc_codegen_gcc`, because it's quasi-external to rustc (e.g. it's ignored in `rustfmt.toml`). r? `@davidtwco`
Configuration menu - View commit details
-
Copy full SHA for 03a2764 - Browse repository at this point
Copy the full SHA 03a2764View commit details -
Auto merge of rust-lang#126319 - workingjubilee:rollup-lendnud, r=wor…
…kingjubilee Rollup of 16 pull requests Successful merges: - rust-lang#123374 (DOC: Add FFI example for slice::from_raw_parts()) - rust-lang#124514 (Recommend to never display zero disambiguators when demangling v0 symbols) - rust-lang#125978 (Cleanup: HIR ty lowering: Consolidate the places that do assoc item probing & access checking) - rust-lang#125980 (Nvptx remove direct passmode) - rust-lang#126187 (For E0277 suggest adding `Result` return type for function when using QuestionMark `?` in the body.) - rust-lang#126210 (docs(core): make more const_ptr doctests assert instead of printing) - rust-lang#126249 (Simplify `[T; N]::try_map` signature) - rust-lang#126256 (Add {{target}} substitution to compiletest) - rust-lang#126263 (Make issue-122805.rs big endian compatible) - rust-lang#126281 (set_env: State the conclusion upfront) - rust-lang#126286 (Make `storage-live.rs` robust against rustc internal changes.) - rust-lang#126287 (Update a cranelift patch file for formatting changes.) - rust-lang#126301 (Use `tidy` to sort crate attributes for all compiler crates.) - rust-lang#126305 (Make PathBuf less Ok with adding UTF-16 then `into_string`) - rust-lang#126310 (Migrate run make prefer rlib) - rust-lang#126314 (fix RELEASES: we do not support upcasting to auto traits) r? `@ghost` `@rustbot` modify labels: rollup
Configuration menu - View commit details
-
Copy full SHA for c7d3c4f - Browse repository at this point
Copy the full SHA c7d3c4fView commit details
Commits on Jun 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c867677 - Browse repository at this point
Copy the full SHA c867677View commit details
Commits on Jun 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5ccfa78 - Browse repository at this point
Copy the full SHA 5ccfa78View commit details
Commits on Jun 16, 2024
-
Auto merge of rust-lang#126505 - compiler-errors:no-vtable, r=lcnr
Only compute vtable information during codegen This PR removes vtable information from the `Object` and `TraitUpcasting` candidate sources in the trait solvers, and defers the computation of relevant information to `Instance::resolve`. This is because vtables really aren't a thing in the trait world -- they're an implementation detail in codegen. Previously it was just easiest to tangle this information together since we were already doing the work of looking at all the supertraits in the trait solver, and specifically because we use traits to represent when it's possible to call a method via a vtable (`Object` candidate) and do upcasting (`Unsize` candidate). but I am somewhat suspicious we're doing a *lot* of extra work, especially in polymorphic contexts, so let's see what perf says.
Configuration menu - View commit details
-
Copy full SHA for 5c6849b - Browse repository at this point
Copy the full SHA 5c6849bView commit details
Commits on Jun 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 54aa510 - Browse repository at this point
Copy the full SHA 54aa510View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d1d004 - Browse repository at this point
Copy the full SHA 0d1d004View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4b36e5 - Browse repository at this point
Copy the full SHA a4b36e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e241176 - Browse repository at this point
Copy the full SHA e241176View commit details
Commits on Jun 18, 2024
-
Use a dedicated type instead of a reference for the diagnostic context
This paves the way for tracking more state (e.g. error tainting) in the diagnostic context handle
Configuration menu - View commit details
-
Copy full SHA for afef64c - Browse repository at this point
Copy the full SHA afef64cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 88a5f32 - Browse repository at this point
Copy the full SHA 88a5f32View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5bd2e3 - Browse repository at this point
Copy the full SHA c5bd2e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 729cb08 - Browse repository at this point
Copy the full SHA 729cb08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cb7282 - Browse repository at this point
Copy the full SHA 1cb7282View commit details
Commits on Jun 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e79dc76 - Browse repository at this point
Copy the full SHA e79dc76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8556604 - Browse repository at this point
Copy the full SHA 8556604View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0fcf2e - Browse repository at this point
Copy the full SHA b0fcf2eView commit details
Commits on Jun 20, 2024
-
Merge pull request rust-lang#1500 from beetrees/mac-arm64-va-call
Fix varargs support on `aarch64-apple-darwin`
Configuration menu - View commit details
-
Copy full SHA for cdad523 - Browse repository at this point
Copy the full SHA cdad523View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a37825 - Browse repository at this point
Copy the full SHA 2a37825View commit details
Commits on Jun 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for aa5d7a0 - Browse repository at this point
Copy the full SHA aa5d7a0View commit details
Commits on Jun 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f1052eb - Browse repository at this point
Copy the full SHA f1052ebView commit details
Commits on Jun 24, 2024
-
There is no idx in the function signature.
Configuration menu - View commit details
-
Copy full SHA for dbf7018 - Browse repository at this point
Copy the full SHA dbf7018View commit details
Commits on Jun 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8d11939 - Browse repository at this point
Copy the full SHA 8d11939View commit details -
Configuration menu - View commit details
-
Copy full SHA for 476b7bd - Browse repository at this point
Copy the full SHA 476b7bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94c2e7a - Browse repository at this point
Copy the full SHA 94c2e7aView commit details -
As the comment says, this lint "is mostly historical, and not particularly useful". It's not worth keeping it around.
Configuration menu - View commit details
-
Copy full SHA for c053e89 - Browse repository at this point
Copy the full SHA c053e89View commit details
Commits on Jun 28, 2024
-
Introduce UnwindModule wrapper around a Module and UnwindContext
This way all UnwindContext::add_function calls can be done automatically in a single place.
Configuration menu - View commit details
-
Copy full SHA for cc05efe - Browse repository at this point
Copy the full SHA cc05efeView commit details -
Configuration menu - View commit details
-
Copy full SHA for e97cebb - Browse repository at this point
Copy the full SHA e97cebbView commit details
Commits on Jun 29, 2024
-
This fixes a crash with macOS's ld-prime on arm64. Fixes rust-lang/rustc_codegen_cranelift#1501
Configuration menu - View commit details
-
Copy full SHA for 3d54358 - Browse repository at this point
Copy the full SHA 3d54358View commit details -
small correction to fmt::Pointer impl
the `expose_provenance` method does not require `T: Sized`
Configuration menu - View commit details
-
Copy full SHA for 35f2093 - Browse repository at this point
Copy the full SHA 35f2093View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30be8bc - Browse repository at this point
Copy the full SHA 30be8bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4560034 - Browse repository at this point
Copy the full SHA 4560034View commit details
Commits on Jun 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 617de8c - Browse repository at this point
Copy the full SHA 617de8cView commit details -
Replace a magic boolean with enum
DeclareLetBindings
The new enum `DeclareLetBindings` has three variants: - `Yes`: Declare `let` bindings as normal, for `if` conditions. - `No`: Don't declare bindings, for match guards and let-else. - `LetNotPermitted`: Assert that `let` expressions should not occur.
Configuration menu - View commit details
-
Copy full SHA for ad575b0 - Browse repository at this point
Copy the full SHA ad575b0View commit details -
Replace a magic boolean with enum
EmitStorageLive
The previous boolean used `true` to indicate that storage-live should _not_ be emitted, so all occurrences of `Yes` and `No` should be the logical opposite of the previous value.
Configuration menu - View commit details
-
Copy full SHA for 3b22589 - Browse repository at this point
Copy the full SHA 3b22589View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed07712 - Browse repository at this point
Copy the full SHA ed07712View commit details -
coverage: Avoid getting extra unexpansion info when we don't need it
These particular callers don't actually use the returned macro information, so they can use a simpler span-unexpansion function that doesn't return it.
Configuration menu - View commit details
-
Copy full SHA for 6c33149 - Browse repository at this point
Copy the full SHA 6c33149View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b516f5 - Browse repository at this point
Copy the full SHA 4b516f5View commit details -
Add a regression test for rust-lang#123630
compiler should not suggest nonsensical signatures, original suggestion was error[E0308]: mismatched types --> src/lib.rs:3:31 | 3 | fn select<F, I>(filter: F) -> Select<F, I> { | ------ ^^^^^^^^^^^^ expected `Select<F, I>`, found `()` | | | implicitly returns `()` as its body has no tail or `return` expression | = note: expected struct `Select<F, I>` found unit type `()` error[E0282]: type annotations needed for `Select<{closure@src/lib.rs:8:22: 8:25}, I>` --> src/lib.rs:8:9 | 8 | let lit = select(|x| match x { | ^^^ | help: consider giving `lit` an explicit type, where the type for type parameter `I` is specified | 8 | let lit: Select<{closure@src/lib.rs:8:22: 8:25}, I> = select(|x| match x { | ++++++++++++++++++++++++++++++++++++++++++++ Some errors have detailed explanations: E0282, E0308. For more information about an error, try `rustc --explain E0282`.
Configuration menu - View commit details
-
Copy full SHA for 8a0e1ab - Browse repository at this point
Copy the full SHA 8a0e1abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 49cd5dd - Browse repository at this point
Copy the full SHA 49cd5ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ec6a02 - Browse repository at this point
Copy the full SHA 9ec6a02View commit details -
Rollup merge of rust-lang#126018 - nnethercote:rm-box_pointers-lint, …
…r=lcnr Remove the `box_pointers` lint. As the comment says, this lint "is mostly historical, and not particularly useful". It's not worth keeping it around. r? `@estebank`
Configuration menu - View commit details
-
Copy full SHA for fb021c1 - Browse repository at this point
Copy the full SHA fb021c1View commit details -
Rollup merge of rust-lang#126895 - betelgeuse:improve_simd_gather_doc…
…umentation, r=Amanieu Fix simd_gather documentation There is no idx in the function signature.
Configuration menu - View commit details
-
Copy full SHA for 3787ac9 - Browse repository at this point
Copy the full SHA 3787ac9View commit details -
Rollup merge of rust-lang#126981 - Zalathar:enums, r=Nadrieril
Replace some magic booleans in match-lowering with enums This PR takes some boolean arguments used by the match-lowering code, and replaces them with dedicated enums that more clearly express their effect, while also making it much easier to find how each value is ultimately used.
Configuration menu - View commit details
-
Copy full SHA for e592e5c - Browse repository at this point
Copy the full SHA e592e5cView commit details -
Rollup merge of rust-lang#127069 - Sky9x:fmt-pointer-use-addr, r=Nils…
…trieb small correction to fmt::Pointer impl ~~The `addr` method does not require `T: Sized`, and is preferred for use over `expose_provenance`.~~ `expose_provenance` does not require `T: Sized`.
Configuration menu - View commit details
-
Copy full SHA for 5bb4229 - Browse repository at this point
Copy the full SHA 5bb4229View commit details -
Rollup merge of rust-lang#127157 - Zalathar:unexpand, r=cjgillot
coverage: Avoid getting extra unexpansion info when we don't need it Several callers of `unexpand_into_body_span_with_visible_macro` would immediately discard the additional macro-related information, which is wasteful. We can avoid this by having them instead call a simpler method that just returns the span they care about. This PR also moves the relevant functions out of `coverage::spans::from_mir` and into a new submodule `coverage::unexpand`, so that calling them from `coverage::mappings` is less awkward. There should be no actual changes to coverage-instrumentation output, as demonstrated by the absence of test updates.
Configuration menu - View commit details
-
Copy full SHA for e9d04d2 - Browse repository at this point
Copy the full SHA e9d04d2View commit details -
Rollup merge of rust-lang#127160 - pacak:123630-test, r=Nadrieril
Add a regression test for rust-lang#123630 Fixes rust-lang#123630 compiler should not suggest nonsensical signatures, original suggestion was ``` error[E0308]: mismatched types --> src/lib.rs:3:31 | 3 | fn select<F, I>(filter: F) -> Select<F, I> { | ------ ^^^^^^^^^^^^ expected `Select<F, I>`, found `()` | | | implicitly returns `()` as its body has no tail or `return` expression | = note: expected struct `Select<F, I>` found unit type `()` error[E0282]: type annotations needed for `Select<{closure@src/lib.rs:8:22: 8:25}, I>` --> src/lib.rs:8:9 | 8 | let lit = select(|x| match x { | ^^^ | help: consider giving `lit` an explicit type, where the type for type parameter `I` is specified | 8 | let lit: Select<{closure@src/lib.rs:8:22: 8:25}, I> = select(|x| match x { | ++++++++++++++++++++++++++++++++++++++++++++ Some errors have detailed explanations: E0282, E0308. For more information about an error, try `rustc --explain E0282`. ```
Configuration menu - View commit details
-
Copy full SHA for 7207dd6 - Browse repository at this point
Copy the full SHA 7207dd6View commit details -
Rollup merge of rust-lang#127161 - GuillaumeGomez:improve-run-make-ar…
…gs, r=Kobzol Improve `run-make-support` library `args` API It allows to pass both `Vec` and slices, which makes it much better (for me at least 😉). r? `@Kobzol`
Configuration menu - View commit details
-
Copy full SHA for e5efa9f - Browse repository at this point
Copy the full SHA e5efa9fView commit details -
Rollup merge of rust-lang#127162 - bjorn3:sync_cg_clif-2024-06-30, r=…
…bjorn3 Subtree sync for rustc_codegen_cranelift The main highlight this time is support for arm64 macOS in cg_clif. A future PR will enable distributing it as rustup component. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
Configuration menu - View commit details
-
Copy full SHA for a0aa7ab - Browse repository at this point
Copy the full SHA a0aa7abView commit details