Skip to content

Commit d5b48a4

Browse files
Add #[no_debug] to trans_fn_attrs() query.
1 parent 8728c7a commit d5b48a4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/librustc/hir/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,6 +2277,7 @@ bitflags! {
22772277
const NAKED = 0b0001_0000;
22782278
const NO_MANGLE = 0b0010_0000;
22792279
const RUSTC_STD_INTERNAL_SYMBOL = 0b0100_0000;
2280+
const NO_DEBUG = 0b1000_0000;
22802281
}
22812282
}
22822283

src/librustc_typeck/collect.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,6 +1825,8 @@ fn trans_fn_attrs<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, id: DefId) -> TransFnAt
18251825
trans_fn_attrs.flags |= TransFnAttrFlags::NO_MANGLE;
18261826
} else if attr.check_name("rustc_std_internal_symbol") {
18271827
trans_fn_attrs.flags |= TransFnAttrFlags::RUSTC_STD_INTERNAL_SYMBOL;
1828+
} else if attr.check_name("no_debug") {
1829+
trans_fn_attrs.flags |= TransFnAttrFlags::NO_DEBUG;
18281830
} else if attr.check_name("inline") {
18291831
trans_fn_attrs.inline = attrs.iter().fold(InlineAttr::None, |ia, attr| {
18301832
if attr.path != "inline" {

0 commit comments

Comments
 (0)