File tree 3 files changed +4
-11
lines changed
proc-macro-srv/proc-macro-test
3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 1
1
[workspace ]
2
2
members = [" xtask/" , " lib/*" , " crates/*" ]
3
- exclude = [" crates/proc-macro-srv/proc-macro-test/" ]
3
+ exclude = [" crates/proc-macro-srv/proc-macro-test/imp " ]
4
4
resolver = " 2"
5
5
6
6
[workspace .package ]
@@ -138,4 +138,4 @@ dashmap = { version = "=5.5.3", features = ["raw-api"] }
138
138
collapsible_if = " allow"
139
139
needless_pass_by_value = " allow"
140
140
nonminimal_bool = " allow"
141
- redundant_pattern_matching = " allow"
141
+ redundant_pattern_matching = " allow"
Original file line number Diff line number Diff line change @@ -101,9 +101,6 @@ pub fn resolve_doc_path_on(
101
101
link : & str ,
102
102
ns : Option < Namespace > ,
103
103
) -> Option < DocLinkDef > {
104
- // AttrDefId::FieldId(it) => it.parent.resolver(db.upcast()),
105
- // AttrDefId::EnumVariantId(it) => it.parent.resolver(db.upcast()),
106
-
107
104
resolve_doc_path_on_ ( db, link, def. attr_id ( ) , ns)
108
105
}
109
106
@@ -267,14 +264,10 @@ fn resolve_impl_trait_item(
267
264
method_resolution:: VisibleFromModule :: None ,
268
265
Some ( name) ,
269
266
& mut |assoc_item_id| {
270
- let assoc_item: AssocItem = assoc_item_id. into ( ) ;
271
-
272
- debug_assert_eq ! ( assoc_item. name( db) . as_ref( ) , Some ( name) ) ;
273
-
274
267
// If two traits in scope define the same item, Rustdoc links to no specific trait (for
275
268
// instance, given two methods `a`, Rustdoc simply links to `method.a` with no
276
269
// disambiguation) so we just pick the first one we find as well.
277
- result = as_module_def_if_namespace_matches ( assoc_item , ns) ;
270
+ result = as_module_def_if_namespace_matches ( assoc_item_id . into ( ) , ns) ;
278
271
279
272
if result. is_some ( ) {
280
273
ControlFlow :: Break ( ( ) )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ doctest = false
13
13
cargo_metadata = " 0.18.1"
14
14
15
15
# local deps
16
- toolchain = { path = " ../../toolchain " , version = " 0.0.0 " }
16
+ toolchain.workspace = true
17
17
18
18
[features ]
19
19
sysroot-abi = []
You can’t perform that action at this time.
0 commit comments