File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_metadata/src/rmeta Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2195,7 +2195,7 @@ impl<D: Decoder> Decodable<D> for EncodedMetadata {
2195
2195
}
2196
2196
}
2197
2197
2198
- pub fn encode_metadata ( tcx : TyCtxt < ' _ > , path : impl AsRef < Path > + Send ) {
2198
+ pub fn encode_metadata ( tcx : TyCtxt < ' _ > , path : & Path ) {
2199
2199
let _prof_timer = tcx. prof . verbose_generic_activity ( "generate_crate_metadata" ) ;
2200
2200
2201
2201
// Since encoding metadata is not in a query, and nothing is cached,
@@ -2216,8 +2216,8 @@ pub fn encode_metadata(tcx: TyCtxt<'_>, path: impl AsRef<Path> + Send) {
2216
2216
) ;
2217
2217
}
2218
2218
2219
- fn encode_metadata_impl ( tcx : TyCtxt < ' _ > , path : impl AsRef < Path > ) {
2220
- let mut encoder = opaque:: FileEncoder :: new ( path. as_ref ( ) )
2219
+ fn encode_metadata_impl ( tcx : TyCtxt < ' _ > , path : & Path ) {
2220
+ let mut encoder = opaque:: FileEncoder :: new ( path)
2221
2221
. unwrap_or_else ( |err| tcx. sess . fatal ( & format ! ( "failed to create file encoder: {}" , err) ) ) ;
2222
2222
encoder. emit_raw_bytes ( METADATA_HEADER ) ;
2223
2223
You can’t perform that action at this time.
0 commit comments