-
Notifications
You must be signed in to change notification settings - Fork 14.1k
rust-analyzer subtree update
#149766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-analyzer subtree update
#149766
Conversation
So that we'll correctly treat it as an attribute. I don't like that we have to register every builtin macro even if we don't need it, but that's what we got.
fix: Register `define_opaque` builtin attribute macro
In the inferred type hints, expand the line too long. add config to disable it.
Example
---
```json
{"rust-analyzer.inlayHints.typeHints.hideInferredTypes": true}
```
```rust
use std::collections::HashMap;
fn foo(iter: Vec<Result<HashMap<String, String>, std::io::Error>>) {
let output = iter.into_iter().collect::<Result<Vec<_>, _>>().unwrap();
}
```
**Before this PR**
```rust
let output: Vec<HashMap<String, String>> = iter.into_iter().collect::<Result<Vec<_ = HashMap<String, String>>, _ = Error>>().unwrap();
```
**After this PR**
```rust
let output: Vec<HashMap<String, String>> = iter.into_iter().collect::<Result<Vec<_>, _>>().unwrap();
```
…match fix: Skip cfg attributes in macro input attribute stripping
Add config hide placeholders type hints
This avoids code duplication.
internal: Handle lint attributes via hir-expand attr handling
Since we don't implement it currently for perf reasons, but here we only need a struct's tail field, it will be wrong.
We no longer work properly with older versions.
…ted-version internal: Update supported Rust version to 1.90.0
fix: Don't implement sizedness check via `all_field_tys()`
optimize some stuff Optimize `pub(crate)` visibility resolution Optimize private visibility resolution
internal: Make `ModuleId` a tracked struct
Example
---
```rust
use core::future::Future;
trait DesugaredAsyncTrait {
fn foo(&self) -> impl Future<Output = ()> + Send;
}
impl DesugaredAsyncTrait for () {
$0
}
```
**Before this PR**
```rust
use core::future::Future;
trait DesugaredAsyncTrait {
fn foo(&self) -> impl Future<Output = ()> + Send;
}
impl DesugaredAsyncTrait for () {
async fn foo(&self) -> () {
$0
}
}
```
**After this PR**
```rust
use core::future::Future;
trait DesugaredAsyncTrait {
fn foo(&self) -> impl Future<Output = ()> + Send;
}
impl DesugaredAsyncTrait for () {
async fn foo(&self) {
$0
}
}
```
fix: Disable postcard use temporarily
…-ret-ty No complete unit RetType in resugar async assoc item
|
rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead. cc @rust-lang/rust-analyzer |
|
@bors r+ p=1 subtree sync |
|
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 5bc3450 (parent) -> 37aa213 (this PR) Test differencesShow 4 test diffs4 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 37aa2135b5d0936bd13aa699d941aaa94fbaa645 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (37aa213): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -1.6%, secondary -1.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 473.701s -> 470.452s (-0.69%) |
Subtree update of
rust-analyzerto rust-lang/rust-analyzer@5e3e9c4.Created using https://github.com/rust-lang/josh-sync.
r? @ghost