File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ pub(super) fn manifests<P: AsRef<Path>>(
6767 let contents = fs:: read_to_string ( & absolute_path) ?;
6868
6969 let mut parsed = cargo_manifest:: Manifest :: from_str ( & contents) ?;
70+ // The completions are relevant for our analysis, but we shouldn't
71+ // include them in the final output.
72+ let before_completions = toml:: Value :: try_from ( & parsed) ?;
73+
7074 // Required to detect bin/libs when the related section is omitted from the manifest
7175 parsed. complete_from_path ( & absolute_path) ?;
7276
@@ -103,7 +107,7 @@ pub(super) fn manifests<P: AsRef<Path>>(
103107
104108 manifests. push ( ParsedManifest {
105109 relative_path,
106- contents : intermediate ,
110+ contents : before_completions ,
107111 targets : targets. into_iter ( ) . collect ( ) ,
108112 } ) ;
109113 }
You can’t perform that action at this time.
0 commit comments