Skip to content

Issues: rust-lang/rust

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

Author
Filter by author
Loading
Label
Filter by label
Loading
Use alt + click/return to exclude labels
or + click/return for logical OR
Projects
Filter by project
Loading
Milestones
Filter by milestone
Loading
Assignee
Filter by who’s assigned
Sort

Issues list

E0308 Suggestion gets added to unrelated code and error span is too big A-diagnostics Area: Messages for errors, warnings, and lints A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) D-imprecise-spans Diagnostics: spans don't point to exactly the erroneous code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#134445 opened Dec 17, 2024 by LasterAlex
Compiling #[derive(Debug)] enum + dbg! is quadratic with enum variants A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. I-compiletime Issue: Problems and improvements with respect to compile times. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#133945 opened Dec 6, 2024 by theemathas
Bad + use<> suggestion in nested macro_rules A-edition-2024 Area: The 2024 edition A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-suggestion-diagnostics Area: Suggestions generated by the compiler applied by `cargo fix` C-bug Category: This is a bug. D-edition Diagnostics: An error or lint that should account for edition differences. D-invalid-suggestion Diagnostics: A structured suggestion resulting in incorrect code. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example L-impl_trait_overcaptures Lint: impl_trait_overcaptures T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#133769 opened Dec 2, 2024 by ehuss
keyword-idents is incompatible with macros A-edition-2024 Area: The 2024 edition A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-suggestion-diagnostics Area: Suggestions generated by the compiler applied by `cargo fix` C-bug Category: This is a bug. D-edition Diagnostics: An error or lint that should account for edition differences. D-invalid-suggestion Diagnostics: A structured suggestion resulting in incorrect code. L-keyword_idents Lint group: keyword_idents L-keyword_idents_2024 Lint: keyword_idents_2024 T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#133709 opened Dec 1, 2024 by ehuss
non-#[macro_export]'ed macro_rules! macros are impossible to disambiguate from built-in attributes in use declarations A-attributes Area: Attributes (`#[…]`, `#![…]`) A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. T-lang Relevant to the language team, which will review and decide on the PR/issue.
#133708 opened Dec 1, 2024 by kanashimia
Unexpected warning when doc string invokes a macro which is defined within the same module A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-resolve Area: Name/path resolution done by `rustc_resolve` specifically C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#133656 opened Nov 30, 2024 by rami3l
assert_eq! fails with const { .. } in Rust 2024 A-edition-2024 Area: The 2024 edition A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#133081 opened Nov 15, 2024 by traviscross
#[derive(Debug)] on #[repr(packed)] enum causes internal compiler error A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-repr-packed Area: the naughtiest repr C-bug Category: This is a bug. E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#133025 opened Nov 14, 2024 by urinacon
Bad span in suggestion for unsafe_attr_outside_unsafe in macro expansion with cfg_attr A-diagnostics Area: Messages for errors, warnings, and lints A-edition-2024 Area: The 2024 edition A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-suggestion-diagnostics Area: Suggestions generated by the compiler applied by `cargo fix` C-bug Category: This is a bug. D-edition Diagnostics: An error or lint that should account for edition differences. D-invalid-suggestion Diagnostics: A structured suggestion resulting in incorrect code. L-unsafe_attr_outside_unsafe Lint: unsafe_attr_outside_unsafe T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#132908 opened Nov 11, 2024 by ehuss
2
3
Misleading error messages when using the wrong macro fragment specifiers A-diagnostics Area: Messages for errors, warnings, and lints A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) D-confusing Diagnostics: Confusing error or lint that should be reworked.
#132655 opened Nov 5, 2024 by LorDawid
unused_imports on pub use macros::* should explain that [macro_export] macros don't need to be exported. A-diagnostics Area: Messages for errors, warnings, and lints A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) D-terse Diagnostics: An error or lint that doesn't give enough information about the problem at hand. L-unused_imports Lint: unused_imports T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#132102 opened Oct 24, 2024 by Kriskras99
Macros do not accept empty vis at the end of the token tree A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-lang Relevant to the language team, which will review and decide on the PR/issue. WG-macros Working group: Macros
#131950 opened Oct 19, 2024 by ChayimFriedman2
assert_eq! is not 100% hygienic A-diagnostics Area: Messages for errors, warnings, and lints A-hygiene Area: Macro hygiene A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. D-confusing Diagnostics: Confusing error or lint that should be reworked. D-terse Diagnostics: An error or lint that doesn't give enough information about the problem at hand. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#131446 opened Oct 9, 2024 by GrigorenkoPV
Tracking Issue for proc_macro::ToTokens A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-proc-macros Area: Procedural macros C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. WG-macros Working group: Macros
#130977 opened Sep 28, 2024 by tgross35
2 of 5 tasks
[DESIGN BUG] declarative macros lack of neat way to simulate lookahead within rust grammer syntax const X: Y A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-discussion Category: Discussion or questions that doesn't represent real issues. T-lang Relevant to the language team, which will review and decide on the PR/issue.
#130928 opened Sep 27, 2024 by loynoir
Tracking issue for proc_macro in non-proc-macro crates A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-proc-macros Area: Procedural macros C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. WG-macros Working group: Macros
#130856 opened Sep 25, 2024 by tgross35
4 tasks
Incorrect diagnostic "pattern requires .. due to inaccessible fields" when matching in a macro A-diagnostics Area: Messages for errors, warnings, and lints A-hygiene Area: Macro hygiene A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) D-confusing Diagnostics: Confusing error or lint that should be reworked. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#130588 opened Sep 19, 2024 by goffrie
Fix cross-edition fragment specifier span behavior A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-lang Relevant to the language team, which will review and decide on the PR/issue.
#130484 opened Sep 17, 2024 by traviscross
Inference failure triggered by null proc macro application to totally unused and irrelevant struct A-inference Area: Type inference A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
#130480 opened Sep 17, 2024 by ijackson
Declarative macros: warn on unreachable macro rule A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-feature-request Category: A feature request, i.e: not implemented / a PR. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#130222 opened Sep 11, 2024 by Kriskras99
#[cfg(...)] attribute is incorrectly removed from a function parameter inside of the derive macro A-cfg Area: `cfg` conditional compilation A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) A-proc-macros Area: Procedural macros C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#130004 opened Sep 5, 2024 by Veetaha
re-exported macro_export doc(hidden) pub use macro_rules macro not showing up A-cross-crate-reexports Area: Documentation that has been re-exported from a different crate A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
#129982 opened Sep 5, 2024 by GlenDC
macro_rules: Fragment vis somehow matches token [ despite no visibility modifier starting with/having such token A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#128915 opened Aug 10, 2024 by Houtamelo
Macro metavar expr concat doesn't work with nested repetitions A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. F-macro_metavar_expr_concat `#![feature(macro_metavar_expr_concat)]` T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#127723 opened Jul 14, 2024 by Noratrieb
rustdoc leaks ident macro meta-variables in non-literal const exprs in assoc tys & impl trait refs (excl. self ty) A-const-generics Area: const generics (parameters and arguments) A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
#127429 opened Jul 6, 2024 by maia-s
ProTip! What’s not been updated in a month: updated:<2024-12-01.