about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-12-07fmtThe Miri Cronjob Bot-15/+10
2024-12-07Merge from rustcThe Miri Cronjob Bot-277/+551
2024-12-07Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-12-07compiletest: show the difference between the normalized output and the ↵jyn-35/+119
actual output for lines which didn't match example output: ``` failures: ---- [ui] tests/ui/layout/enum.rs stdout ---- diff of stderr: - error: align: AbiAndPrefAlign { abi: Align(2 bytes), pref: $PREF_ALIGN } + error: align: AbiAndPrefAlign { abi: Align(2 bytes), pref: $PREF_ALIN } 2 --> $DIR/enum.rs:9:1 3 | 4 LL | enum UninhabitedVariantAlign { Note: some mismatched output was normalized before being compared - error: align: AbiAndPrefAlign { abi: Align(2 bytes), pref: Align(8 bytes) } - --> /home/jyn/src/rust2/tests/ui/layout/enum.rs:9:1 + error: align: AbiAndPrefAlign { abi: Align(2 bytes), pref: $PREF_ALIN } ```
2024-12-07Move more tests into `tests/ui/link-native-libs`Zalathar-6/+6
2024-12-06Update cargoWeihang Lo-0/+0
2024-12-06Remove polymorphizationBen Kimock-5/+0
2024-12-06Rollup merge of #130254 - GrigorenkoPV:QuotaExceeded, r=dtolnayMatthias Krüger-1/+1
Stabilize `std::io::ErrorKind::QuotaExceeded` Also drop "Filesystem" from its name. See #130190 for more info. FCP in #130190 cc #86442 r? `@dtolnay`
2024-12-06remove a no-longer-needed work-aroundRalf Jung-6/+2
2024-12-06add testRalf Jung-1/+41
2024-12-06Remove all threading through of ErrorGuaranteed from the driverbjorn3-4/+7
It was inconsistently done (sometimes even within a single function) and most of the rest of the compiler uses fatal errors instead, which need to be caught using catch_with_exit_code anyway. Using fatal errors instead of ErrorGuaranteed everywhere in the driver simplifies things a bit.
2024-12-06Store a single copy of the error registry in DiagCtxtbjorn3-12/+17
And pass this to the individual emitters when necessary.
2024-12-06Auto merge of #133089 - eholk:stabilize-noop-waker, r=dtolnaybors-10/+4
Stabilize noop_waker Tracking Issue: #98286 This is a handy feature that's been used widely in tests and example async code and it'd be nice to make it available to users. cc `@rust-lang/wg-async`
2024-12-06Temporarily disable completion resolve support for neovimLukas Wirth-3/+7
2024-12-06Temporarily disable completion resolve support for helixLukas Wirth-19/+33
2024-12-06Auto merge of #133956 - bjorn3:sync_cg_clif-2024-12-06, r=bjorn3bors-0/+2
Sync cg clif 2024 12 06 The main highlights this time are a Cranelift update disabling the clif ir verifier by default for better performance. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
2024-12-06Merge pull request #18629 from Veykril/push-wlsvxwomumppLukas Wirth-21/+29
Highlight right angle as part of fat arrow in macro rules arm
2024-12-06Highlight right angle as part of fat arrow in macro rules armLukas Wirth-21/+29
2024-12-06Merge pull request #18628 from Veykril/push-sqpymrtxysmwLukas Wirth-29/+69
Add typing handler for param list pipe
2024-12-06feat: Migrate `flip_comma` assist to `SyntaxEditor`Giga Bowser-43/+79
2024-12-06minor: Add `token_tree` constructor to `SyntaxFactory`Giga Bowser-1/+27
2024-12-06feat: Migrate `flip_trait_bound` assist to `SyntaxEditor`Giga Bowser-6/+8
2024-12-06feat: Migrate `flip_binexpr` assist to `SyntaxEditor`Giga Bowser-26/+29
2024-12-06minor: Add `expr_bin` constructor to `SyntaxFactory`Giga Bowser-0/+17
2024-12-06minor: Add `token` constructor to `SyntaxFactory`Giga Bowser-1/+5
2024-12-06fix: Don't produce `ChangedAncestor` for `SyntaxToken`sGiga Bowser-10/+52
2024-12-06fix: Properly determine `SyntaxEditor` replacement intersectionGiga Bowser-1/+1
Bordering replacements should not be considered intersecting
2024-12-06Add typing handler for param list pipeLukas Wirth-29/+69
2024-12-06Merge pull request #18627 from Veykril/push-tzvnrnytrksrLukas Wirth-2/+25
Improve heuristics for on typing semicolon insertion
2024-12-06Improve heuristics for on typing semicolon insertionLukas Wirth-2/+25
2024-12-06Merge pull request #18551 from ShoyuVanilla/migrate-turbofish-assistLukas Wirth-24/+77
Migrate `add_turbo_fish` to `SyntaxEditor`
2024-12-06Merge pull request #18563 from alibektas/workspace_key_high_precedenceLukas Wirth-3/+1
minor: run `FlycheckHandle::restart_workspace` when `check_workspace` true
2024-12-06Merge pull request #18594 from ChayimFriedman2/async-closuresLukas Wirth-68/+291
feat: Support `AsyncFnX` traits
2024-12-06Cargo decided to add serde to cg_clif's lockfile despite serde support in ↵bjorn3-0/+2
Cranelift being disabled
2024-12-06Merge pull request #18474 from Veykril/push-nvtxykxkwnvsLukas Wirth-130/+199
Make bracket typing handler work on more things
2024-12-06Merge pull request #18610 from Veykril/push-kynytqktmnxqLukas Wirth-2/+157
Add implict unsafety inlay hints for extern blocks
2024-12-06Add implict unsafety inlay hints for extern blocksLukas Wirth-2/+157
2024-12-06Make bracket typing handler work on more thingsLukas Wirth-130/+199
2024-12-06fix SC fence logicRalf Jung-4/+8
2024-12-06Rollup merge of #133930 - chriskrycho:mdbook-trpl-package, r=ehussMatthias Krüger-29/+32
rustbook: update to use new mdbook-trpl package from The Book Updates to the latest merge from `rust-lang/book` and simplifies the dependency chain there. There are now three preprocessors, but only one package, so everything is a lot nicer to deal with from the consuming POV (i.e. here).
2024-12-06Rollup merge of #133211 - Strophox:miri-correct-state-update-ffi, r=RalfJungMatthias Krüger-47/+366
Extend Miri to correctly pass mutable pointers through FFI Based off of https://github.com/rust-lang/rust/pull/129684, this PR further extends Miri to execute native calls that make use of pointers to *mutable* memory. We adapt Miri's bookkeeping of internal state upon any FFI call that gives external code permission to mutate memory. Native code may now possibly write and therefore initialize and change the pointer provenance of bytes it has access to: Such memory is assumed to be *initialized* afterwards and bytes are given *arbitrary (wildcard) provenance*. This enables programs that correctly use mutating FFI calls to run Miri without errors, at the cost of possibly missing Undefined Behaviour caused by incorrect usage of mutating FFI. > <details> > > <summary> Simple example </summary> > > ```rust > extern "C" { > fn init_int(ptr: *mut i32); > } > > fn main() { > let mut x = std::mem::MaybeUninit::<i32>::uninit(); > let x = unsafe { > init_int(x.as_mut_ptr()); > x.assume_init() > }; > > println!("C initialized my memory to: {x}"); > } > ``` > ```c > void init_int(int *ptr) { > *ptr = 42; > } > ``` > should now show `C initialized my memory to: 42`. > > </details> r? ``@RalfJung``
2024-12-06Merge pull request #4057 from RalfJung/scfixRalf Jung-241/+225
Fix weak memory emulation to avoid generating behaviors that are forbidden under C++ 20
2024-12-06Merge pull request #18625 from Veykril/push-npnxwpxuzlqzLukas Wirth-4/+71
fix: Fix parser getting stuck for bad asm expressions
2024-12-06Merge from rustcThe Miri Cronjob Bot-182/+85
2024-12-06Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-12-06fix: Fix parser getting stuck for bad asm expressionsLukas Wirth-4/+71
2024-12-06Promote powerpc64le-unknown-linux-musl to tier 2 with host toolsJens Reidel-0/+2
MCP: https://github.com/rust-lang/compiler-team/issues/803 Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-12-05Rollup merge of #133821 - Kobzol:replace-black-with-ruff, r=onur-ozkanGuillaume Gomez-186/+147
Replace black with ruff in `tidy` `ruff` can both lint and format Python code (in fact, it should be a mostly drop-in replacement for `black` in terms of formatting), so it's not needed to use `black` anymore. This PR removes `black` and replaces it with `ruff`, to get rid of one Python dependency, and also to make Python formatting faster (although that's a small thing). If we decide to merge this, we'll need to "reformat the world" - `ruff` is not perfectly compatible with `black`, and it also looks like `black` was actually ignoring some files before. I tried it locally (`./x test tidy --extra-checks=py:fmt --bless`) and it also reformatted some code in subtrees (e.g. `clippy` or `rustc_codegen_gcc`) - I'm not sure how to handle that.
2024-12-05Stabilize noop_wakerEric Holk-10/+4
Co-authored-by: zachs18 <8355914+zachs18@users.noreply.github.com>
2024-12-05extend Miri to correctly pass mutable pointers through FFIStrophox-47/+366
Co-authored-by: Ralf Jung <post@ralfj.de>