Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /