Port #[ignore] to the new attribute parsing infrastructure#143238
Port #[ignore] to the new attribute parsing infrastructure#143238bors merged 1 commit intorust-lang:masterfrom
#[ignore] to the new attribute parsing infrastructure#143238Conversation
|
☔ The latest upstream changes (presumably #143287) made this pull request unmergeable. Please resolve the merge conflicts. |
fa1eb67 to
0668ae9
Compare
|
rustbot has assigned @petrochenkov. Use |
|
Some changes occurred in compiler/rustc_attr_parsing Some changes occurred in compiler/rustc_passes/src/check_attr.rs Some changes occurred in compiler/rustc_attr_data_structures |
|
^ Rebased on master |
|
|
|
☔ The latest upstream changes (presumably #143459) made this pull request unmergeable. Please resolve the merge conflicts. |
0668ae9 to
9865738
Compare
|
^ @jdonszelmann rebased |
| span: cx.attr_span, | ||
| reason: match args { | ||
| ArgParser::NoArgs => None, | ||
| ArgParser::NameValue(name_value) => name_value.value_as_str(), |
There was a problem hiding this comment.
Should I guess error when it's not a string right? Not ignore it. If it didn't error before that might be a breaking change so we could do a warning first. @oli-obk could you help with some intuition for whether introducing a new error for something like this is acceptable despite being breaking?
There was a problem hiding this comment.
Emitting the same lint as below wouldn't be so bad
There was a problem hiding this comment.
@jdonszelmann Good spot, thanks! Fixed
Also added a test case for it to the ever growing malformed-attrs.rs test
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
9865738 to
2d8ffff
Compare
|
@rustbot ready |
|
@bors r+ rollup |
Rollup of 6 pull requests Successful merges: - #143238 (Port `#[ignore]` to the new attribute parsing infrastructure) - #143441 (Stop using `Key` trait unnecessarily) - #143478 (Miri subtree update) - #143486 (remove armv5te-unknown-linux-gnueabi target maintainer) - #143489 (Complete rustc_ast::mut_visit for spans.) - #143494 (Remove yields_in_scope from the scope tree.) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 6 pull requests Successful merges: - #143238 (Port `#[ignore]` to the new attribute parsing infrastructure) - #143441 (Stop using `Key` trait unnecessarily) - #143478 (Miri subtree update) - #143486 (remove armv5te-unknown-linux-gnueabi target maintainer) - #143489 (Complete rustc_ast::mut_visit for spans.) - #143494 (Remove yields_in_scope from the scope tree.) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #143238 - JonathanBrouwer:ignore_parser, r=jdonszelmann Port `#[ignore]` to the new attribute parsing infrastructure Ports `ignore` to the new attribute parsing infrastructure for #131229 (comment) This PR duplicates a change from #143237 Draft until that one is merged
Rollup of 6 pull requests Successful merges: - rust-lang/rust#143238 (Port `#[ignore]` to the new attribute parsing infrastructure) - rust-lang/rust#143441 (Stop using `Key` trait unnecessarily) - rust-lang/rust#143478 (Miri subtree update) - rust-lang/rust#143486 (remove armv5te-unknown-linux-gnueabi target maintainer) - rust-lang/rust#143489 (Complete rustc_ast::mut_visit for spans.) - rust-lang/rust#143494 (Remove yields_in_scope from the scope tree.) r? `@ghost` `@rustbot` modify labels: rollup
Ports
ignoreto the new attribute parsing infrastructure for #131229 (comment)This PR duplicates a change from #143237
Draft until that one is merged