add Send to the argument type of encode_metadata

This commit is contained in:
Yoshiki Matsuda
2022-04-29 16:55:54 +09:00
parent 1be58056e1
commit aa8e06458e
+1 -1
View File
@@ -2189,7 +2189,7 @@ fn decode(d: &mut D) -> Self {
}
}
pub fn encode_metadata(tcx: TyCtxt<'_>, path: impl AsRef<Path>) {
pub fn encode_metadata(tcx: TyCtxt<'_>, path: impl AsRef<Path> + Send) {
let _prof_timer = tcx.prof.verbose_generic_activity("generate_crate_metadata");
// Since encoding metadata is not in a query, and nothing is cached,