about summary refs log tree commit diff
path: root/tests/ui-fulldeps/internal-lints
AgeCommit message (Collapse)AuthorLines
2023-12-19Add `level` arg to `into_diagnostic`.Nicholas Nethercote-11/+11
And make all hand-written `IntoDiagnostic` impls generic, by using `DiagnosticBuilder::new(dcx, level, ...)` instead of e.g. `dcx.struct_err(...)`. This means the `create_*` functions are the source of the error level. This change will let us remove `struct_diagnostic`. Note: `#[rustc_lint_diagnostics]` is added to `DiagnosticBuilder::new`, it's necessary to pass diagnostics tests now that it's used in `into_diagnostic` functions.
2023-12-18Fix up some `ui-fulldeps` tests.Nicholas Nethercote-22/+22
2023-11-26Use `rustc_fluent_macro::fluent_messages!` directly.Nicholas Nethercote-7/+6
Currently we always do this: ``` use rustc_fluent_macro::fluent_messages; ... fluent_messages! { "./example.ftl" } ``` But there is no need, we can just do this everywhere: ``` rustc_fluent_macro::fluent_messages! { "./example.ftl" } ``` which is shorter.
2023-11-24Bless ui-fulldepsNilstrieb-3/+4
We have to ignore some tests in stage1.
2023-11-15Bump cfg(bootstrap)sMark Rousskov-4/+2
2023-10-22Auto merge of #116932 - Kobzol:fix-stage1-tests, r=Mark-Simulacrumbors-2/+4
Fix x86_64-gnu-llvm-15 CI tests The CI script was broken - if there was a test failure in the first command chain (inside the `if`), CI would not report the failure. It happened because there were two command chains separated by `&&` in the script, and since `set -e` doesn't exit for chained commands, if the first chain has failed, the script would happily continue forward, ignoring any test failures. This could be fixed e.g. by adding some `|| exit 1` to the first chain, but I suppose that the `&&` chaining is unnecessary here anyway. Reported [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/test.20failure.20didn't.20stop.20CI). Fixes: https://github.com/rust-lang/rust/issues/116867
2023-10-20bless ui-fulldepsOli Scherer-2/+2
2023-10-20s/Generator/Coroutine/Oli Scherer-2/+2
2023-10-19Fix `span_use_eq_ctxt` testJakub Beránek-2/+4
The stage0 compiler does not know about the lint yet, so ignore the test on stage1.
2023-10-16debug Span::ctxt() call detectionArthur Lafrance-3/+17
2023-10-16basic lint v2 implementedArthur Lafrance-0/+13
2023-09-28Remove `rustc_lint_defs::lint_array`DaniPopes-1/+1
2023-09-23Remove GeneratorWitness and rename GeneratorWitnessMIR.Camille GILLOT-20/+13
2023-04-18Add `rustc_fluent_macro` to decouple fluent from `rustc_macros`Nilstrieb-8/+10
Fluent, with all the icu4x it brings in, takes quite some time to compile. `fluent_messages!` is only needed in further downstream rustc crates, but is blocking more upstream crates like `rustc_index`. By splitting it out, we allow `rustc_macros` to be compiled earlier, which speeds up `x check compiler` by about 5 seconds (and even more after the needless dependency on `serde_json` is removed from `rustc_data_structures`).
2023-04-13Move most ui-fulldeps tests to uijyn-182/+0
They pass fine. Only tests that required `extern crate rustc_*` or were marked `ignore-stage1` have been keep in fulldeps.
2023-03-29Check for escape sequences in Fluent resourcesclubby789-1/+1
2023-02-22errors: generate typed identifiers in each crateDavid Wood-13/+20
Instead of loading the Fluent resources for every crate in `rustc_error_messages`, each crate generates typed identifiers for its own diagnostics and creates a static which are pulled together in the `rustc_driver` crate and provided to the diagnostic emitter. Signed-off-by: David Wood <david.wood@huawei.com>
2023-01-27Bless ui-fulldeps.Camille GILLOT-13/+20
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1125