Skip to content

Commit

Permalink
Make const_evaluatable_unchecked lint example not depend on the archi…
Browse files Browse the repository at this point in the history
…tecture pointer size.
  • Loading branch information
ehuss committed Sep 13, 2020
1 parent c049735 commit 49a61f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_session/src/lint/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2525,7 +2525,7 @@ declare_lint! {
/// ```rust
/// const fn foo<T>() -> usize {
/// if std::mem::size_of::<*mut T>() < 8 { // size of *mut T does not depend on T
/// std::mem::size_of::<T>()
/// 4
/// } else {
/// 8
/// }
Expand Down

0 comments on commit 49a61f5

Please sign in to comment.