about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
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>
2024-12-05Merge pull request #18622 from Veykril/push-wlzptrukvyupLukas Wirth-3/+68
fix: Fix parsing of dyn T in generic arg on 2015 edition
2024-12-05fix: Fix parsing of dyn T in generic arg on 2015 editionLukas Wirth-3/+68
2024-12-05Merge pull request #18538 from tareknaser/syntax_factory_sort_itemsDavid Barsky-23/+21
Migrate `sort_items` Assist to Use `SyntaxFactory`
2024-12-05Merge pull request #18483 from tareknaser/syntax_factory_introduce_named_genericDavid Barsky-27/+123
Migrate `introduce_named_generic` Assist to Use `SyntaxFactory`
2024-12-05fix: Resolve generic parameters within use capturesLukas Wirth-2/+90
2024-12-05rustbook: update to use new mdbook-trpl package from The BookChris Krycho-29/+32
2024-12-05Merge pull request #18620 from Veykril/push-pyulxnouvxkqLukas Wirth-85/+125
fix: Parse lifetime bounds in lifetime param into TypeBoundList
2024-12-05Parse lifetime bounds in lifetime param into TypeBoundListLukas Wirth-85/+125
This mainly aids in error recovery but also makes it a bit easier to handle lifetime resolution. While doing so it also came apparent that we were not actually lowering lifetime outlives relationships within lifetime parameter declaration bounds, so this fixes that.
2024-12-05Merge pull request #18619 from ShoyuVanilla/issue-18613Lukas Wirth-1/+55
fix: Panic when displaying generic params with defaults
2024-12-06fix: Panic when displaying generic params with defaultsShoyu Vanilla-1/+55
2024-12-05Avoid passing byte slice to anonsocket_readtiif-8/+8
2024-12-05Merge pull request #18618 from Veykril/push-ysklqzomkyvpLukas Wirth-133/+351
fix: Fix parsing of integer/keyword name refs in various places
2024-12-05fix: Fix parsing of integer/keyword name refs in various placesLukas Wirth-133/+351
2024-12-05fix: rename `syntax_editor_add_generic_param` to `add_generic_param`Tarek-2/+2
Signed-off-by: Tarek <tareknaser360@gmail.com>
2024-12-05Merge pull request #18616 from Veykril/push-pkumxswtxspoLukas Wirth-3/+3
fix: Disable `<` typing handler again
2024-12-05Disable `<` typing handler againLukas Wirth-3/+3
2024-12-05make SC fences stronger, to be correct wrt C++20Ralf Jung-147/+120