about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-02-25doc: remove nit from setup.mdbit-aloo-4/+10
2025-02-24Rollup merge of #137556 - RalfJung:simd_shuffle_const_generic, r=oli-obkMichael Goulet-5/+5
rename simd_shuffle_generic → simd_shuffle_const_generic I've been confused by this name one time too often. ;) r? `@oli-obk`
2025-02-24Rollup merge of #137552 - rustbot:docs-update, r=ehussMichael Goulet-0/+0
Update books ## rust-lang/book 2 commits in d4d2c18cbd20876b2130a546e790446a8444cb32..4a01a9182496f807aaa5f72d93a25ce18bcbe105 2025-02-24 14:48:34 UTC to 2025-02-13 19:29:47 UTC - Fix typos in chapter 17 (rust-lang/book#4238) - NoStarch backports (rust-lang/book#4224) ## rust-lang/edition-guide 2 commits in 8dbdda7cae4fa030f09f8f5b63994d4d1dde74b9..daa4b763cd848f986813b5cf8069e1649f7147af 2025-02-22 14:58:51 UTC to 2025-02-21 02:30:17 UTC - Remove precise capturing features (rust-lang/edition-guide#362) - use same name as previous example (rust-lang/edition-guide#360) ## rust-lang/nomicon 1 commits in 336f75835a6c0514852cc65aba9a698b699b13c8..8f5c7322b65d079aa5b242eb10d89a98e12471e1 2025-02-19 13:16:47 UTC to 2025-02-19 13:16:47 UTC - other-reprs: do not make it sound like we are making ABI promises for repr(int) enums (rust-lang/nomicon#461) ## rust-lang/reference 4 commits in 6195dbd70fc6f0980c314b4d23875ac570d8253a..615b4cec60c269cfc105d511c93287620032d5b0 2025-02-18 23:01:53 UTC to 2025-02-13 15:12:49 UTC - Add rule identifiers to names chapters (rust-lang/reference#1737) - Switch from AVX to SSE in the example (rust-lang/reference#1735) - Remove attributes from struct field rest patterns (rust-lang/reference#1736) - Update reference for target_feature_11. (rust-lang/reference#1720)
2025-02-24Rollup merge of #137489 - ↵Michael Goulet-4/+10
RalfJung:no-more-rustc_intrinsic_must_be_overridden, r=oli-obk remove `#[rustc_intrinsic_must_be_overridde]` In https://github.com/rust-lang/rust/pull/135031, we gained support for just leaving away the body. Now that the bootstrap compiler got bumped, stop using the old style and remove support for it. r? `@oli-obk` There are a few more mentions of this attribute in RA code that I didn't touch; Cc `@rust-lang/rust-analyzer`
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