Skip to content

Commit ced443a

Browse files
ZuseZ4oli-obk
andauthored
Update compiler/rustc_codegen_llvm/src/context.rs
Co-authored-by: Oli Scherer <[email protected]>
1 parent e07c5fc commit ced443a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: compiler/rustc_codegen_llvm/src/context.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ use crate::llvm::{Metadata, MetadataType};
3838
use crate::type_::Type;
3939
use crate::value::Value;
4040
use crate::{attributes, coverageinfo, debuginfo, llvm, llvm_util};
41-
// A tcx (and related cache datastructures) can't be move between threads.
42-
// However, there are various cx related functions which we want to be available to the builder and
43-
// other compiler pieces. Here we define a small subset which has enough information and can be
44-
// moved around more freely.
41+
42+
/// `TyCtxt` (and related cache datastructures) can't be move between threads.
43+
/// However, there are various cx related functions which we want to be available to the builder and
44+
/// other compiler pieces. Here we define a small subset which has enough information and can be
45+
/// moved around more freely.
4546
pub(crate) struct SimpleCx<'ll> {
4647
pub llmod: &'ll llvm::Module,
4748
pub llcx: &'ll llvm::Context,

0 commit comments

Comments
 (0)