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
This commit is contained in:
commit
b1ff235490
@ -1347,7 +1347,6 @@ pub fn sign_aware_zero_pad(&self) -> bool {
|
||||
/// println!("{:?}", Foo { bar: 10, baz: "Hello World".to_string() });
|
||||
/// ```
|
||||
#[stable(feature = "debug_builders", since = "1.2.0")]
|
||||
#[inline]
|
||||
pub fn debug_struct<'b>(&'b mut self, name: &str) -> DebugStruct<'b, 'a> {
|
||||
builders::debug_struct_new(self, name)
|
||||
}
|
||||
@ -1375,7 +1374,6 @@ pub fn debug_struct<'b>(&'b mut self, name: &str) -> DebugStruct<'b, 'a> {
|
||||
/// println!("{:?}", Foo(10, "Hello World".to_string()));
|
||||
/// ```
|
||||
#[stable(feature = "debug_builders", since = "1.2.0")]
|
||||
#[inline]
|
||||
pub fn debug_tuple<'b>(&'b mut self, name: &str) -> DebugTuple<'b, 'a> {
|
||||
builders::debug_tuple_new(self, name)
|
||||
}
|
||||
@ -1400,7 +1398,6 @@ pub fn debug_tuple<'b>(&'b mut self, name: &str) -> DebugTuple<'b, 'a> {
|
||||
/// println!("{:?}", Foo(vec![10, 11]));
|
||||
/// ```
|
||||
#[stable(feature = "debug_builders", since = "1.2.0")]
|
||||
#[inline]
|
||||
pub fn debug_list<'b>(&'b mut self) -> DebugList<'b, 'a> {
|
||||
builders::debug_list_new(self)
|
||||
}
|
||||
@ -1425,7 +1422,6 @@ pub fn debug_list<'b>(&'b mut self) -> DebugList<'b, 'a> {
|
||||
/// println!("{:?}", Foo(vec![10, 11]));
|
||||
/// ```
|
||||
#[stable(feature = "debug_builders", since = "1.2.0")]
|
||||
#[inline]
|
||||
pub fn debug_set<'b>(&'b mut self) -> DebugSet<'b, 'a> {
|
||||
builders::debug_set_new(self)
|
||||
}
|
||||
@ -1450,7 +1446,6 @@ pub fn debug_set<'b>(&'b mut self) -> DebugSet<'b, 'a> {
|
||||
/// println!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)]));
|
||||
/// ```
|
||||
#[stable(feature = "debug_builders", since = "1.2.0")]
|
||||
#[inline]
|
||||
pub fn debug_map<'b>(&'b mut self) -> DebugMap<'b, 'a> {
|
||||
builders::debug_map_new(self)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user