Rollup of 22 pull requests#157555
Closed
jhpratt wants to merge 354 commits into
Closed
Conversation
fix: Fully support pattern types
This reverts commit 3efe801fe27ae68eff3cfe9cf84fb52b7e427ae3.
…structuring assignment
…l-syntax-factory Migrate inline_call assist to SyntaxFactory
…ng-assignment feat(diagnostics): add handler for functional record update in destructuring assignment
Show `unsafe` in the signature help if applicable
Instead of failing to resolve them, which can be confusing.
`TyKind::Pat` is hit on stable through `core::num::NonZero*` types which use it internally. `TyKind::UnsafeBinder` isn't hit yet, but added for completeness, since has_drop_glue ends up being called on hover.
Handle TyKind::{Pat,UnsafeBinder} in has_drop_glue
Since they can be referenced without the enum, and this prevents autoimport of them.
So they can be autoimported for external crates.
Example
---
```rust
mod module {}
fn foo() { $0::bar }
```
**Before this PR**
```rust
mod module {}
fn foo() { module::::bar }
```
**After this PR**
```rust
mod module {}
fn foo() { module::bar }
```
Co-authored-by: Chayim Refael Friedman <chayimfr@gmail.com>
fix: no complete module colons before exists colons
fix: not complete same name inherent deref methods
Update generated lints
This updates the rust-version file to ba0949a.
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: rust-lang/rust@ba0949a Filtered ref: rust-lang/rust-analyzer@1abb476 Upstream diff: rust-lang/rust@8afb6a8...ba0949a This merge was created using https://github.com/rust-lang/josh-sync.
minor: sync from downstream
…fresh internal: Ignore workspace/diagnostic/refresh in slow tests
fix: only ref match non-unknown value items
Co-authored-by: WaterWhisperer <waterwhisperer24@qq.com>
feat(diagnostics): add handler for E0040
Example
---
```rust
macro_rules! id { ($($t:tt)*) => ($($t)*); }
fn foo(data: &i32) {}
fn main() {
let indent = 2i32;
id!(foo(i$0))
}
```
**Before this PR**
```
indent
```
**After this PR**
```
&indent
indent
```
docs: make `Rc::into_raw` clickable in `Rc::increment_strong_count` doc adds doc link
Revert "LLVM 23: Run AssignGUIDPass in some places" This reverts commit cdb73bb. The LLVM side change was reverted.
clarify compiler_fence (and fence) docs Also see rust-lang/libs-team#794 for more discussion. Cc @Amanieu @m-ou-se
…ion, r=mejrs Debug assert that parsed attributes are in the `BUILTIN_ATTRIBUTE_MAP` There are currently two sources of truth for which attributes are builtin, the `BUILTIN_ATTRIBUTE_MAP` and the list of parsers. The long term goal is to get rid of the `BUILTIN_ATTRIBUTE_MAP` , but because of the way that crates depend on eachother this is not trivial. This PR makes sure the sources don't diverge. r? @mejrs
… r=JonathanBrouwer Rename `errors.rs` file to `diagnostics.rs` (1/N) `errors.rs` (and sometimes `error.rs`, depends on the crate) are not coherent with their content which can be both errors and lints. However, they're both diagnostics so it would make more sense to rename all of them into `diagnostics.rs`. I only did 3 crates for a start to confirm it's ok to go forward with this. I think it was discussed with @JonathanBrouwer so setting them as reviewer. :3 r? @JonathanBrouwer
…s-as-struct, r=ShoyuVanilla Convert `QueryRegionConstraint` into a struct as per in fixme
std tests: skip a slow test on Miri This is just a big loop to compare exit status handling, and the loop is a bit too big for Miri.
…bzol ci: bump x86_64-gnu base image to 26.04 This PR updates the x86_64-gnu CI Docker base image from 22.04 to 26.04. r? @Kobzol
Member
Author
|
@bors r+ rollup=never p=5 |
Contributor
Contributor
|
This pull request was unapproved due to being closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
rust-analyzersubtree update #157251 (rust-analyzersubtree update)Result::map_or_defaultandOption::map_or_default#156222 (StabilizeResult::map_or_defaultandOption::map_or_default)extern "tail"calling convention #157016 (addextern "tail"calling convention)#![windows_subsystem = "windows"]to debuginfo tests on Windows #157488 (compiletest: inject#![windows_subsystem = "windows"]to debuginfo tests on Windows)SyncView::{as_pin => as_pin_ref}#157521 (RenameSyncView::{as_pin => as_pin_ref})Rc::into_rawclickable inRc::increment_strong_countdoc #156783 (docs: makeRc::into_rawclickable inRc::increment_strong_countdoc)BUILTIN_ATTRIBUTE_MAP#157471 (Debug assert that parsed attributes are in theBUILTIN_ATTRIBUTE_MAP)errors.rsfile todiagnostics.rs(1/N) #157485 (Renameerrors.rsfile todiagnostics.rs(1/N))QueryRegionConstraintinto a struct #157494 (ConvertQueryRegionConstraintinto a struct)r? @ghost
Create a similar rollup