Add #[no_debug] to trans_fn_attrs() query.
This commit is contained in:
parent
8728c7a726
commit
d5b48a4b1b
|
@ -2277,6 +2277,7 @@ bitflags! {
|
|||
const NAKED = 0b0001_0000;
|
||||
const NO_MANGLE = 0b0010_0000;
|
||||
const RUSTC_STD_INTERNAL_SYMBOL = 0b0100_0000;
|
||||
const NO_DEBUG = 0b1000_0000;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1825,6 +1825,8 @@ fn trans_fn_attrs<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, id: DefId) -> TransFnAt
|
|||
trans_fn_attrs.flags |= TransFnAttrFlags::NO_MANGLE;
|
||||
} else if attr.check_name("rustc_std_internal_symbol") {
|
||||
trans_fn_attrs.flags |= TransFnAttrFlags::RUSTC_STD_INTERNAL_SYMBOL;
|
||||
} else if attr.check_name("no_debug") {
|
||||
trans_fn_attrs.flags |= TransFnAttrFlags::NO_DEBUG;
|
||||
} else if attr.check_name("inline") {
|
||||
trans_fn_attrs.inline = attrs.iter().fold(InlineAttr::None, |ia, attr| {
|
||||
if attr.path != "inline" {
|
||||
|
|
Loading…
Reference in New Issue