Apply suggestions from code review

Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
This commit is contained in:
Aleksey Kladov 2020-07-21 17:09:56 +02:00 committed by GitHub
parent ca2a4ccf05
commit eb613c74da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -290,7 +290,7 @@ interface Crate {
/// By default, inferred from the `root_module` (members are the crates which reside /// By default, inferred from the `root_module` (members are the crates which reside
/// inside the directory opened in the editor). /// inside the directory opened in the editor).
/// ///
/// Set this too `false` for things like standard library and 3rd party crates to /// Set this to `false` for things like standard library and 3rd party crates to
/// enable performance optimizations (rust-analyzer assumes that non-member crates /// enable performance optimizations (rust-analyzer assumes that non-member crates
/// don't change). /// don't change).
is_workspace_member?: boolean; is_workspace_member?: boolean;
@ -309,11 +309,11 @@ interface Crate {
}, },
/// The set of cfgs activated for a given crate, like `["unix", "feature=foo", "feature=bar"]`. /// The set of cfgs activated for a given crate, like `["unix", "feature=foo", "feature=bar"]`.
cfg: string[]; cfg: string[];
/// Target tripple for this Crate. /// Target triple for this Crate.
/// ///
/// It is use when running `rustc --print cfg` to get target-specific cfgs. /// Used when running `rustc --print cfg` to get target-specific cfgs.
target?: string; target?: string;
/// Environment variables, used for `env!` macro /// Environment variables, used for the `env!` macro
env: : { [key: string]: string; }, env: : { [key: string]: string; },
/// For proc-macro crates, path to compiles proc-macro (.so file). /// For proc-macro crates, path to compiles proc-macro (.so file).