Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cb4751d

Browse files
committedMar 11, 2025
Implement #[define_opaque] attribute for functions.
1 parent 2c6a12e commit cb4751d

File tree

653 files changed

+2798
-2467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

653 files changed

+2798
-2467
lines changed
 

‎Cargo.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4529,6 +4529,7 @@ version = "0.0.0"
45294529
dependencies = [
45304530
"itertools",
45314531
"rustc_abi",
4532+
"rustc_attr_parsing",
45324533
"rustc_data_structures",
45334534
"rustc_errors",
45344535
"rustc_fluent_macro",

‎compiler/rustc_ast/src/ast.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3466,6 +3466,7 @@ pub struct Fn {
34663466
pub generics: Generics,
34673467
pub sig: FnSig,
34683468
pub contract: Option<P<FnContract>>,
3469+
pub define_opaque: Option<ThinVec<(NodeId, Path)>>,
34693470
pub body: Option<P<Block>>,
34703471
}
34713472

@@ -3763,7 +3764,7 @@ mod size_asserts {
37633764
static_assert_size!(Block, 32);
37643765
static_assert_size!(Expr, 72);
37653766
static_assert_size!(ExprKind, 40);
3766-
static_assert_size!(Fn, 168);
3767+
static_assert_size!(Fn, 176);
37673768
static_assert_size!(ForeignItem, 88);
37683769
static_assert_size!(ForeignItemKind, 16);
37693770
static_assert_size!(GenericArg, 24);

0 commit comments

Comments
 (0)