Skip to content

Commit eebcff1

Browse files
committed
auto merge of #8404 : stepancheg/rust/zero-unit-inline, r=alexcrichton
Follow-up to #8155
2 parents bf80976 + b9945f8 commit eebcff1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/nil.rs

+2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ impl TotalEq for () {
4949

5050
#[cfg(not(test))]
5151
impl Zero for () {
52+
#[inline]
5253
fn zero() -> () { () }
54+
#[inline]
5355
fn is_zero(&self) -> bool { true }
5456
}
5557

0 commit comments

Comments
 (0)