File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
compiler/rustc_serialize/src Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ macro_rules! impl_debug_strict_add {
20
20
( $( $ty: ty ) * ) => {
21
21
$(
22
22
impl DebugStrictAdd for $ty {
23
+ #[ inline]
23
24
fn debug_strict_add( self , other: Self ) -> Self {
24
25
if cfg!( debug_assertions) {
25
26
self + other
@@ -42,6 +43,7 @@ macro_rules! impl_debug_strict_sub {
42
43
( $( $ty: ty ) * ) => {
43
44
$(
44
45
impl DebugStrictSub for $ty {
46
+ #[ inline]
45
47
fn debug_strict_sub( self , other: Self ) -> Self {
46
48
if cfg!( debug_assertions) {
47
49
self - other
Original file line number Diff line number Diff line change @@ -89,10 +89,12 @@ impl FileEncoder {
89
89
self . buffered = 0 ;
90
90
}
91
91
92
+ #[ inline]
92
93
pub fn file ( & self ) -> & File {
93
94
& self . file
94
95
}
95
96
97
+ #[ inline]
96
98
pub fn path ( & self ) -> & Path {
97
99
& self . path
98
100
}
You can’t perform that action at this time.
0 commit comments