Skip to content

Make optimize_attribute conditional on libstd#752

Merged
ChrisDenton merged 1 commit into
rust-lang:masterfrom
ChrisDenton:optimize_attribute
May 28, 2026
Merged

Make optimize_attribute conditional on libstd#752
ChrisDenton merged 1 commit into
rust-lang:masterfrom
ChrisDenton:optimize_attribute

Conversation

@ChrisDenton
Copy link
Copy Markdown
Member

This should hopefully fix CI.

@ChrisDenton ChrisDenton force-pushed the optimize_attribute branch 2 times, most recently from 146f1dc to b6337bb Compare April 12, 2026 22:33
@ChrisDenton
Copy link
Copy Markdown
Member Author

cc @workingjubilee, I'm trying to get CI working again. Does this look ok to you? The alternative is to just allow unused features but it seems like a useful lint. Then again, it's not like I'd expect we'd use many of them.

@workingjubilee
Copy link
Copy Markdown
Member

This seems fine, yes! Will doublecheck something and then merge.

@workingjubilee
Copy link
Copy Markdown
Member

...What were you gonna check, Jubilee?

backtrace_in_libstd,
feature = "backtrace",
any(unix, all(windows, target_env = "gnu")),
not(target_vendor = "uwp"),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...is windows with gnu and UWP a coherent concept?

anyway the not obtains so we're fine regardless.

Copy link
Copy Markdown
Member Author

@ChrisDenton ChrisDenton May 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe. I mean, hypothetically at least. We have an x86_64-uwp-windows-gnu target but idk how well all these targets are maintained. Or even if they make any sense. I know the msvc one is used by at least one person because they complain when I break it (though not immediately).

@ChrisDenton ChrisDenton merged commit 0cc1553 into rust-lang:master May 28, 2026
39 checks passed
@ChrisDenton ChrisDenton deleted the optimize_attribute branch May 28, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants