Skip to content

Commit 1b43503

Browse files
JohnTitormark-i-m
authored andcommitted
Use provide_both link instead of provide(_extern)
1 parent cc841a1 commit 1b43503

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/query.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,11 @@ providers**. Almost all **extern providers** wind up going through the
155155
[`rustc_metadata` crate][rustc_metadata], which loads the information
156156
from the crate metadata. But in some cases there are crates that
157157
provide queries for *both* local and external crates, in which case
158-
they define both a [`provide`][ext_provide] and a
159-
[`provide_extern`][ext_provide_extern] function that `rustc_driver`
160-
can invoke.
158+
they define both a `provide` and a `provide_extern` function, through
159+
[`provide_both`][ext_provide_both], that `rustc_driver` can invoke.
161160

162161
[rustc_metadata]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_metadata/index.html
163-
[ext_provide]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_llvm/attributes/fn.provide.html
164-
[ext_provide_extern]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_llvm/attributes/fn.provide_extern.html
162+
[ext_provide_both]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_llvm/attributes/fn.provide_both.html
165163

166164
### Adding a new kind of query
167165

0 commit comments

Comments
 (0)