about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-02-24Rollup merge of #137493 - nabijaczleweli:python3, r=KobzolTrevor Gross-1/+1
configure.py: don't instruct user to run nonexistent program ```shell-session $ ./configure configure: processing command line configure: configure: build.configure-args := [] configure: profile := dist configure: configure: writing `config.toml` in current directory configure: configure: run `python /mnt/filling/store/nabijaczleweli/code/rust/x.py --help` ``` This is naturally not valid since I don't have a "python" executable (and this will hopefully become more and more true as Python 2 dies out). ./configure knows this since it does `try python3 "$``@"`,`` then `python2.7` &c. After, this now says ``` configure: run `python3 /mnt/filling/store/nabijaczleweli/code/rust/x.py --help` ``` which is possible, and corresponds to the interpreter actually running.
2025-02-24Rollup merge of #137109 - bend-n:knife, r=oli-obkTrevor Gross-1/+0
stabilize extract_if Tracking issue: #43244 Closes: #43244 FCP completed: https://github.com/rust-lang/rust/issues/43244#issuecomment-2523595704
2025-02-24Auto merge of #135726 - jdonszelmann:attr-parsing, r=oli-obkbors-163/+170
New attribute parsing infrastructure Another step in the plan outlined in https://github.com/rust-lang/rust/issues/131229 introduces infrastructure for structured parsers for attributes, as well as converting a couple of complex attributes to have such structured parsers. This PR may prove too large to review. I left some of my own comments to guide it a little. Some general notes: - The first commit is basically standalone. It just preps some mostly unrelated sources for the rest of the PR to work. It might not have enormous merit on its own, but not negative merit either. Could be merged alone, but also doesn't make the review a whole lot easier. (but it's only +274 -209) - The second commit is the one that introduces new infrastructure. It's the important one to review. - The 3rd commit uses the new infrastructure showing how some of the more complex attributes can be parsed using it. Theoretically can be split up, though the parsers in this commit are the ones that really test the new infrastructure and show that it all works. - The 4th commit fixes up rustdoc and clippy. In the previous 2 they didn't compile yet while the compiler does. Separated them out to separate concerns and make the rest more palatable. - The 5th commit blesses some test outputs. Sometimes that's just because a diagnostic happens slightly earlier than before, which I'd say is acceptable. Sometimes a diagnostic is now only emitted once where it would've been twice before (yay! fixed some bugs). One test I actually moved from crashes to fixed, because it simply doesn't crash anymore. That's why this PR Closes #132391. I think most choices I made here are generally reasonable, but let me know if you disagree anywhere. - The 6th commit adds a derive to pretty print attributes - The 7th removes smir apis for attributes, for the time being. The api will at some point be replaced by one based on `rustc_ast_data_structures::AttributeKind` In general, a lot of the additions here are comments. I've found it very important to document new things in the 2nd commit well so other people can start using it. Closes #132391 Closes #136717
2025-02-24add `tool::Cargofmt` binary to target sysrootonur-ozkan-2/+8
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-24add `tool::CargoClippy` binary to target sysrootonur-ozkan-2/+7
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-24minor: Add tabstop to impl body in `generate_trait_impl` assistGiga Bowser-14/+18
2025-02-24Remove dyn_compatible_for_dispatchMichael Goulet-1/+0
2025-02-24rename simd_shuffle_generic → simd_shuffle_const_genericRalf Jung-5/+5
2025-02-24Update booksrustbot-0/+0
2025-02-24use stage 2 on cargo and clippy tests when possibleonur-ozkan-6/+32
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-24Merge pull request #19171 from ShoyuVanilla/migrate-de-morgan-assistLukas Wirth-75/+351
internal: Migrate `apply_demorgan` to `SyntaxEditor`
2025-02-24Merge pull request #18987 from ChayimFriedman2/drop-glueLukas Wirth-6/+1002
feat: Calculate drop glue and show it on hover
2025-02-24Auto merge of #137523 - lnicola:sync-from-ra, r=lnicolabors-498/+718
Subtree update of `rust-analyzer` r? `@ghost`
2025-02-24Add `take()` method to `SyntaxEditor`Shoyu Vanilla-25/+20
2025-02-24Migrate `apply_demorgan` to `SyntaxEditor`Shoyu Vanilla-52/+162
2025-02-24Migrate some leftovers in `add_missing_match_arms`Shoyu Vanilla-25/+196
2025-02-24simplify must-use lint slightlyJana Dönszelmann-52/+47
2025-02-24Fix rustdoc and clippyJana Dönszelmann-119/+131
2025-02-24Change span field accesses to method callsJana Dönszelmann-0/+0
2025-02-24Merge pull request #4193 from bjorn3/arm64_vpmaxq_u8Ralf Jung-13/+124
Implement vpmaxq_u8 on aarch64
2025-02-24Merge pull request #19219 from Veykril/push-rvosplwpwqqtLukas Wirth-8/+122
Vendor `always-assert` into `stdx`
2025-02-24Merge pull request #19211 from Timmmm/user/timh/import_privateLukas Wirth-1/+4
Include private items in completions for local crates
2025-02-24Merge pull request #19197 from andylokandy/instaLukas Wirth-16/+13
feat: update insta inline snapshot when clicking 'Update Test' runnable
2025-02-24Merge pull request #19218 from Veykril/push-vqsronpuvrnxLukas Wirth-1/+0
Disable incremental on release builds
2025-02-24Vendor always-assertLukas Wirth-8/+122
2025-02-24Disable incremental on release buildsLukas Wirth-1/+0
2025-02-24slightly extend commentRalf Jung-1/+2
2025-02-24add missing float non-determinism tests and skip some on ↵Ralf Jung-10/+24
i686-pc-windows-msvc that are internally implemented via f64
2025-02-24Merge pull request #19217 from lnicola/event-nameLaurențiu Nicola-6/+6
Fix `event_name` check is workflows
2025-02-24make sure we install the toolchain for the intended host targetRalf Jung-1/+7
2025-02-24Fix event_name check in workflowsLaurențiu Nicola-6/+6
2025-02-24sanity-check for HOST_TARGETRalf Jung-1/+12
2025-02-24Downgrade to ubuntu-22.04 for aarch64-unknown-linux-gnu and ↵Laurențiu Nicola-2/+2
arm-unknown-linux-gnueabihf builds
2025-02-24Update browser-ui-test version to `0.20.3`Guillaume Gomez-1/+1
2025-02-24Auto merge of #137511 - jhpratt:rollup-07whsax, r=jhprattbors-61/+99
Rollup of 10 pull requests Successful merges: - #136610 (Allow `IndexSlice` to be indexed by ranges.) - #136991 ([rustdoc] Add new setting to wrap source code lines when too long) - #137061 (Unstable `gen_future` Feature Tracking ) - #137393 (Stabilize `unbounded_shifts`) - #137482 (Windows: use existing wrappers in `File::open_native`) - #137484 (Fix documentation for unstable sort on slice) - #137491 (Tighten `str-to-string-128690.rs``CHECK{,-NOT}`s to make it less likely to incorrectly fail with symbol name mangling) - #137495 (Added into_value function to ControlFlow<T, T>) - #137501 (Move `impl` blocks out of `rustc_middle/src/mir/syntax.rs`) - #137505 (Add a span to `CompilerBuiltinsCannotCall`) r? `@ghost` `@rustbot` modify labels: rollup
2025-02-24Update assist docsLaurențiu Nicola-149/+175
2025-02-24Format codeLaurențiu Nicola-2/+8
2025-02-24add coverage for explicit stage fieldsonur-ozkan-0/+57
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-24add explicit stage fields to `Config`onur-ozkan-0/+10
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-24Add rustc_hashes and bump the othersLaurențiu Nicola-17/+38
2025-02-24Merge from rust-lang/rustLaurențiu Nicola-1547/+2444
2025-02-24Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-02-24Rollup merge of #136991 - GuillaumeGomez:code-wrapping, r=notriddleJacob Pratt-61/+99
[rustdoc] Add new setting to wrap source code lines when too long Fixes https://github.com/rust-lang/rust/issues/127334. Wrapped lines look like this: ![image](https://github.com/user-attachments/assets/92006a27-ed1e-4beb-91f2-f453b72c5e1a) It works in both source code pages and doc pages. You can test it [here](https://rustdoc.crud.net/imperio/code-wrapping/bar/index.html). r? ``@notriddle``
2025-02-24Auto merge of #137285 - yotamofek:pr/rustdoc/pulldown-escaping, r=GuillaumeGomezbors-48/+4
librustdoc: Use `pulldown-cmark-escape` for HTML escaping Implementation of `@notriddle` 's [suggestion](https://github.com/rust-lang/rust/pull/137274#issuecomment-2669001585). Somewhat related to #137274 , but the two PRs should be complementary. Local perf results look like a nice improvement! (so would love a perf run on the CI)
2025-02-24Merge from rustcRalf Jung-1320/+2153
2025-02-24remove support for rustc_intrinsic_must_be_overridden from the compilerRalf Jung-4/+10
2025-02-24Preparing for merge from rustcRalf Jung-1/+1
2025-02-24use lua localsjyn-5/+5
Co-authored-by: DianQK <dianqk@dianqk.net>
2025-02-23document how to setup RA for nvim automaticallyjyn-4/+29
2025-02-23Auto merge of #137497 - tgross35:rollup-1oeclrr, r=tgross35bors-14/+21
Rollup of 8 pull requests Successful merges: - #136439 (Misc. `rustc_codegen_ssa` cleanups 🧹) - #136543 (intrinsics: unify rint, roundeven, nearbyint in a single round_ties_even intrinsic) - #136637 (Add binary_format to rustc target specs) - #137099 (Fix rustdoc test directives that were accidentally ignored 🧐) - #137297 (Update `compiler-builtins` to 0.1.147) - #137451 (FIx `sym` -> `syn` typo in tail-expr-drop-order type opt-out) - #137452 (bootstrap: add module docs for core:metadata) - #137483 (rename sub_ptr to offset_from_unsigned) r? `@ghost` `@rustbot` modify labels: rollup