Skip to content

Commit 50e2cc7

Browse files
repalce crateid term with crate_name
The `crateid` term or attribute is replaced with `crate_name` in [chapter crates and source files](https://doc.rust-lang.org/reference/crates-and-source-files.html#the-crate_name-attribute). It was original proposed in [RFC0109] (https://rust-lang.github.io/rfcs/0109-remove-crate-id.html) and merged in [PR109](rust-lang/rfcs#109)
1 parent 30fe984 commit 50e2cc7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/items/extern-crates.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ clause can be used to bind the imported crate to a different name.
2020
The external crate is resolved to a specific `soname` at compile time, and a
2121
runtime linkage requirement to that `soname` is passed to the linker for
2222
loading at runtime. The `soname` is resolved at compile time by scanning the
23-
compiler's library path and matching the optional `crateid` provided against
24-
the `crateid` attributes that were declared on the external crate when it was
25-
compiled. If no `crateid` is provided, a default `name` attribute is assumed,
23+
compiler's library path and matching the optional `crate_name` provided against
24+
the [`crate_name` attributes] that were declared on the external crate when it was
25+
compiled. If no `crate_name` is provided, a default `name` attribute is assumed,
2626
equal to the [identifier] given in the `extern crate` declaration.
2727

2828
The `self` crate may be imported which creates a binding to the current crate.
@@ -78,6 +78,7 @@ crate to access only its macros.
7878
[`macro_use` attribute]: ../macros-by-example.md#the-macro_use-attribute
7979
[extern prelude]: ../names/preludes.md#extern-prelude
8080
[`macro_use` prelude]: ../names/preludes.md#macro_use-prelude
81+
[`crate_name` attributes]: ../crates-and-source-files.md#the-crate_name-attribute
8182

8283
<script>
8384
(function() {

0 commit comments

Comments
 (0)