Skip to content

Commit be1e481

Browse files
RalfJungoliver
and
oliver
committed
add backtics
Co-authored-by: oliver <[email protected]>
1 parent 61ed20d commit be1e481

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_middle/src/mir/interpret/allocation.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ impl<Prov: Provenance, Bytes: AllocBytes> Allocation<Prov, (), Bytes> {
337337
}
338338

339339
impl<Bytes: AllocBytes> Allocation<CtfeProvenance, (), Bytes> {
340-
/// Adjust allocation from the ones in tcx to a custom Machine instance
341-
/// with a different Provenance and Extra type.
340+
/// Adjust allocation from the ones in `tcx` to a custom Machine instance
341+
/// with a different `Provenance` and `Extra` type.
342342
pub fn adjust_from_tcx<Prov: Provenance, Extra, Err>(
343343
self,
344344
cx: &impl HasDataLayout,

compiler/rustc_middle/src/mir/interpret/allocation/provenance_map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
1313
#[derive(Clone, PartialEq, Eq, Hash, Debug)]
1414
#[derive(HashStable)]
1515
pub struct ProvenanceMap<Prov = CtfeProvenance> {
16-
/// Provenance in this map applies from the given offset for an entire pointer-size worth of
16+
/// `Provenance` in this map applies from the given offset for an entire pointer-size worth of
1717
/// bytes. Two entries in this map are always at least a pointer size apart.
1818
ptrs: SortedMap<Size, Prov>,
1919
/// Provenance in this map only applies to the given single byte.

0 commit comments

Comments
 (0)