@@ -67,7 +67,7 @@ pub struct CrateGraph {
6767#[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
6868pub struct CrateId ( pub u32 ) ;
6969
70- #[ derive( Debug , Clone , PartialEq , Eq ) ]
70+ #[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
7171pub struct CrateName ( SmolStr ) ;
7272
7373impl CrateName {
@@ -124,7 +124,7 @@ pub struct CrateData {
124124 /// The name to display to the end user.
125125 /// This actual crate name can be different in a particular dependent crate
126126 /// or may even be missing for some cases, such as a dummy crate for the code snippet.
127- pub display_name : Option < CrateName > ,
127+ pub display_name : Option < String > ,
128128 pub cfg_options : CfgOptions ,
129129 pub env : Env ,
130130 pub dependencies : Vec < Dependency > ,
@@ -153,7 +153,7 @@ impl CrateGraph {
153153 & mut self ,
154154 file_id : FileId ,
155155 edition : Edition ,
156- display_name : Option < CrateName > ,
156+ display_name : Option < String > ,
157157 cfg_options : CfgOptions ,
158158 env : Env ,
159159 proc_macro : Vec < ( SmolStr , Arc < dyn ra_tt:: TokenExpander > ) > ,
0 commit comments