| Age | Commit message (Collapse) | Author | Lines |
|
Migrate `run-make/rustdoc-with-out-dir-option` to new `rmake.rs`
Part of https://github.com/rust-lang/rust/issues/121876.
r? `@jieyouxu`
|
|
Adjust Allocation Bytes used by Miri to custom MiriAllocBytes
Previously, the `MiriMachine` used `type Bytes = Box<[u8]>` for its allocations.
This PR swaps this out for a custom `MiriAllocBytes` type implemented in `alloc_bytes.rs`.
This is in anticipation of an extension to Miri's FFI, which will require its allocations to take care of alignment (the methods in `impl AllocBytes for Box<[u8]>` ignore this `_align: Align` argument).
Needs https://github.com/rust-lang/rust/pull/124492
|
|
|
|
|
|
|
|
|
|
|
|
attempt changing Bytes in MiriMachine to MiriAllocBytes
rename miri_alloc_bytes to alloc_bytes
generalize impl VisitProvenance for Allocation for any Bytes: AllocBytes
mend MiriAllocBytes -> Self::Bytes
fix Invariant documentation and bugs (drop), impl Clone
Update MiriAllocBytes description
Co-authored-by: Ralf Jung <post@ralfj.de>
Rephrase MiriAllocBytes ptr invariant
Co-authored-by: Ralf Jung <post@ralfj.de>
Update MiriAllocBytes ptr documentation
Co-authored-by: Ralf Jung <post@ralfj.de>
fix safety comment in MiriAllocBytes::clone
fix safety comment in MiriAllocBytes::from_bytes
try implementing clone without unsafe
remove derive(PartialEq,Eq,Hash), fix fmt
move ptr.is_null() check inside only necessary branch
use std::ptr::without_provenance_mut, requiring feature(strict_provenance)
align.bytes_usize() instead of align.bytes().try_into().unwrap()
Update src/provenance_gc.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
fix clippy error on deref
|
|
|
|
|
|
|
|
internal: Add StaticLifetime to hir API
|
|
|
|
|
|
Migrate `run-make/panic-impl-transitive` 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).
The test itself is quite simple, but the "handle panics by entering infinite loop" part is strange.
|
|
Migrate `run-make/rustdoc-themes` to new rmake.rs
Part of https://github.com/rust-lang/rust/issues/121876.
r? `@jieyouxu`
|
|
|
|
|
|
|
|
|
|
Rollup of 6 pull requests
Successful merges:
- #124307 (Optimize character escaping.)
- #124975 (Use an helper to move the files)
- #125027 (Migrate `run-make/c-link-to-rust-staticlib` to `rmake`)
- #125038 (Invert comparison in `uN::checked_sub`)
- #125104 (Migrate `run-make/no-cdylib-as-rdylib` to `rmake`)
- #125137 (MIR operators: clarify Shl/Shr handling of negative offsets)
r? `@ghost`
`@rustbot` modify labels: rollup
|
|
Migrate `run-make/no-cdylib-as-rdylib` 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).
> "the test will fail if the cdylib is picked, because it doesn't export any rust symbols"
Is that true? Is there a way to verify?
I suggest maybe extending the test with: (after cleaning the directory)
```rust
rustc()
.input("bar.rs")
.crate_type("cdylib")
.run();
rustc()
.input("foo.rs")
.prefer_dynamic()
.run();
fail();
```
to make sure we're actually testing something here.
|
|
Migrate `run-make/c-link-to-rust-staticlib` to `rmake`
Part of #121876.
r? `@jieyouxu`
|
|
internal: Key ignoring the job-id in metrics cache
|
|
|
|
Fix metrics workflow not actually updating the toolchain
The install won't persist across jobs
|
|
|
|
delegation: Implement list delegation
```rust
reuse prefix::{a, b, c};
```
Using design described in https://github.com/rust-lang/rfcs/pull/3530#issuecomment-2020869823 (the lists are desugared at macro expansion time).
List delegations are expanded eagerly when encountered, similarly to `#[cfg]`s, and not enqueued for later resolution/expansion like regular macros or glob delegation (https://github.com/rust-lang/rust/pull/124135).
Part of https://github.com/rust-lang/rust/issues/118212.
|
|
|
|
|
|
internal: Use Swatinem/rust-cache for metrics CI
Current metrics caching uses a base cache action, whereas I think the one we use for general ci works here as well. Saw this while noticing that our metrics CI is broken as it for some reason uses an outdated rust stable? (unsure why that is)
|
|
Make crashes dump mir to build dir
Set `-Zdump-mir-dir` for `crashes`-style tests.
Alternatively, we just remove `tests/crashes/124436.rs`, since if the only way to get it to repro is via `-Zdump-mir`, then maybe it's not worth it to fix.
Fixes #125029
|
|
|
|
|
|
```rust
reuse prefix::{a, b, c}
```
|
|
|
|
|
|
|
|
fix: Don't emit --keep-going for custom build script commands
Might be the cause for https://github.com/rust-lang/rust-analyzer/issues/17231
|
|
|
|
|
|
fix: extract mod to file should respect path attribute
close https://github.com/rust-lang/rust-analyzer/issues/17181
|
|
Migrate `run-make/issue-14500` to new `rmake.rs` format
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
Note: I find suspicious that `libbar.a` is hardcoded and is not using the `STATICLIB` call to adapt to Windows platforms. Is this intentional? If not, this will need to be changed.
|
|
fix: Hash file contents to verify whether file actually changed
Fixes https://github.com/rust-lang/rust-analyzer/issues/16580
|
|
|
|
|
|
Expand macro recursively expands both fp-like and attribute macros when intertwined
|
|
|
|
Bump Cargo.lock
|
|
|