Skip to content
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

Avoid emitting redundant #[allow(dead_code)] directives. #1089

Merged

Conversation

sunfishcode
Copy link
Member

Only emit #[allow(dead_code)] on top-level modules, and emit #[rustfmt::skip] on all top-level modules.

Only emit `#[allow(dead_code)]` on top-level modules, and emit
`#[rustfmt::skip]` on all top-level modules.
@alexcrichton alexcrichton added this pull request to the merge queue Nov 18, 2024
Merged via the queue into bytecodealliance:main with commit 0640625 Nov 18, 2024
25 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/toplevel branch November 18, 2024 19:38
sunfishcode added a commit to sunfishcode/wit-bindgen that referenced this pull request Nov 20, 2024
Effectively revert bytecodealliance#1089, and go back to putting `#[allow(dead_code)]`
on all modules for now, because the code in bytecodealliance#1089 didn't work for
interfaces defined inline inside of worlds, which turn into top-level
modules in the Rust bindings.
sunfishcode added a commit to sunfishcode/wit-bindgen that referenced this pull request Nov 20, 2024
Effectively revert bytecodealliance#1089, and go back to putting `#[allow(dead_code)]`
on all modules for now, because the code in bytecodealliance#1089 didn't work for
interfaces defined inline inside of worlds, which turn into top-level
modules in the Rust bindings.
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2024
Effectively revert #1089, and go back to putting `#[allow(dead_code)]`
on all modules for now, because the code in #1089 didn't work for
interfaces defined inline inside of worlds, which turn into top-level
modules in the Rust bindings.
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.

3 participants