diff options
| author | Commeownist <commeownist@yandex.ru> | 2021-09-18 00:19:25 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-17 17:19:25 -0400 |
| commit | 48d60ab7c505c6c1ebb042eacaafd8dc9f7a9267 (patch) | |
| tree | c9fcac750edefb1fda6e2f5721cf1a4ee837e0e5 /src/allocator.rs | |
| parent | 8ec7976ced61c31dbcaeda3f52d7ecc197764f80 (diff) | |
Update to nightly-2021-09-11 (#79)
* Implement `black_box` as intrinsic Responsibility of implementing the black box is now lies on backend * Remove some TODOs * Update to nightly-2021-09-17 * CI: don't fail on warnings
Diffstat (limited to 'src/allocator.rs')
| -rw-r--r-- | src/allocator.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/allocator.rs b/src/allocator.rs index 4e622efcaa0..6378a31202c 100644 --- a/src/allocator.rs +++ b/src/allocator.rs @@ -6,7 +6,7 @@ use rustc_span::symbol::sym; use crate::GccContext; -pub(crate) unsafe fn codegen(tcx: TyCtxt<'_>, mods: &mut GccContext, kind: AllocatorKind, has_alloc_error_handler: bool) { +pub(crate) unsafe fn codegen(tcx: TyCtxt<'_>, mods: &mut GccContext, _module_name: &str, kind: AllocatorKind, has_alloc_error_handler: bool) { let context = &mods.context; let usize = match tcx.sess.target.pointer_width { @@ -77,6 +77,9 @@ pub(crate) unsafe fn codegen(tcx: TyCtxt<'_>, mods: &mut GccContext, kind: Alloc else { block.end_with_void_return(None); } + + // TODO(@Commeownist): Check if we need to emit some extra debugging info in certain circumstances + // as described in https://github.com/rust-lang/rust/commit/77a96ed5646f7c3ee8897693decc4626fe380643 } let types = [usize, usize]; |
