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 {
21952195 }
21962196}
21972197
2198- pub fn encode_metadata ( tcx : TyCtxt < ' _ > , path : impl AsRef < Path > + Send ) {
2198+ pub fn encode_metadata ( tcx : TyCtxt < ' _ > , path : & Path ) {
21992199 let _prof_timer = tcx. prof . verbose_generic_activity ( "generate_crate_metadata" ) ;
22002200
22012201 // 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) {
22162216 ) ;
22172217}
22182218
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)
22212221 . unwrap_or_else ( |err| tcx. sess . fatal ( & format ! ( "failed to create file encoder: {}" , err) ) ) ;
22222222 encoder. emit_raw_bytes ( METADATA_HEADER ) ;
22232223
You can’t perform that action at this time.
0 commit comments