Skip to content

Commit 7d72269

Browse files
committed
Misc
1 parent 17ef249 commit 7d72269

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc_codegen_llvm/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
14711471
}
14721472

14731473
impl StaticBuilderMethods<'tcx> for Builder<'a, 'll, 'tcx> {
1474-
fn get_static(&self, def_id: DefId) -> &'ll Value {
1474+
fn get_static(&mut self, def_id: DefId) -> &'ll Value {
14751475
// Forward to the `get_static` method of `CodegenCx`
14761476
self.cx().get_static(def_id)
14771477
}

src/librustc_codegen_ssa/mir/place.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl<'a, 'tcx: 'a, V: CodegenObject> PlaceRef<'tcx, V> {
8080
Self::alloca(bx, ptr_layout, name)
8181
}
8282

83-
pub fn len<Cx: CodegenMethods<'tcx, Value = V>>(
83+
pub fn len<Cx: ConstMethods<'tcx, Value = V>>(
8484
&self,
8585
cx: &Cx
8686
) -> V {

src/librustc_codegen_ssa/traits/statics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ pub trait StaticMethods: BackendTypes {
88
}
99

1010
pub trait StaticBuilderMethods<'tcx>: BackendTypes {
11-
fn get_static(&self, def_id: DefId) -> Self::Value;
11+
fn get_static(&mut self, def_id: DefId) -> Self::Value;
1212
}

0 commit comments

Comments
 (0)