@@ -610,7 +610,7 @@ the behavior of the compiler.
610610
611611~~~~
612612// Package ID
613- #[ pkgid = "projx#2.5" ];
613+ #[ crate_id = "projx#2.5" ];
614614
615615// Additional metadata attributes
616616#[ desc = "Project X" ];
@@ -776,9 +776,9 @@ as the `ident` provided in the `extern_mod_decl`.
776776The external crate is resolved to a specific ` soname ` at compile time, and a
777777runtime linkage requirement to that ` soname ` is passed to the linker for
778778loading at runtime. The ` soname ` is resolved at compile time by scanning the
779- compiler's library path and matching the optional ` pkgid ` provided as a string literal
780- against the ` pkgid ` attributes that were declared on the external crate when
781- it was compiled. If no ` pkgid ` is provided, a default ` name ` attribute is
779+ compiler's library path and matching the optional ` crateid ` provided as a string literal
780+ against the ` crateid ` attributes that were declared on the external crate when
781+ it was compiled. If no ` crateid ` is provided, a default ` name ` attribute is
782782assumed, equal to the ` ident ` given in the ` extern_mod_decl ` .
783783
784784Four examples of ` extern mod ` declarations:
@@ -1729,7 +1729,7 @@ names are effectively reserved. Some significant attributes include:
17291729* The ` cfg ` attribute, for conditional-compilation by build-configuration.
17301730* The ` lang ` attribute, for custom definitions of traits and functions that are known to the Rust compiler (see [ Language items] ( #language-items ) ).
17311731* The ` link ` attribute, for describing linkage metadata for a extern blocks.
1732- * The ` pkgid ` attribute, for describing the package ID of a crate.
1732+ * The ` crate_id ` attribute, for describing the package ID of a crate.
17331733* The ` test ` attribute, for marking functions as unit tests.
17341734* The ` allow ` , ` warn ` , ` forbid ` , and ` deny ` attributes, for
17351735 controlling lint checks (see [ Lint check attributes] ( #lint-check-attributes ) ).
@@ -3792,7 +3792,7 @@ specified then log level 4 is assumed. Debug messages can be omitted
37923792by passing ` --cfg ndebug ` to ` rustc ` .
37933793
37943794As an example, to see all the logs generated by the compiler, you would set
3795- ` RUST_LOG ` to ` rustc ` , which is the crate name (as specified in its ` pkgid `
3795+ ` RUST_LOG ` to ` rustc ` , which is the crate name (as specified in its ` crate_id `
37963796[ attribute] ( #attributes ) ). To narrow down the logs to just crate resolution,
37973797you would set it to ` rustc::metadata::creader ` . To see just error logging
37983798use ` rustc=0 ` .
0 commit comments