Skip to content

Commit e03ee80

Browse files
committed
change key in Provider example (local) into LocalDefId
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
1 parent 07e05bb commit e03ee80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Suppose you want to add a new query called `fubar`. You would:
168168

169169
1. Implement the provider function:
170170
```rust,ignore
171-
fn fubar<'tcx>(tcx: TyCtxt<'tcx>, key: DefId) -> Fubar<'tcx> { ... }
171+
fn fubar<'tcx>(tcx: TyCtxt<'tcx>, key: LocalDefId) -> Fubar<'tcx> { ... }
172172
```
173173
2. Register it in the `provide` function:
174174
```rust,ignore

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy