File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2
2
// submodule into the standard library. We try to set this crate up similarly
3
3
// to the standard library itself to minimize the likelihood of issues when
4
4
// updating the `backtrace` crate.
5
-
5
+ #! [ feature ( optimize_attribute ) ]
6
6
#![ no_std]
7
7
8
8
extern crate alloc;
Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ struct Context<'a> {
114
114
}
115
115
116
116
impl < ' data > Context < ' data > {
117
+ // #[feature(optimize_attr)] is enabled when we're built inside libstd
118
+ #[ cfg_attr( backtrace_in_libstd, optimize( size) ) ]
117
119
fn new (
118
120
stash : & ' data Stash ,
119
121
object : Object < ' data > ,
@@ -355,6 +357,8 @@ impl Cache {
355
357
}
356
358
357
359
// unsafe because this is required to be externally synchronized
360
+ // #[feature(optimize_attr)] is enabled when we're built inside libstd
361
+ #[ cfg_attr( backtrace_in_libstd, optimize( size) ) ]
358
362
unsafe fn with_global ( f : impl FnOnce ( & mut Self ) ) {
359
363
// A very small, very simple LRU cache for debug info mappings.
360
364
//
You can’t perform that action at this time.
0 commit comments