change field tools on AttributeParser to hold &'tcx RegisteredTools#156091
change field tools on AttributeParser to hold &'tcx RegisteredTools#156091rust-bors[bot] merged 1 commit intorust-lang:mainfrom
tools on AttributeParser to hold &'tcx RegisteredTools#156091Conversation
|
Some changes occurred in compiler/rustc_attr_parsing cc @jdonszelmann, @JonathanBrouwer These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
| rustc_feature = { path = "../rustc_feature" } | ||
| rustc_hir = { path = "../rustc_hir" } | ||
| rustc_lexer = { path = "../rustc_lexer" } | ||
| rustc_lint_defs = { path = "../rustc_lint_defs" } |
There was a problem hiding this comment.
Note: this crate already depends on rustc_lint_defs indirectly through rustc_errors, so this is ok.
There was a problem hiding this comment.
I know it doesn't matter but it feels somewhat silly when RegisteredTools is just a type alias.
There was a problem hiding this comment.
I know it doesn't matter but it feels somewhat silly when RegisteredTools is just a type alias.
I think it's worth it for more consistency and to avoid confusion
change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools` Makes tools actually stored, and not just tool names this was originally part of rust-lang#155691 but was split out to make that PR smaller. r? @petrochenkov cc @JonathanBrouwer
change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools` Makes tools actually stored, and not just tool names this was originally part of rust-lang#155691 but was split out to make that PR smaller. r? @petrochenkov cc @JonathanBrouwer
…uwer Rollup of 5 pull requests Successful merges: - #152277 (Validate source snippet when format input is raw string) - #155940 (refactor rustc_on_unimplemented's filtering) - #156065 (Remove unused spans from AttributeKind) - #156079 (Move and rename the `clone-never.rs` test) - #156091 (change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools`)
Rollup of 5 pull requests Successful merges: - #155666 (Interning cleanups) - #155940 (refactor rustc_on_unimplemented's filtering) - #156065 (Remove unused spans from AttributeKind) - #156079 (Move and rename the `clone-never.rs` test) - #156091 (change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools`)
Rollup merge of #156091 - Bryntet:move-tools, r=JonathanBrouwer change field `tools` on `AttributeParser` to hold `&'tcx RegisteredTools` Makes tools actually stored, and not just tool names this was originally part of #155691 but was split out to make that PR smaller. r? @petrochenkov cc @JonathanBrouwer
Makes tools actually stored, and not just tool names
this was originally part of #155691 but was split out to make that PR smaller.
r? @petrochenkov
cc @JonathanBrouwer