Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ee8e739

Browse files
committedNov 19, 2023
Pass TyCtxt by value
1 parent fa696af commit ee8e739

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_gcc/src

1 file changed

+1
-1
lines changed
 

‎compiler/rustc_codegen_gcc/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ impl CodegenBackend for GccCodegenBackend {
246246
}
247247
}
248248

249-
fn new_context<'gcc, 'tcx>(tcx: &TyCtxt<'tcx>) -> Context<'gcc> {
249+
fn new_context<'gcc, 'tcx>(tcx: TyCtxt<'tcx>) -> Context<'gcc> {
250250
let context = Context::default();
251251
if tcx.sess.target.arch == "x86" || tcx.sess.target.arch == "x86_64" {
252252
context.add_command_line_option("-masm=intel");

0 commit comments

Comments
 (0)
Failed to load comments.