Add UI tests for the expect
attribute (RFC-2383)
* Add UI tests with macros for the `expect` attribute (RFC-2383) * Addressed review comments - mostly UI test updates (RFC-2383) * Documented lint level attribute on macro not working bug (RFC-2383) See `rust#87391`
This commit is contained in:
parent
33a5945069
commit
a9bf9eaef5
18 changed files with 424 additions and 4 deletions
|
@ -16,11 +16,9 @@ pub fn check_expectations(tcx: TyCtxt<'_>) {
|
|||
&tcx.lint_levels(()).lint_expectations;
|
||||
|
||||
for (id, expectation) in lint_expectations {
|
||||
if fulfilled_expectations.contains(id) {
|
||||
continue;
|
||||
if !fulfilled_expectations.contains(id) {
|
||||
emit_unfulfilled_expectation_lint(tcx, expectation);
|
||||
}
|
||||
|
||||
emit_unfulfilled_expectation_lint(tcx, expectation);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue