Skip to content

Commit 0ee9d3d

Browse files
committed
Update a path to libstd source in our comments
1 parent f84a976 commit 0ee9d3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shims/foreign_items.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
4242
/// Returns the minimum alignment for the target architecture for allocations of the given size.
4343
fn min_align(&self, size: u64, kind: MiriMemoryKind) -> Align {
4444
let this = self.eval_context_ref();
45-
// List taken from `libstd/sys_common/alloc.rs`.
45+
// List taken from `library/std/src/sys/common/alloc.rs`.
46+
// This list should be kept in sync with the one from libstd.
4647
let min_align = match this.tcx.sess.target.arch.as_ref() {
4748
"x86" | "arm" | "mips" | "powerpc" | "powerpc64" | "asmjs" | "wasm32" => 8,
4849
"x86_64" | "aarch64" | "mips64" | "s390x" | "sparc64" => 16,

0 commit comments

Comments
 (0)