@@ -658,7 +658,7 @@ pub(crate) struct ArtifactsCacheInner<
658658 pub cached_builds : Builds < C :: Language > ,
659659
660660 /// Relationship between all the files.
661- pub edges : GraphEdges < C :: ParsedSources > ,
661+ pub edges : GraphEdges < C :: Parser > ,
662662
663663 /// The project.
664664 pub project : & ' a Project < C , T > ,
@@ -891,8 +891,7 @@ impl<T: ArtifactOutput<CompilerContract = C::CompilerContract>, C: Compiler>
891891
892892 // Build a temporary graph for walking imports. We need this because `self.edges`
893893 // only contains graph data for in-scope sources but we are operating on cache entries.
894- if let Ok ( graph) = Graph :: < C :: ParsedSources > :: resolve_sources ( & self . project . paths , sources)
895- {
894+ if let Ok ( graph) = Graph :: < C :: Parser > :: resolve_sources ( & self . project . paths , sources) {
896895 let ( sources, edges) = graph. into_sources ( ) ;
897896
898897 // Calculate content hashes for later comparison.
@@ -1022,7 +1021,7 @@ pub(crate) enum ArtifactsCache<
10221021 C : Compiler ,
10231022> {
10241023 /// Cache nothing on disk
1025- Ephemeral ( GraphEdges < C :: ParsedSources > , & ' a Project < C , T > ) ,
1024+ Ephemeral ( GraphEdges < C :: Parser > , & ' a Project < C , T > ) ,
10261025 /// Handles the actual cached artifacts, detects artifacts that can be reused
10271026 Cached ( ArtifactsCacheInner < ' a , T , C > ) ,
10281027}
@@ -1034,7 +1033,7 @@ impl<'a, T: ArtifactOutput<CompilerContract = C::CompilerContract>, C: Compiler>
10341033 #[ instrument( name = "ArtifactsCache::new" , skip( project, edges) ) ]
10351034 pub fn new (
10361035 project : & ' a Project < C , T > ,
1037- edges : GraphEdges < C :: ParsedSources > ,
1036+ edges : GraphEdges < C :: Parser > ,
10381037 preprocessed : bool ,
10391038 ) -> Result < Self > {
10401039 /// Returns the [CompilerCache] to use
@@ -1119,7 +1118,7 @@ impl<'a, T: ArtifactOutput<CompilerContract = C::CompilerContract>, C: Compiler>
11191118 }
11201119
11211120 /// Returns the graph data for this project
1122- pub fn graph ( & self ) -> & GraphEdges < C :: ParsedSources > {
1121+ pub fn graph ( & self ) -> & GraphEdges < C :: Parser > {
11231122 match self {
11241123 ArtifactsCache :: Ephemeral ( graph, _) => graph,
11251124 ArtifactsCache :: Cached ( inner) => & inner. edges ,
@@ -1199,7 +1198,7 @@ impl<'a, T: ArtifactOutput<CompilerContract = C::CompilerContract>, C: Compiler>
11991198 written_artifacts : & Artifacts < A > ,
12001199 written_build_infos : & Vec < RawBuildInfo < C :: Language > > ,
12011200 write_to_disk : bool ,
1202- ) -> Result < ( Artifacts < A > , Builds < C :: Language > , GraphEdges < C :: ParsedSources > ) >
1201+ ) -> Result < ( Artifacts < A > , Builds < C :: Language > , GraphEdges < C :: Parser > ) >
12031202 where
12041203 T : ArtifactOutput < Artifact = A > ,
12051204 {
0 commit comments