Repository navigation
Conversation
|
Let's see whether rustc can bootstrap on linux with these changes @bors try |
This comment has been minimized.
This comment has been minimized.
[crater] error on everything attribute related
This comment has been minimized.
This comment has been minimized.
|
💔 Test for acda8ae failed: CI. Failed jobs:
|
This comment has been minimized.
This comment has been minimized.
8c77f69 to
a4877fb
Compare
|
@bors try jobs=test-aarch64-apple-1 |
This comment has been minimized.
This comment has been minimized.
[crater] error on everything attribute related try-job: test-aarch64-apple-1
This comment has been minimized.
This comment has been minimized.
|
💔 Test for bf08b19 failed: CI. Failed job:
|
|
@bors try |
This comment has been minimized.
This comment has been minimized.
[crater] error on everything attribute related
This comment has been minimized.
This comment has been minimized.
|
💔 Test for d189687 failed: CI. Failed jobs:
|
a4877fb to
3242358
Compare
|
@bors try |
This comment has been minimized.
This comment has been minimized.
[crater] error on everything attribute related
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| Error(Target::Crate), | ||
| Error(Target::WherePredicate), | ||
| Error(Target::Param), | ||
| Warn(Target::MacroCall), // #158816: 100+ regressions in `cucumber` |
There was a problem hiding this comment.
I would love a PR that adds all these comments to main :3
| if list.is_empty() { | ||
| let attr_span = cx.attr_span; | ||
| cx.adcx().warn_empty_attribute(attr_span); | ||
| cx.adcx().empty_attribute(attr_span); |
There was a problem hiding this comment.
I'm not entirely convinced I'd even want this change, as the meaning of an empty attribute is clear.
If you do want to do this, the lint attribute still emits UNUSED_ATTRIBUTES for an empty list
There was a problem hiding this comment.
This was more to make it easier to search for "warn", I don't intend this change.
There was a problem hiding this comment.
Could you include all calls of warn_unused_duplicate?
There was a problem hiding this comment.
(not only in this file)
There was a problem hiding this comment.
The lint attribute still FCWs on macro calls
(comment at random location because imagine being able to leave comments in files that aren't edited...)
| // This is an edgecase added because making this a hard error would break too many crates | ||
| // Specifically `#[link = "dl"]` is accepted with a FCW | ||
| // For more information, see https://github.com/rust-lang/rust/pull/143193 | ||
| ArgParser::NameValue(nv) if nv.value_as_str().is_some_and(|v| v == sym::dl) => { |
There was a problem hiding this comment.
This edgecase is there exactly because it was found in crater, so feel free to include it again or not
There was a problem hiding this comment.
Nah this is fine to keep for now, i think. The crater run was recent enough that I don't expect much has changed.
There was a problem hiding this comment.
(random location again)
There is a call to ILL_FORMED_ATTRIBUTE_INPUT on validate_attr.rs:192. I don't think this is reachable anymore, I'll make a PR to clean up that code.
There was a problem hiding this comment.
Update: This is in fact reachable, through active macro parsing :p
There was a problem hiding this comment.
(random location again)
Could you include doc_comment.rs:51, unused doc comments?
There was a problem hiding this comment.
I don't want to include stuff related to doc comments and attributes, I think it'll be too noisy.
| const CREATE: fn(Span) -> AttributeKind = |_| AttributeKind::NoLink; | ||
|
|
||
| fn finalize_check(cx: &mut FinalizeCheckContext<'_, '_>, attr_span: Span) { | ||
| cx.emit_lint(NO_LINK_ATTRIBUTES, NoLinkAttrUsed, attr_span); |
There was a problem hiding this comment.
Do you want to include this? I think there was already a crater run done, not sure
There was a problem hiding this comment.
Perhaps include this? I think there's already a PR open somewhere that is aiming to break this tho
There was a problem hiding this comment.
Sorry, what are you referring to here? The github ui doesn't show it.
There was a problem hiding this comment.
I think this was referring to the CONFLICTING_REPRS lint, the PR that breaks this already landed though.
Github ui doesn't show it anymore because the code is gone (I think you just rebased on the PR), terrible UI design lol
| } | ||
| } | ||
|
|
||
| fn check_lint_check(&self, hir_id: HirId, lints: &[LintCheck]) { |
There was a problem hiding this comment.
Wanna include all the lints in this function?
There was a problem hiding this comment.
Actually these should really stay lints rather than errors, so I wouldn't include them
There was a problem hiding this comment.
(random location again)
Wanna include all uses of DUPLICATE_MACRO_ATTRIBUTES?
84fdcbd to
030a3e6
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
You could also consider including REPEATED_REPRS, again not sure we'd want it to be an error so up to you
There was a problem hiding this comment.
(It's in some libc versions: rust-lang/libc#5446 fixed it)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
51bb307 to
4ef5856
Compare
This comment has been minimized.
This comment has been minimized.
4ef5856 to
349c8be
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
349c8be to
a2aee8a
Compare
a2aee8a to
9f24bd2
Compare
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
@bors try |
This comment has been minimized.
This comment has been minimized.
[crater] error on everything attribute related
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
💔 Test for 052ec74 failed: CI. Failed jobs:
|
View all comments
All attributes now get parsed, let's see what happens. Main goals here:
macro_escapeis used(repr combinations/no_mangle/export_name are not included, they are covered in other crater runs)
r? @JonathanBrouwer, can you double check? I might've overlooked stuff.