Skip to content

Commit b1ff235

Browse files
committed
Auto merge of #43856 - sfackler:no-inline-debug, r=alexcrichton
Don't inline debug methods The inner methods aren't inlined, so this puts more pressure on LLVM for literally no benefit. Closes #43843
2 parents bae4faf + 81f481d commit b1ff235

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/libcore/fmt/mod.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,6 @@ impl<'a> Formatter<'a> {
13471347
/// println!("{:?}", Foo { bar: 10, baz: "Hello World".to_string() });
13481348
/// ```
13491349
#[stable(feature = "debug_builders", since = "1.2.0")]
1350-
#[inline]
13511350
pub fn debug_struct<'b>(&'b mut self, name: &str) -> DebugStruct<'b, 'a> {
13521351
builders::debug_struct_new(self, name)
13531352
}
@@ -1375,7 +1374,6 @@ impl<'a> Formatter<'a> {
13751374
/// println!("{:?}", Foo(10, "Hello World".to_string()));
13761375
/// ```
13771376
#[stable(feature = "debug_builders", since = "1.2.0")]
1378-
#[inline]
13791377
pub fn debug_tuple<'b>(&'b mut self, name: &str) -> DebugTuple<'b, 'a> {
13801378
builders::debug_tuple_new(self, name)
13811379
}
@@ -1400,7 +1398,6 @@ impl<'a> Formatter<'a> {
14001398
/// println!("{:?}", Foo(vec![10, 11]));
14011399
/// ```
14021400
#[stable(feature = "debug_builders", since = "1.2.0")]
1403-
#[inline]
14041401
pub fn debug_list<'b>(&'b mut self) -> DebugList<'b, 'a> {
14051402
builders::debug_list_new(self)
14061403
}
@@ -1425,7 +1422,6 @@ impl<'a> Formatter<'a> {
14251422
/// println!("{:?}", Foo(vec![10, 11]));
14261423
/// ```
14271424
#[stable(feature = "debug_builders", since = "1.2.0")]
1428-
#[inline]
14291425
pub fn debug_set<'b>(&'b mut self) -> DebugSet<'b, 'a> {
14301426
builders::debug_set_new(self)
14311427
}
@@ -1450,7 +1446,6 @@ impl<'a> Formatter<'a> {
14501446
/// println!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)]));
14511447
/// ```
14521448
#[stable(feature = "debug_builders", since = "1.2.0")]
1453-
#[inline]
14541449
pub fn debug_map<'b>(&'b mut self) -> DebugMap<'b, 'a> {
14551450
builders::debug_map_new(self)
14561451
}

0 commit comments

Comments
 (0)