Skip to content

Commit f224b5a

Browse files
committed
tests: update the documented error counts in ui/spirv-attr/invalid-target.
1 parent febd253 commit f224b5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/ui/spirv-attr/invalid-target.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
// * builtin: `position`
1818

1919
// NOTE(eddyb) accounting for the number of errors this test actually produces:
20-
// * 422 "attribute is only valid on" errors (see `invalid-target.stderr`)
20+
// * 461 "attribute is only valid on" errors (see `invalid-target.stderr`)
2121
// * 40 `#[spirv(...)]` (excluding `macro_rules!`, which doesn't get the above error)
22-
// * at most 11 attributes per `#[spirv(...)]`, so an upper bound of `40*11 = 440`
23-
// * the difference between 440 and 422 is 18, i.e. valid attributes, made up of:
22+
// * at most 12 attributes per `#[spirv(...)]`, so an upper bound of `40*12 = 480`
23+
// * the difference between 480 and 461 is 19, i.e. valid attributes, made up of:
2424
// * 4 on `_Struct`
2525
// * 8 on functions, i.e. 2 on each of:
2626
// * `_inherent_method`
2727
// * `_trait_method_with_default`,
2828
// * `_trait_method` (in `impl _Trait for ()`)
2929
// * `_fn`
30-
// * 5 on `_entry_param`
30+
// * 6 on `_entry_param`
3131
// * 1 on `_closure`
3232

3333
#[spirv(

0 commit comments

Comments
 (0)