about summary refs log tree commit diff
path: root/tests/ui/stability-attribute
AgeCommit message (Collapse)AuthorLines
2023-11-24Show number in error message even for one errorNilstrieb-16/+16
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-10-30Preserve deprecation attribute even if 'since' version is missingDavid Tolnay-3/+11
2023-10-29Store version of `deprecated` attribute in structured formDavid Tolnay-11/+7
2023-10-29Fill in syntactically valid deprecation version in testsDavid Tolnay-12/+12
2023-10-24Update stability attribute sanity UI test to delete superfluous errorsDavid Tolnay-19/+6
2023-10-23Update `since` stability attributes in testsDavid Tolnay-43/+53
2023-08-06bless testsDeadbeef-1/+1
2023-06-28Auto merge of #111269 - clubby789:validate-fluent-variables, r=davidtwcobors-2/+19
Validate fluent variable references in tests Closes #101109 Under `cfg(test)`, the `fluent_messages` macro will emit a list of variables referenced by each message and its attributes. The derive attribute will now emit a `#[test]` that checks that each referenced variable exists in the structure it's applied to.
2023-06-22Tweak privacy errors to account for reachable itemsEsteban Küber-1/+3
Suggest publicly accessible paths for items in private mod: When encountering a path in non-import situations that are not reachable due to privacy constraints, search for any public re-exports that the user could use instead. Track whether an import suggestion is offering a re-export. When encountering a path with private segments, mention if the item at the final path segment is not publicly accessible at all. Add item visibility metadata to privacy errors from imports: On unreachable imports, record the item that was being imported in order to suggest publicly available re-exports or to be explicit that the item is not available publicly from any path. In order to allow this, we add a mode to `resolve_path` that will not add new privacy errors, nor return early if it encounters one. This way we can get the `Res` corresponding to the final item in the import, which is used in the privacy error machinery.
2023-05-26Fix diagnostics with errorsclubby789-2/+19
2023-04-29Update testsGary Guo-4/+4
2023-03-18fix: don't suggest similar method when unstableEzra Shaw-0/+47
2023-03-06Rollup merge of #107801 - davidtwco:stability-implies-const, r=NilstriebMatthias Krüger-0/+146
const_eval: `implies_by` in `rustc_const_unstable` Fixes #107605. Extend support for `implies_by` (from `#[stable]` and `#[unstable]`) to `#[rustc_const_stable]` and `#[rustc_const_unstable]`. cc ``@steffahn``
2023-02-25Do not lint unresolved trait for ineffective unstable trait implDeadbeef-0/+17
2023-02-08const_eval: `implies_by` in `rustc_const_unstable`David Wood-0/+146
Extend support for `implies_by` (from `#[stable]` and `#[unstable]`) to `#[rustc_const_stable]` and `#[rustc_const_unstable]`. Signed-off-by: David Wood <david.wood@huawei.com>
2023-01-14fix: don't emit `E0711` if `staged_api` not enabledEzra Shaw-0/+25
2023-01-11Move /src/test to /testsAlbert Larsan-0/+2468