File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -1059,7 +1059,12 @@ impl DocFolder for Cache {
1059
1059
// Figure out the id of this impl. This may map to a
1060
1060
// primitive rather than always to a struct/enum.
1061
1061
let did = match i. for_ {
1062
- ResolvedPath { did, .. } => Some ( did) ,
1062
+ ResolvedPath { did, .. } |
1063
+ BorrowedRef {
1064
+ type_ : box ResolvedPath { did, .. } , ..
1065
+ } => {
1066
+ Some ( did)
1067
+ }
1063
1068
1064
1069
// References to primitives are picked up as well to
1065
1070
// recognize implementations for &str, this may not
Original file line number Diff line number Diff line change
1
+ // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ pub trait Foo {
12
+ fn foo ( & self ) { }
13
+ }
14
+
15
+ pub struct Bar ;
16
+
17
+ // @has issue_20175/struct.Bar.html \
18
+ // '//*[@id="method.foo"]' \
19
+ // 'fn foo'
20
+ impl < ' a > Foo for & ' a Bar { }
You can’t perform that action at this time.
0 commit comments