-
Notifications
You must be signed in to change notification settings - Fork 281
refactor: avoid reordering attributes when restoring them #1433
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: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #![allow( | ||
| dead_code, | ||
| non_camel_case_types, | ||
| non_snake_case, | ||
| non_upper_case_globals, | ||
| unused_assignments, | ||
| unused_mut | ||
| )] | ||
|
|
||
| #[derive(Copy, Clone)] | ||
| #[repr(C)] | ||
| pub struct S0 {} | ||
|
|
||
| #[derive(Clone)] | ||
| #[repr(u8)] | ||
| #[derive(Copy)] | ||
| #[derive(Debug)] | ||
| pub struct S1 {} | ||
|
|
||
| #[cfg(not(test))] | ||
| #[derive(Debug, Copy, Clone)] | ||
| #[repr(u32)] | ||
| pub struct S2 {} | ||
|
|
||
| #[derive(Debug)] | ||
| pub struct S3 {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #![allow( | ||
| dead_code, | ||
| non_camel_case_types, | ||
| non_snake_case, | ||
| non_upper_case_globals, | ||
| unused_assignments, | ||
| unused_mut | ||
| )] | ||
|
|
||
| #[derive(Copy, Clone)] | ||
| #[repr(C)] | ||
| pub struct S0 {} | ||
|
|
||
| #[derive(Clone)] | ||
| #[repr(u8)] | ||
| #[derive(Copy)] | ||
| #[derive(Debug)] | ||
| pub struct S1 {} | ||
|
|
||
| #[cfg(not(test))] | ||
| #[derive(Debug, Copy, Clone)] | ||
| #[repr(u32)] | ||
| pub struct S2 {} | ||
|
|
||
| #[derive(Debug)] | ||
| pub struct S3 {} |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this just be written as a Rust
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We do want to test end-to-end refactorer behavior here if possible, so if you have a suggestion on how to express that as a |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #!/bin/sh | ||
|
|
||
| # work around System Integrity Protection on macOS | ||
| if [ `uname` = 'Darwin' ]; then | ||
| export LD_LIBRARY_PATH=$not_LD_LIBRARY_PATH | ||
| fi | ||
|
|
||
| $refactor \ | ||
| test_one_plus_one \ | ||
| -- old.rs $rustflags |
Uh oh!
There was an error while loading. Please reload this page.