]> git.lizzy.rs Git - rust.git/commitdiff
Merge #6124
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Tue, 6 Oct 2020 11:51:15 +0000 (11:51 +0000)
committerGitHub <noreply@github.com>
Tue, 6 Oct 2020 11:51:15 +0000 (11:51 +0000)
6124: Better normalized crate name usage r=jonas-schievink a=SomeoneToIgnore

Closes https://github.com/rust-analyzer/rust-analyzer/issues/5343
Closes https://github.com/rust-analyzer/rust-analyzer/issues/5932

Uses normalized name for code snippets (to be able to test the fix), hover messages and documentation rewrite links (are there any tests for those?).
Also renamed the field to better resemble the semantics.

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
1  2 
crates/hir/src/code_model.rs

index a445a97b30bc71e08077058c260966e9d5177c2e,a19b0fad735fb12b266f17f3db272e6eae91a111..c75d46bffbc427f34ee701072b3b5e370de4c966
@@@ -2,9 -2,8 +2,9 @@@
  use std::{iter, sync::Arc};
  
  use arrayvec::ArrayVec;
- use base_db::{CrateId, Edition, FileId};
+ use base_db::{CrateId, CrateName, Edition, FileId};
  use either::Either;
 +use hir_def::find_path::PrefixKind;
  use hir_def::{
      adt::ReprKind,
      adt::StructKind,