Skip to content

[WIP] #[fused]#155733

Draft
GrigorenkoPV wants to merge 3 commits intorust-lang:mainfrom
GrigorenkoPV:fuse
Draft

[WIP] #[fused]#155733
GrigorenkoPV wants to merge 3 commits intorust-lang:mainfrom
GrigorenkoPV:fuse

Conversation

@GrigorenkoPV
Copy link
Copy Markdown
Contributor

@GrigorenkoPV GrigorenkoPV commented Apr 24, 2026

TODO:

  • TODOs in code
  • Attribute validation
  • mir tests
  • support async blocks & async closures
  • A proper tracking issue, if this does not get rejected

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 24, 2026
@rust-log-analyzer
Copy link
Copy Markdown
Collaborator

The job pr-check-2 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
    --> compiler/rustc_passes/src/check_attr.rs:1760:9
     |
1759 |           return;
     |           ------ any code following this expression is unreachable
1760 | /         match target {
1761 | |             Target::Fn => todo!("Check that the fn is async"),
1762 | |             Target::Closure => todo!("Check that the closure is async"),
1763 | |             Target::Expression => todo!("Check that this is an async block"),
...    |
1767 | |             _ => bug!("This should not be accepted by rustc_attr_parsing"),
1768 | |         }
     | |_________^ unreachable expression
     |
     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default

warning: unused variable: `hir_id`
    --> compiler/rustc_passes/src/check_attr.rs:1758:27
     |
1758 |     fn check_fused(&self, hir_id: HirId, attr_span: Span, target: Target) {
     |                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_hir_id`
     |
     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default

warning: unused variable: `attr_span`
    --> compiler/rustc_passes/src/check_attr.rs:1758:42
     |
1758 |     fn check_fused(&self, hir_id: HirId, attr_span: Span, target: Target) {
     |                                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attr_span`

warning: unused variable: `target`
    --> compiler/rustc_passes/src/check_attr.rs:1758:59
     |
1758 |     fn check_fused(&self, hir_id: HirId, attr_span: Span, target: Target) {
     |                                                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target`

[RUSTC-TIMING] rustc_passes test:false 1.437
error: `rustc_passes` (lib) generated 4 warnings (run `cargo fix --lib -p rustc_passes` to apply 3 suggestions)
error: warnings are denied by `build.warnings` configuration
warning: build failed, waiting for other jobs to finish...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants