Skip to content

Commit d554f4c

Browse files
Add #[no_debug] to trans_fn_attrs() query.
1 parent 252a459 commit d554f4c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/librustc/hir/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2280,6 +2280,7 @@ bitflags! {
22802280
const NAKED = 0b0001_0000;
22812281
const NO_MANGLE = 0b0010_0000;
22822282
const RUSTC_STD_INTERNAL_SYMBOL = 0b0100_0000;
2283+
const NO_DEBUG = 0b1000_0000;
22832284
}
22842285
}
22852286

src/librustc_typeck/collect.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1785,6 +1785,8 @@ fn trans_fn_attrs<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, id: DefId) -> TransFnAt
17851785
trans_fn_attrs.flags |= TransFnAttrFlags::NO_MANGLE;
17861786
} else if attr.check_name("rustc_std_internal_symbol") {
17871787
trans_fn_attrs.flags |= TransFnAttrFlags::RUSTC_STD_INTERNAL_SYMBOL;
1788+
} else if attr.check_name("no_debug") {
1789+
trans_fn_attrs.flags |= TransFnAttrFlags::NO_DEBUG;
17881790
} else if attr.check_name("inline") {
17891791
trans_fn_attrs.inline = attrs.iter().fold(InlineAttr::None, |ia, attr| {
17901792
if attr.path != "inline" {

0 commit comments

Comments
 (0)