Skip to content

Commit 49a61f5

Browse files
committed
Make const_evaluatable_unchecked lint example not depend on the architecture pointer size.
1 parent c049735 commit 49a61f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_session/src/lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2525,7 +2525,7 @@ declare_lint! {
25252525
/// ```rust
25262526
/// const fn foo<T>() -> usize {
25272527
/// if std::mem::size_of::<*mut T>() < 8 { // size of *mut T does not depend on T
2528-
/// std::mem::size_of::<T>()
2528+
/// 4
25292529
/// } else {
25302530
/// 8
25312531
/// }

0 commit comments

Comments
 (0)