| Age | Commit message (Collapse) | Author | Lines |
|
remove some SSE/SSE2 intrinsics that are no longer used by stdarch
Fixes https://github.com/rust-lang/miri/issues/3691
|
|
|
|
|
|
fix: tyck for non-ADT types when searching refs for `Self` kw
See https://github.com/rust-lang/rust-analyzer/pull/15864/files/e0276dc5ddc38c65240edb408522bb869f15afb4#r1389848845
For ADTs, to handle `{error}` in generic args, we should to convert them to ADT for comparisons; for others, we can directly compare the types.
|
|
Rollup of 7 pull requests
Successful merges:
- #128107 (Migrate `raw-dylib-alt-calling-convention`, `raw-dylib-c` and `redundant-libs` `run-make` tests to rmake)
- #128362 (add test for symbol visibility of `#[naked]` functions)
- #128417 (Add `f16` and `f128` math functions)
- #128638 (run-make: enable msvc for `link-dedup`)
- #128647 (Enable msvc for link-args-order)
- #128649 (run-make: Enable msvc for `no-duplicate-libs` and `zero-extend-abi-param-passing`)
- #128766 (Trivial grammar fix in const keyword docs)
r? `@ghost`
`@rustbot` modify labels: rollup
|
|
|
|
|
|
Update cargo
3 commits in fa646583675d7c140482bd906145c71b7fb4fc2b..94977cb1fab003d45eb5bb108cb5e2fa0149672a
2024-08-02 16:08:06 +0000 to 2024-08-06 21:42:10 +0000
- Don't specify the depedency name in the `cargo add` inferred name test (rust-lang/cargo#14357)
- Fix renamed disallowed cfg lint name (rust-lang/cargo#14352)
- fix(build-std): remove hack on creating virtual std workspace (rust-lang/cargo#14358)
r? ghost
|
|
run-make: Enable msvc for `no-duplicate-libs` and `zero-extend-abi-param-passing`
The common thing between these two tests is to use `#[link(..., kind="static")]` so that it doesn't try to do a DLL import.
`zero-extend-abi-param-passing` also needs to have an optimized static library but there's only helper function for a non-optimized version. Rather than copy/pasting the code (and adding the optimization flag) I reused the same code so that it more easily be kept in sync.
try-job: i686-msvc
try-job: x86_64-msvc
|
|
Migrate `raw-dylib-alt-calling-convention`, `raw-dylib-c` and `redundant-libs` `run-make` tests to rmake
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
Please try:
// try-job: x86_64-msvc
// try-job: x86_64-mingw
// try-job: i686-msvc
try-job: x86_64-gnu-llvm-17
try-job: aarch64-apple
|
|
|
|
|
|
Rollup of 9 pull requests
Successful merges:
- #124944 (On trait bound mismatch, detect multiple crate versions in dep tree)
- #125048 (PinCoerceUnsized trait into core)
- #128406 (implement BufReader::peek)
- #128539 (Forbid unused unsafe in vxworks-specific std modules)
- #128687 (interpret: refactor function call handling to be better-abstracted)
- #128692 (Add a triagebot mention for `library/Cargo.lock`)
- #128710 (Don't ICE when getting an input file name's stem fails)
- #128718 (Consider `cfg_attr` checked by `CheckAttrVisitor`)
- #128751 (std::thread: set_name implementation proposal for vxWorks.)
r? `@ghost`
`@rustbot` modify labels: rollup
|
|
interpret: refactor function call handling to be better-abstracted
Add a new function `init_stack_frame` that pushes a stack frame and passes the arguments, and use that basically everywhere that the raw underlying `push_stack_frame` used to be called. This splits the previous monster function `eval_fn_call` into two parts: figuring out the MIR to call and the arguments to pass, and then actually setting up the stack frame.
Also re-organize the files a bit:
- The previous `terminator.rs` is split into a new `call.rs` with all the argument-passing logic, and the rest goes into `step.rs` where the other main dispatcher functions already live (in particular, `eval_statement`).
- All the stack frame handling from `eval_context.rs` is moved to a new `stack.rs`.
|
|
|
|
Pass the right `ParamEnv` to `might_permit_raw_init_strict`
Fixes #119620
`might_permit_raw_init_strict` currently passes an empty `ParamEnv` to the `InterpCx`, instead of the actual `ParamEnv` that was passed in to `check_validity_requirement` at callsite.
This leads to ICEs such as the linked issue where for `UnsafeCell<*mut T>` we initially get the layout with the right `ParamEnv` (which suceeds because it can prove that `T: Sized` and therefore `UnsafeCell<*mut T>` has a known layout) but then do the rest with an empty `ParamEnv` where `T: Sized` is not known to hold so getting the layout for `*mut T` later fails.
This runs into an assertion in other layout code where it's making the (valid) assumption that, when we already have a layout for a struct (`UnsafeCell<*mut T>`), getting the layout of one of its fields (`*mut T`) should also succeed, which wasn't the case here due to using the wrong `ParamEnv`.
So, this PR changes it to just use the same `ParamEnv` all the way throughout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StaticIndex::compute filters out modules from libraries. This makes an
exceptions for vendored libraries, ie libraries actually defined inside
the workspace being indexed.
This aims to solve https://bugzilla.mozilla.org/show_bug.cgi?id=1846041
In general StaticIndex is meant for code browsers, which likely want to
index all visible source files.
|
|
Migrate `cdylib-dylib-linkage` `run-make` test to rmake
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
~~Those sysroot tests are always fun. I'm getting local errors that don't make a lot of sense about my own sysroot not existing, so I am trying this in CI to see what happens.~~
~~EDIT: I am getting the same error here. The strange thing is, when I try to navigate to `/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib` on my personal computer, the directory does exist, but the error message is that the directory does not.~~
EDIT 2: The sysroot path just needed to be trimmed!
Please try:
// try-job: x86_64-msvc // passed previously
try-job: x86_64-mingw
try-job: x86_64-gnu-llvm-18
try-job: i686-msvc
try-job: aarch64-apple
|
|
|
|
|
|
|
|
|
|
I can't find a way to derive rinja::Template for Node - I think because it is a recursive type. So I rendered it manually using html_escape.
|
|
|
|
|
|
This format works better with large amounts of structured data.
We also mark which deps are in the stdlib
|
|
This tool now scans for cargo dependencies and includes any important looking license files.
We do this because cargo package metadata is not sufficient - the Apache-2.0 license says you have to include any NOTICE file, for example. And authors != copyright holders (cargo has the former, we must include the latter).
|
|
|
|
|
|
add and fix return-place-protection tests
|
|
|
|
Improve crate manifests, adding missing `[package.repository]` and `[package.description]` fields
As [discussed on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/Could.20we.20add.20repository.20url.20to.20.60ra_ap_.60.20crates.20on.20crates.2Eio.3F/near/455095161).
cc `@Veykril` `@lnicola`
|
|
fix: Panic in path transform with default type parameters
Fixes #17578
|
|
|
|
|
|
|
|
Rollup of 5 pull requests
Successful merges:
- #122049 (Promote riscv64gc-unknown-linux-musl to tier 2)
- #128580 (Use `ParamEnv::reveal_all` in CFI)
- #128688 (custom MIR: add support for tail calls)
- #128694 (Normalize when equating `dyn` tails in MIR borrowck)
- #128697 (interpret: move nullary-op evaluation into operator.rs)
r? `@ghost`
`@rustbot` modify labels: rollup
|
|
`[package.repository.workspace] = true`
|
|
With the lack of a README on the individually published library crates and the somewhat cryptic `ra_ap_` prefix it is hard to figure out where those crates belong to, so mentioning "rust-analyzer" feels like auseful hint there.
|
|
|
|
|
|
|
|
|
|
|