Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
d119977
Diagnose inactive code in macros
ChayimFriedman2 May 6, 2026
be18690
Allow disabling the inactive-code diagnostic in code
ChayimFriedman2 May 6, 2026
6dfb135
Respect `references.exclude[Tests/Imports]` in references lens
ChayimFriedman2 Jun 28, 2026
41954a2
internal: Port `ExprScopes` over to visitor fully
Veykril Jul 19, 2026
388818c
internal: Make stdout/stderr explicit in JsonLinesParser
Wilfred Jun 22, 2026
047fb62
restrict visibility of mapping methods
bit-aloo Jul 24, 2026
95048dc
remove clone_for_updates entirely,
bit-aloo Jul 24, 2026
df6ded5
remove clone_for_update from AstNode
bit-aloo Jul 24, 2026
507ea9e
make syntax editor void of any mutable API
bit-aloo Jul 24, 2026
01c1b9a
update mapping for element and remove for node
bit-aloo Jul 24, 2026
70c3ea6
update edits with new annotation semantics
bit-aloo Jul 24, 2026
6877440
Refactor edit_algo around immutable syntax tree with better semantics
bit-aloo Jul 24, 2026
e818be7
Merge pull request #22660 from ChayimFriedman2/exclude-refs-lens
ShoyuVanilla Jul 27, 2026
29f0e76
Merge pull request #22306 from ChayimFriedman2/inactive-code
ShoyuVanilla Jul 27, 2026
49d4204
fix: resolve path on all namespaces and return resolution based on vi…
ChayimFriedman2 May 17, 2026
31086e2
fix: Only parse stdout in discover protocol
Wilfred Jun 22, 2026
2108f92
Merge pull request #22903 from Wilfred/stderr_discovery
ShoyuVanilla Jul 27, 2026
a1e1cb1
Merge pull request #22743 from dfireBird/fix-nameref-classify
ChayimFriedman2 Jul 27, 2026
de3c5b6
internal: Spelling and grammar fixes
Wilfred Jul 27, 2026
9c13c1f
fix: don't pick a discriminant type larger than typeck's
shulaoda Jul 27, 2026
edccf1e
Merge pull request #22931 from Wilfred/grammar_futzing
lnicola Jul 27, 2026
1da028b
fix: use char counts in progress bar
AayushMainali-Github Jul 27, 2026
f19f3ee
Merge pull request #22909 from AayushMainali-Github/fix/22844-unicode…
ChayimFriedman2 Jul 27, 2026
5c28d00
Merge pull request #22932 from shulaoda/07-27-fix_don_t_pick_a_discri…
ChayimFriedman2 Jul 27, 2026
e86cdb5
fix: don't panic on a qualified path whose trait is not a trait
shulaoda Jul 28, 2026
7d13615
Merge pull request #22930 from shulaoda/07-27-fix_don_t_panic_on_a_qu…
ChayimFriedman2 Jul 28, 2026
e42a814
fix: Failed to lookup MACRO_CALL@... in this Semantics due to include!
Wilfred Jul 22, 2026
48e3675
Merge pull request #22933 from Wilfred/fix/inline-macro-included-file
Veykril Jul 28, 2026
db60d94
internal: update next-solver to 0.166
ada4a Jul 28, 2026
2a82c4b
fix(vfs): use component-based path prefix matching for virtual paths
cuishuang Jul 28, 2026
209fb20
Merge pull request #22939 from ada4a/push-kmnplvwwunpy
ChayimFriedman2 Jul 28, 2026
6f943df
Merge pull request #22940 from cuishuang/master
ChayimFriedman2 Jul 28, 2026
0248a75
Reformat snippet docs so that they appear in the book
ian-h-chamberlain Jul 28, 2026
c919046
Merge pull request #22942 from ian-h-chamberlain/fix/snippet-document…
ChayimFriedman2 Jul 28, 2026
02f2944
Mark auto traits as coinductive
ChayimFriedman2 Jul 28, 2026
13901c0
Store liberated closure sigs in InferenceResult
ChayimFriedman2 Jul 29, 2026
6146254
Merge pull request #22943 from ChayimFriedman2/coinductive-auto
Veykril Jul 29, 2026
0cae0a1
Merge pull request #22945 from ChayimFriedman2/liberated-sigs
Veykril Jul 29, 2026
a6a9f65
Report a config error for postfix snippets with item scope
Joshuaisikah Jul 29, 2026
8cba7c7
Merge pull request #22937 from Joshuaisikah/warn-postfix-snippet-item…
ChayimFriedman2 Jul 29, 2026
c5ccd5b
hir-ty, ide-diagnostics: use E0057 vs E0061 for arg-count mismatch
kivancgnlp Jul 29, 2026
d1bfa49
Implement `slice_get_unchecked` mir shim
Veykril Jul 29, 2026
945c8fa
Recursively patch addresses of slices
Veykril Jul 29, 2026
0c06249
Merge pull request #22947 from kivancgnlp/fn-trait-arg-count
ChayimFriedman2 Jul 29, 2026
7fab15a
fix: avoid escaping bound vars in closure MIR parameter types
edragain2nd Jul 28, 2026
1a74a27
Merge pull request #22938 from edragain2nd/fix/hrtb_closure
ChayimFriedman2 Jul 29, 2026
56a1c0d
Double stack size for threads to 16MiB
ChayimFriedman2 Jul 29, 2026
97c95c6
fix: no hint with similar name raw-ident arg
A4-Tacks Jul 29, 2026
b562f1d
Merge pull request #22957 from A4-Tacks/raw-arg-hints
ChayimFriedman2 Jul 29, 2026
883659d
Revert "Remove lockfile-path support for Cargo versions below 1.94.0"
nilehmann Jul 29, 2026
743519a
Merge pull request #22958 from nilehmann/push-xszpmkosrpqw
ChayimFriedman2 Jul 30, 2026
c828771
Support `CovariantUnsafeCell`
ChayimFriedman2 Jul 30, 2026
129d0df
Merge pull request #22959 from ChayimFriedman2/covariant-unsafe-cell
ChayimFriedman2 Jul 30, 2026
def6823
Add comment on replacements_are_disjoint method and better upmap syntax
bit-aloo Jul 30, 2026
5815534
Merge pull request #22808 from bit-aloo/2026-07-15-remove-mutable-row…
ChayimFriedman2 Jul 30, 2026
1d5bcea
Avoid having a separate query for defined opaques
ChayimFriedman2 Jul 30, 2026
735a39d
Do not alloc anon consts for bare paths in blocks
ChayimFriedman2 Jul 30, 2026
13b4a5e
Use format! instead of string
tyler-breisacher-zipline Jul 31, 2026
378751b
Merge pull request #22967 from tyler-breisacher-zipline/format
ChayimFriedman2 Jul 31, 2026
036c57f
Remove add_tabstop_after_token from source change
bit-aloo Jul 31, 2026
5030272
Remove add_tabstop_before_token and adapt generate_derive assist
bit-aloo Jul 31, 2026
e761d02
Remove add_tabstop_before_token fomr source_change
bit-aloo Jul 31, 2026
06917be
Remove add_placeholder_snippet fomr source_change
bit-aloo Jul 31, 2026
5a6c923
Remove add_tabstop_before from source_change
bit-aloo Jul 31, 2026
f5601fa
Remove add_snippet from source change
bit-aloo Jul 31, 2026
72a9c71
removed PlaceSnippet and its unused SnippetBuilder
bit-aloo Jul 31, 2026
d19e404
Removed unused From<IntMap<FileId, TextEdit>>, and the extend variant.
bit-aloo Jul 31, 2026
0e85865
Merge pull request #22969 from bit-aloo/2026-07-31-simplify-source-ch…
ChayimFriedman2 Jul 31, 2026
1f5c92a
fix: Fix glob imports overriding later specific imports
kristoff3r Jul 22, 2026
174cb70
Merge pull request #22886 from kristoff3r/glob-type-mismatch
ShoyuVanilla Jul 31, 2026
2945d4d
fix: show qualified paths when type names collide in E0308
rit3sh-x Jul 30, 2026
fb3920f
Merge pull request #22964 from rit3sh-x/fix/22331-qualified-paths-on-…
ChayimFriedman2 Jul 31, 2026
f37e635
Merge pull request #22965 from ChayimFriedman2/bare-path-const
Veykril Jul 31, 2026
a2930f8
Merge pull request #22966 from ChayimFriedman2/no-relowering-opaques
Veykril Jul 31, 2026
f55e9c1
Merge pull request #22956 from ChayimFriedman2/big-stack
ChayimFriedman2 Jul 31, 2026
ed4e817
Merge pull request #22948 from Veykril/lukaswirth/push-ppkyzvvwuppt
Veykril Aug 1, 2026
e7a327f
Merge pull request #22864 from Veykril/lukaswirth/push-kswvmlyvmvsv
Veykril Aug 1, 2026
6b5fd96
fix: don't panic on a self-referential `impl Trait` function
shulaoda Aug 1, 2026
b33c51e
fix: recognize format arguments after a backslash in raw strings
shulaoda Aug 1, 2026
f4a95b6
Merge pull request #22992 from shulaoda/08-02-fix_don_t_panic_on_a_se…
ChayimFriedman2 Aug 1, 2026
c973eb0
fix: detect the rust-analyzer component in a multi-line components array
Musteab Aug 1, 2026
01db4e1
Do not store references in `ExprScope`'s visitor
ChayimFriedman2 Aug 2, 2026
fb409cb
Merge pull request #22993 from shulaoda/08-02-fix_recognize_format_ar…
ChayimFriedman2 Aug 2, 2026
889a940
Bump rowan to 0.17.0
bit-aloo Jul 31, 2026
9c3358a
Adapt to borrowed Rowan green nodes
bit-aloo Jul 31, 2026
f12a136
Remove the obsolete TokenText wrapper
bit-aloo Jul 31, 2026
29133df
Fix tokenText removal fallout
bit-aloo Aug 2, 2026
fa05017
Remove absolute versioning in rowan import
bit-aloo Aug 2, 2026
fc8cdcf
Merge pull request #22998 from bit-aloo/2026-08-02-bump-rowan-0.17
ChayimFriedman2 Aug 2, 2026
b1ea7ce
Capture the components array and check it for rust-analyzer
Musteab Aug 2, 2026
21038a8
Merge pull request #22996 from Musteab/fix-multiline-components-detec…
ChayimFriedman2 Aug 2, 2026
9cebc26
fix: add reference for same name param coerce matches
A4-Tacks Aug 2, 2026
08e0d56
Use as_reference() api
A4-Tacks Aug 2, 2026
95f1a80
fix: parse postfix range inside closure in access
A4-Tacks Aug 2, 2026
95b4e46
minor: variant eval error use source instead of node debug
A4-Tacks Aug 2, 2026
dc281b4
Correctly handle unlinked module edge cases
George-Ogden Aug 1, 2026
bb376fa
Merge pull request #22977 from George-Ogden/linked-module-names
A4-Tacks Aug 2, 2026
ed3a7e7
Merge pull request #23005 from A4-Tacks/variant-eval-err-src
Veykril Aug 2, 2026
abea8c8
Merge pull request #22997 from ChayimFriedman2/expr-scope-visitor
Veykril Aug 2, 2026
9395b57
Merge pull request #23004 from A4-Tacks/postfix-range-no-rhs-parse
ChayimFriedman2 Aug 2, 2026
c1dcbfc
Move instantiate_with_errors from local_ty into param
A4-Tacks Aug 2, 2026
382d5d4
Merge pull request #23003 from A4-Tacks/coerce-func-param-comp
ChayimFriedman2 Aug 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 26 additions & 24 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,7 @@ dependencies = [
"itertools 0.15.0",
"paths",
"serde_json",
"smallvec",
"stdx",
"syntax",
"test-fixture",
Expand Down Expand Up @@ -2061,9 +2062,9 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"

[[package]]
name = "ra-ap-rustc_abi"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f25a779e21ca3bba6795193b16508c8ab159f96ee4b07349893fd272065b525"
checksum = "e2cf1b1ffe31b6226c00b40cddfda65002b7729f9f4ed2d547b5856cdab0011c"
dependencies = [
"bitflags",
"ra-ap-rustc_hashes",
Expand All @@ -2073,33 +2074,33 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_ast_ir"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0218ca6c7b096466e85a497e6150c39be5b7bc36637fe62c1cd20370a9d9aac7"
checksum = "2ef42605e36e1305e815ccfc8830eb870f74d78534bca19a61629149536d8e98"

[[package]]
name = "ra-ap-rustc_hashes"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d6b410bacf1a7c8038f376fa6283003784d568ac012e35fc0aeefa9a5ab11a2e"
checksum = "b9f5542968215c17275920791b2fa13a43014287506ed0450777c79845102e86"
dependencies = [
"rustc-stable-hash",
]

[[package]]
name = "ra-ap-rustc_index"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2271b55e4a5d0cc0cbe9bdf8056c07ac69e32919a48ce66722ed0526d62588c3"
checksum = "1d9e47b9ca7d92cfb0d6653503adbabd41938b84474317397a664326b208d6c6"
dependencies = [
"ra-ap-rustc_index_macros",
]

[[package]]
name = "ra-ap-rustc_index_macros"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6a89e743fb881a1e13544e3395a5ad9ad9280d56384256a121066119abd7af2"
checksum = "4d744a7a2852a22f06210bcff9e4667ed0cacbfbe94894cc294044d25e876341"
dependencies = [
"proc-macro2",
"quote",
Expand All @@ -2108,9 +2109,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_lexer"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6d7c9cc05e0e6b72a214a455a106d9b22b0494164d50a657b17bd319534c218"
checksum = "527c12b3731b7d0692498012810b85b2b8dfdb8b514321ed6afc434bd1c70191"
dependencies = [
"memchr",
"unicode-ident",
Expand All @@ -2119,9 +2120,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_next_trait_solver"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb3017c2f0ace80b8e6068b9c613aa56ed50e0374bf44a891447511f1264e40d"
checksum = "a7a9663a8d7c369e934aac2b74a638537ad7eb4be75b4530d765384dc071c936"
dependencies = [
"derive-where",
"ra-ap-rustc_index",
Expand All @@ -2132,19 +2133,19 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_parse_format"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a737f844bdef8ac5ab54dadf2f34704b4d06beef9236d71080bb34db697220b"
checksum = "2c038b7a8b0f784d4e441ad8ab991fbbdaa5e0be482e59c639a846a1c8126951"
dependencies = [
"ra-ap-rustc_lexer",
"rustc-literal-escaper",
]

[[package]]
name = "ra-ap-rustc_pattern_analysis"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6de3d4c7d6078cce3c40c55717b8b15002a80b9fa8849faea496a365324861b4"
checksum = "42ca286f90e99bb97cd9274c088f3c874a05d1ee90cabf40a3928afedabe99fd"
dependencies = [
"ra-ap-rustc_index",
"rustc-hash 2.1.2",
Expand All @@ -2155,9 +2156,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_type_ir"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c5d9a4d3e7bee7313599bc6d794037247ac0165f03857379cf4fc3097199e05"
checksum = "26d6efb6008f665a9485e0afecf9f4950a6c4bedd8ddd330a9df8986a6c0160b"
dependencies = [
"arrayvec",
"bitflags",
Expand All @@ -2176,9 +2177,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_type_ir_macros"
version = "0.165.0"
version = "0.166.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "024598d1f54272acd83d28c121f8a2e82e216dd7be1e40158b66b2d12fa214c0"
checksum = "5f4fd2355e2bbf1f343c730f623596efc6e465b5e3685b606a437567ebb75bf8"
dependencies = [
"proc-macro2",
"quote",
Expand Down Expand Up @@ -2295,9 +2296,9 @@ checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"

[[package]]
name = "rowan"
version = "0.15.19"
version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2441aaccb50f4267d4f0f58b21e0138e96a449f361ed57a2673a83c9bca0772"
checksum = "14b574c58582fa59fa43a2feb6608b8744184659f08a2e0117e4b8224d95ed61"
dependencies = [
"countme",
"hashbrown 0.14.5",
Expand Down Expand Up @@ -2713,6 +2714,7 @@ dependencies = [
"expect-test",
"itertools 0.15.0",
"parser",
"ra-ap-rustc_lexer",
"rayon",
"rowan",
"rustc-hash 2.1.2",
Expand Down
18 changes: 9 additions & 9 deletions src/tools/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
vfs = { path = "./crates/vfs", version = "0.0.0" }
edition = { path = "./crates/edition", version = "0.0.0" }

ra-ap-rustc_lexer = { version = "0.165", default-features = false }
ra-ap-rustc_parse_format = { version = "0.165", default-features = false }
ra-ap-rustc_index = { version = "0.165", default-features = false }
ra-ap-rustc_abi = { version = "0.165", default-features = false }
ra-ap-rustc_pattern_analysis = { version = "0.165", default-features = false }
ra-ap-rustc_ast_ir = { version = "0.165", default-features = false }
ra-ap-rustc_type_ir = { version = "0.165", default-features = false }
ra-ap-rustc_next_trait_solver = { version = "0.165", default-features = false }
ra-ap-rustc_lexer = { version = "0.166", default-features = false }
ra-ap-rustc_parse_format = { version = "0.166", default-features = false }
ra-ap-rustc_index = { version = "0.166", default-features = false }
ra-ap-rustc_abi = { version = "0.166", default-features = false }
ra-ap-rustc_pattern_analysis = { version = "0.166", default-features = false }
ra-ap-rustc_ast_ir = { version = "0.166", default-features = false }
ra-ap-rustc_type_ir = { version = "0.166", default-features = false }
ra-ap-rustc_next_trait_solver = { version = "0.166", default-features = false }

# local crates that aren't published to crates.io. These should not have versions.

Expand Down Expand Up @@ -123,7 +123,7 @@ process-wrap = { version = "9.1.0", features = ["std"] }
pulldown-cmark-to-cmark = "10.0.4"
pulldown-cmark = { version = "0.9.6", default-features = false }
rayon = "1.10.0"
rowan = "=0.15.19"
rowan = "0.17.0"
# Ideally we'd not enable the macros feature but unfortunately the `tracked` attribute does not work
# on impls without it
salsa = { version = "0.27.0", default-features = false, features = [
Expand Down
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/crates/hir-def/src/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ fn match_attr_flags(attr_flags: &mut AttrFlags, attr: ast::Meta) -> ControlFlow<
let segment4 = segment4.and_then(|it| it.segment()?.name_ref());
segment1.text() == "test"
&& segment3.is_none_or(|it| it.text() == "prelude")
&& segment4.is_none_or(|it| matches!(&*it.text(), "core" | "std"))
&& segment4.is_none_or(|it| matches!(it.text(), "core" | "std"))
});
if is_test {
attr_flags.insert(AttrFlags::IS_TEST);
Expand Down
4 changes: 2 additions & 2 deletions src/tools/rust-analyzer/crates/hir-def/src/attrs/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ pub struct Docs {
docs: String,
/// A sorted map from an offset in `docs` to an offset in the source code.
docs_source_map: Vec<DocsSourceMapLine>,
/// If the item is an outlined module (`mod foo;`), `docs_source_map` store the concatenated
/// If the item is an outlined module (`mod foo;`), `docs_source_map` stores the concatenated
/// list of the outline and inline docs (outline first). Then, this field contains the [`HirFileId`]
/// of the outline declaration, and the index in `docs` from which the inline docs
/// begin.
outline_mod: Option<(HirFileId, usize)>,
inline_file: HirFileId,
/// The size the prepended prefix, which does not map to real doc comments.
/// The size of the prepended prefix, which does not map to real doc comments.
prefix_len: TextSize,
/// The offset in `docs` from which the docs are inner attributes/comments.
inline_inner_docs_start: Option<TextSize>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ impl<'db> ExprCollector<'db> {
lifetime: ast::Lifetime,
) -> LifetimeRefId {
// FIXME: Keyword check?
let lifetime_ref = match &*lifetime.text() {
let lifetime_ref = match lifetime.text() {
"" | "'" => LifetimeRef::Error,
"'static" => LifetimeRef::Static,
"'_" => LifetimeRef::Placeholder,
Expand Down Expand Up @@ -1295,7 +1295,7 @@ impl<'db> ExprCollector<'db> {
match binder.generic_param_list() {
Some(gpl) => gpl
.lifetime_params()
.flat_map(|lp| lp.lifetime().map(|lt| Name::new_lifetime(&lt.text())))
.flat_map(|lp| lp.lifetime().map(|lt| Name::new_lifetime(lt.text())))
.collect(),
None => ThinVec::default(),
}
Expand Down Expand Up @@ -3175,7 +3175,7 @@ impl<'db> ExprCollector<'db> {
name: ast_label
.lifetime()
.as_ref()
.map_or_else(Name::missing, |lt| Name::new_lifetime(&lt.text())),
.map_or_else(Name::missing, |lt| Name::new_lifetime(lt.text())),
};
self.alloc_label(label, AstPtr::new(&ast_label))
}
Expand All @@ -3195,7 +3195,7 @@ impl<'db> ExprCollector<'db> {
(hygiene_id.syntax_context().parent(self.db), expansion.def)
})
};
let name = Name::new_lifetime(&lifetime.text());
let name = Name::new_lifetime(lifetime.text());

for (rib_idx, rib) in self.label_ribs.iter().enumerate().rev() {
match &rib.kind {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl ExprCollector<'_> {
Some(InlineAsmRegOrRegClass::Reg(Symbol::intern(string.text())))
} else {
reg.name_ref().map(|name_ref| {
InlineAsmRegOrRegClass::RegClass(Symbol::intern(&name_ref.text()))
InlineAsmRegOrRegClass::RegClass(Symbol::intern(name_ref.text()))
})
}
};
Expand Down Expand Up @@ -69,7 +69,7 @@ impl ExprCollector<'_> {
continue;
}
ast::AsmPiece::AsmOperandNamed(op) => {
let name = op.name().map(|name| Symbol::intern(&name.text()));
let name = op.name().map(|name| Symbol::intern(name.text()));
if let Some(name) = &name {
named_args.insert(name.clone(), slot);
named_pos.insert(slot, name.clone());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl GenericParamsCollector {
.map(|lifetime_param| {
lifetime_param
.lifetime()
.map_or_else(Name::missing, |lt| Name::new_lifetime(&lt.text()))
.map_or_else(Name::missing, |lt| Name::new_lifetime(lt.text()))
})
.collect()
});
Expand Down
Loading
Loading