mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03:00
add Send to the argument type of encode_metadata
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user