make it more clear which functions create fresh AllocId
This commit is contained in:
parent
0f8908da27
commit
430c386821
18 changed files with 45 additions and 45 deletions
|
@ -950,7 +950,7 @@ impl<'tcx> Cx<'tcx> {
|
|||
let kind = if self.tcx.is_thread_local_static(id) {
|
||||
ExprKind::ThreadLocalRef(id)
|
||||
} else {
|
||||
let alloc_id = self.tcx.create_static_alloc(id);
|
||||
let alloc_id = self.tcx.reserve_and_set_static_alloc(id);
|
||||
ExprKind::StaticRef { alloc_id, ty, def_id: id }
|
||||
};
|
||||
ExprKind::Deref {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue