-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Rust: expand attribute macros on AssocItem #19823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
705f5dc
to
e69d76c
Compare
@@ -0,0 +1,3 @@ | |||
qltest_cargo_check: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the default, inherited from the toplevel options.yml
, so no need to specify it
|
||
#[ctor::ctor] | ||
fn foo_ctor() {} | ||
|
||
#[cfg(any(target_os = "linux", not(target_os = "linux")))] | ||
fn bar() {} | ||
|
||
#[cfg(all(target_os = "linux", not(target_os = "linux")))] | ||
fn baz() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is really needed or relevant
- the
ctor::ctor
case is covered by our custom macro - the
cfg
cases aren't even macros
So I'd revert this and remove the options.yml
file. A test without external dependencies is also a quicker test.
} | ||
}; | ||
($($_:tt)*) => {}; | ||
} | ||
|
||
impl From<crate::trap::Label<generated::AssocItem>> for crate::trap::Label<generated::Item> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please let's put in a TODO that this is temporary while we look for a solution going through the generated schema
Co-authored-by: Paolo Tranquilli <redsun82@github.com>
e5ca1eb
to
2acce96
Compare
No description provided.