about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-09-26Auto merge of #130907 - GuillaumeGomez:rollup-423r4i4, r=GuillaumeGomezbors-7/+14
Rollup of 11 pull requests Successful merges: - #130279 (Document subtleties of `ManuallyDrop`) - #130517 (Add the library workspace to the suggested rust-analyzer config) - #130820 (Fix diagnostics for coroutines with () as input.) - #130833 (Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation) - #130845 (Utf8Chunks: add link to Utf8Chunk) - #130850 (Pass Module Analysis Manager to Standard Instrumentations) - #130861 (Use `mem::offset_of!` for `sockaddr_un.sun_path`) - #130862 (rustdoc: do not animate :target when user prefers reduced motion) - #130868 (Update FIXME comment in s390x_unknown_linux_*.rs) - #130879 (Pass correct HirId to late_bound_vars in diagnostic code) - #130880 (add missing FIXME(const-hack)) r? `@ghost` `@rustbot` modify labels: rollup
2024-09-27Rollup merge of #130862 - zopsicle:patch-1, r=notriddle,GuillaumeGomezGuillaume Gomez-7/+12
rustdoc: do not animate :target when user prefers reduced motion This accessibility improvement gates #129284 behind an inverted [prefers-reduced-motion](https://developer.mozilla.org/en-US/docs/Web/CSS/`@media/prefers-reduced-motion)` media query.
2024-09-27Rollup merge of #130517 - bjorn3:update_ra_config, r=onur-ozkanGuillaume Gomez-0/+2
Add the library workspace to the suggested rust-analyzer config
2024-09-26rustdoc: consolidate prefers-reduced-motion-gated rulesetszopsicle-6/+4
2024-09-26minor: Use `SyntaxEditor` in `extract_variable`DropDemBits-66/+35
2024-09-26internal: Add `SyntaxFactory` to ease generating nodes with syntax mappingsDropDemBits-101/+186
2024-09-26Do not output () on empty descriptionCameron Pickett-3/+5
2024-09-26Couple of changes to make it easier to compile rustc for wasmbjorn3-0/+2
This is a subset of the patches I have on my rust fork to compile rustc for wasm32-wasip1.
2024-09-26fix: Don't report a startup error when a discover command is configuredWilfred Hughes-12/+6
Previously, r-a would show an error if both fetch_workspaces_queue and discover_workspace_queue were empty. We're in this state at startup, so users would see an error if they'd configured discover_workspace_config. Instead, allow the fetch_workspaces_queue to have zero items if discover_workspace_config is set. Whilst we're here, prefer "failed to fetch" over "failed to discover", so the error message better reflects what this function is doing.
2024-09-26Adjust allowed dependencies from the latest `cargo update`Trevor Gross-1/+1
2024-09-26cargo update: rustbookgithub-actions-226/+222
rustbook dependencies: Locking 70 packages to latest compatible versions Removing adler v1.0.2 Adding adler2 v2.0.0 Updating anstream v0.6.14 -> v0.6.15 Updating anstyle v1.0.7 -> v1.0.8 Updating anstyle-parse v0.2.4 -> v0.2.5 Updating anstyle-query v1.1.0 -> v1.1.1 Updating anstyle-wincon v3.0.3 -> v3.0.4 Updating anyhow v1.0.86 -> v1.0.89 Removing base64 v0.22.1 Updating bstr v1.9.1 -> v1.10.0 Adding byteorder v1.5.0 Updating cc v1.1.5 -> v1.1.21 Updating clap v4.5.9 -> v4.5.18 Updating clap_builder v4.5.9 -> v4.5.18 Updating clap_complete v4.5.8 -> v4.5.29 Updating clap_derive v4.5.8 -> v4.5.18 Updating clap_lex v0.7.1 -> v0.7.2 Updating colorchoice v1.0.1 -> v1.0.2 Updating core-foundation-sys v0.8.6 -> v0.8.7 Updating cpufeatures v0.2.12 -> v0.2.14 Adding dateparser v0.2.1 Removing deranged v0.3.11 Updating env_filter v0.1.0 -> v0.1.2 Updating env_logger v0.11.3 -> v0.11.5 Updating fastrand v2.1.0 -> v2.1.1 Updating flate2 v1.0.30 -> v1.0.33 Updating iana-time-zone v0.1.60 -> v0.1.61 Updating indexmap v2.2.6 -> v2.5.0 Updating is_terminal_polyfill v1.70.0 -> v1.70.1 Updating js-sys v0.3.69 -> v0.3.70 Adding lazy_static v1.5.0 Updating libc v0.2.155 -> v0.2.158 Removing linked-hash-map v0.5.6 Updating mdbook-i18n-helpers v0.3.4 -> v0.3.5 Updating miniz_oxide v0.7.4 -> v0.8.0 Updating normpath v1.2.0 -> v1.3.0 Removing num-conv v0.1.0 Updating opener v0.7.1 -> v0.7.2 Updating pest v2.7.11 -> v2.7.13 Updating pest_derive v2.7.11 -> v2.7.13 Updating pest_generator v2.7.11 -> v2.7.13 Updating pest_meta v2.7.11 -> v2.7.13 Removing plist v1.7.0 Removing powerfmt v0.2.0 Updating ppv-lite86 v0.2.17 -> v0.2.20 Adding pulldown-cmark v0.11.3 (latest: v0.12.1) Adding pulldown-cmark-escape v0.11.0 Adding pulldown-cmark-to-cmark v15.0.1 (latest: v17.0.0) Removing quick-xml v0.32.0 Updating quote v1.0.36 -> v1.0.37 Updating redox_syscall v0.5.3 -> v0.5.4 Updating regex v1.10.5 -> v1.10.6 Updating rustix v0.38.34 -> v0.38.37 Updating serde v1.0.204 -> v1.0.210 Updating serde_derive v1.0.204 -> v1.0.210 Updating serde_json v1.0.120 -> v1.0.128 Updating serde_spanned v0.6.6 -> v0.6.7 Updating syn v2.0.71 -> v2.0.77 Updating tempfile v3.10.1 -> v3.12.0 Updating thiserror v1.0.62 -> v1.0.63 Updating thiserror-impl v1.0.62 -> v1.0.63 Removing time v0.3.36 Removing time-core v0.1.2 Removing time-macros v0.2.18 Updating toml v0.8.14 -> v0.8.19 Updating toml_datetime v0.6.6 -> v0.6.8 Updating toml_edit v0.22.15 -> v0.22.21 Updating unicode-ident v1.0.12 -> v1.0.13 Updating unicode-normalization v0.1.23 -> v0.1.24 Updating unicode-width v0.1.13 -> v0.1.14 (latest: v0.2.0) Updating version_check v0.9.4 -> v0.9.5 Updating wasm-bindgen v0.2.92 -> v0.2.93 Updating wasm-bindgen-backend v0.2.92 -> v0.2.93 Updating wasm-bindgen-macro v0.2.92 -> v0.2.93 Updating wasm-bindgen-macro-support v0.2.92 -> v0.2.93 Updating wasm-bindgen-shared v0.2.92 -> v0.2.93 Updating winapi-util v0.1.8 -> v0.1.9 Adding windows-sys v0.59.0 Updating winnow v0.6.13 -> v0.6.18 Removing yaml-rust v0.4.5 Adding zerocopy v0.7.35 Adding zerocopy-derive v0.7.35 note: pass `--verbose` to see 26 unchanged dependencies behind latest [ extracted from rust-lang/rust#129538 - Trevor ] Co-authored-by: Trevor Gross <tmgross@umich.edu>
2024-09-26Include buildfiles in vfsDavid Richey-0/+16
2024-09-26rustdoc: do not animate when user prefers reduced motionzopsicle-7/+14
This accessibility improvement gates the target flashing and tooltip fade-out behind an inverted prefers-reduced-motion media query.
2024-09-26Stabilize `const_refs_to_static`Ding Xiang Fei-2/+0
update tests fix bitwidth-sensitive stderr output use build-fail for asm tests
2024-09-26Auto merge of #3916 - rust-lang:rustup-2024-09-26, r=RalfJungbors-25227/+21828
Automatic Rustup
2024-09-26remove some clippy lints from the list that we do not even trigger any moreRalf Jung-2/+0
2024-09-26fix clippy::needless_returnRalf Jung-13/+13
2024-09-26clippyRalf Jung-5/+7
2024-09-26bump rustc-build-sysroot versionRalf Jung-3/+3
2024-09-26Merge from rustcThe Miri Cronjob Bot-25206/+21807
2024-09-26Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-09-25Remove the `control_flow_enum` feature from clippyScott McMurray-2/+0
2024-09-25don't clone `clean::Item` in `TypeImplCollector`Lukas Markeffsky-9/+9
2024-09-25rm higher-ranked lifetimes from `DocVisitor`Lukas Markeffsky-15/+15
This allows the visitor to borrow from the visitees.
2024-09-25de-rc external traitsLukas Markeffsky-21/+19
Don't keep the `external_traits` as shared mutable data between the `DocContext` and `clean::Crate`. Instead, move the data over when necessary. This allows us to get rid of a borrowck hack in the `DocVisitor`.
2024-09-25Require rust 1.81David Richey-1/+1
2024-09-25Auto merge of #18180 - kpreid:search, r=davidbarskybors-0/+16
feat: Index workspace symbols at startup rather than on the first symbol search. This will eliminate potential many-second delays when performing the first search, at the price of making cache priming (“Indexing N/M” in the VS Code status bar) take a little longer in total. Hopefully this additional time is insignificant because a typical session will involve at least one symbol search. Further improvement would be to do this as a separate parallel task (which will be beneficial if the workspace contains a small number of large crates), but that would require significant additional refactoring of the progress-reporting mechanism to understand multiple tasks per crate. Happy to tackle that in this PR if desired, but I thought I'd propose the minimal change first.
2024-09-25Auto merge of #18181 - davidbarsky:davidbarsky/push-nzstpumovmmx, r=davidbarskybors-4/+24
internal: add tracing to project discovery and VFS loading With `"env RA_PROFILE=vfs_load|parallel_prime_caches|discover_command>500`, this results in the following output: ``` 21888ms discover_command 11627ms vfs_load @ total = 701 1503ms vfs_load @ total = 701 30211ms parallel_prime_caches ``` As a followup, I'd like to make hprof emit the information above as JSON.
2024-09-25Prime caches for symbol search too.Kevin Reid-0/+16
2024-09-25Auto merge of #3915 - RalfJung:target-json-test, r=RalfJungbors-27/+25
switch custom target JSON test to a less exotic target We used to test an AVR target here, but while it is nice to test a 16bit target, it is also currently the case that rustc CI does not even check that libcore builds on a 16bit target -- and we don't want Miri to be in the game of maintaining that support. (See https://github.com/rust-lang/rust/issues/130818.) So let's use a tier 2 target as the basis for testing a custom JSON target. (FWIW, we also test wasm32-wasip2 which is tier 3, but I expect it will become tier 2 Soon-ish.)
2024-09-25switch custom target JSON test to a less exotic targetRalf Jung-27/+25
2024-09-25Fix file paths to section 35.1 & 35.2 example code (#2078)Christopher Speir-2/+2
2024-09-25internal: add tracing to project discovery and VFS loadingDavid Barsky-4/+24
2024-09-25Auto merge of #130812 - lnicola:sync-from-ra, r=lnicolabors-22630/+14369
Subtree update of `rust-analyzer` r? `@ghost`
2024-09-25enable pthread_cond_timedwait test on AndroidRalf Jung-1/+1
2024-09-25Changes for debug restartingBas van Driel-1/+63
2024-09-25Auto merge of #130778 - flip1995:clippy-subtree-update, r=Manishearthbors-2572/+7430
Clippy subtree update r? `@Manishearth` Really delayed sync (2 1/2 weeks), because of a `debug_assertion` we hit, and I didn't have the time to investigate earlier. It would be nice to merge this PR with some priority, as it includes a lot of formatting changes due to the rustfmt bump. Include Cargo.lock update due to Clippy version bump and ui_test bump in Clippy.
2024-09-25Compiler: Rename "object safe" to "dyn compatible"León Orell Valerian Liehr-1/+1
2024-09-25Remove `HirCollector::map`.Nicholas Nethercote-12/+4
Because `rustc_middle::hir::map::Map` is a trivial wrapper around `TyCtxt`, and `HirCollector` has a `TyCtxt` field.
2024-09-25Remove `HirCollector::sess`.Nicholas Nethercote-11/+7
It's redundant w.r.t. `HirCollector::tcx`. This removes the unnecessary `'a` lifetime.
2024-09-25Android: Fixed tests for libc time APIYoh Deadfall-8/+28
2024-09-25disable AVR test since it doesn't workRalf Jung-1/+2
2024-09-25Auto merge of #130816 - matthiaskrgr:rollup-jy25phv, r=matthiaskrgrbors-0/+4
Rollup of 6 pull requests Successful merges: - #130549 (Add RISC-V vxworks targets) - #130595 (Initial std library support for NuttX) - #130734 (Fix: ices on virtual-function-elimination about principal trait) - #130787 (Ban combination of GCE and new solver) - #130809 (Update llvm triple for OpenHarmony targets) - #130810 (Don't trap into the debugger on panics under Linux) r? `@ghost` `@rustbot` modify labels: rollup
2024-09-25Rollup merge of #130549 - biabbas:riscv32_wrs_vxworks, r=nnethercoteMatthias Krüger-0/+4
Add RISC-V vxworks targets Risc-V 32 and RISC-V 64 targets are to be added in the target list.
2024-09-25Add missing rustc_privateLaurențiu Nicola-0/+7
2024-09-25update BASIC test list: no longer test HashMap, add libc-mem instead of ↵Ralf Jung-6/+6
'align' for heap allocator coverage, move 'hello' to UNIX HashMap now needs pretty target-specific randomness functions. It still works on Android, but not on FreeBSD and Solarish.
2024-09-25Auto merge of #18183 - lnicola:sync-from-rust, r=lnicolabors-15475/+23345
internal: Sync from downstream
2024-09-25avoid using HashMap in fs testRalf Jung-3/+3
2024-09-25Run rustfmtLaurențiu Nicola-3/+1
2024-09-25Pass all-targets for build scripts in more cli commandsLukas Wirth-12/+30
Without this, build scripts don't run for tests and as such any proc-macros in dev-deps fail to resolve