Some cleanup in rustc_attr_parsing#159508
Conversation
|
@rustbot ready |
|
Reminder, once the PR becomes ready for a review, use |
Addressed! @rustbot ready |
|
Some changes occurred in compiler/rustc_attr_parsing cc @jdonszelmann, @JonathanBrouwer Some changes occurred in check-cfg diagnostics cc @Urgau |
There was a problem hiding this comment.
Thanks, I've had the time to take a more detailed look now.
Can you undo the match -> if changes in cfg_select.rs? Also those deleted comments really should be FIXME's instead, not be deleted. Turning these into FIXME's would be the proper cleanup. #149960 (comment) would be useful to link to from that FIXME as well.
| diag.span_label( | ||
| self.span, | ||
| format!("expected this to be of the form `... = \"...\"`"), | ||
| "expected this to be of the form `... = \"...\"`".to_string(), |
There was a problem hiding this comment.
| "expected this to be of the form `... = \"...\"`".to_string(), | |
| "expected this to be of the form `... = \"...\"`", |
It accepts &'static str as well as String.
Rollup of 5 pull requests Successful merges: - #158546 (Move `std::io::BufRead` to `alloc::io`) - #159372 (Remove SIZE generic param from DisplayBuffer in core::net) - #159548 (miri subtree update) - #159508 (Some cleanup in `rustc_attr_parsing`) - #159539 ([rustc_abi] Customize `Debug` for `Primitive` and `Scalar`)
Rollup merge of #159508 - qaijuang:rustc-attr-parsing-cleanup, r=mejrs Some cleanup in `rustc_attr_parsing` My hands got itchy while digging through a few modules. ...and maybe run perf? IDK r? compiler
My hands got itchy while digging through a few modules.
...and maybe run perf? IDK
r? compiler