about summary refs log tree commit diff
path: root/src/test/ui/feature-gates
AgeCommit message (Collapse)AuthorLines
2020-06-11Stop special casing top level TAITMatthew Jasper-63/+31
2020-06-09[AVR] Re-bless the UI testsDylan McKay-3/+4
Patch generated with `./x.py test --stage 1 src/test/ui/feature-gates --bless`.
2020-06-09[AVR] Add AVR platform supportJake Goulding-0/+20
2020-06-04test: ui: skip tests which aren't appropriate for RISC-VTom Eccles-1/+3
2020-05-31Clarify errors and warnings about the transition to the new asm!Amanieu d'Antras-4/+4
2020-05-30Tweak type parameter errors to reduce verbosityEsteban Küber-7/+1
2020-05-27Mark deduplicated errors as expected in gate testLeSeulArtichaut-0/+2
2020-05-27Apply suggestions from code reviewLeSeulArtichaut-20/+27
2020-05-27Add testsLeSeulArtichaut-0/+27
2020-05-23Add test for #69415Yuki Okushi-16/+19
2020-05-20Add tests for `#[ffi_const]` and `#[ffi_pure]` function attributesMatthias Schiffer-0/+36
Based on the work of gnzlbg <gonzalobg88@gmail.com>.
2020-05-18Fix feature gate testsAmanieu d'Antras-10/+14
2020-05-18Add tests for asm!Amanieu d'Antras-22/+4
2020-05-16Fix issue number typo in noteJonas Schievink-1/+1
2020-05-03Add more tests for cfg(version)mibac138-3/+52
2020-05-03Change cfg(version) error message wordingmibac138-6/+9
2020-05-03Implement RFC 2523, `#[cfg(version(..))]`mibac138-0/+121
2020-04-30Rollup merge of #71205 - NeoRaider:check_attr, r=jonas-schievinkDylan DPC-10/+55
rustc: fix check_attr() for methods, closures and foreign functions This fixes an issue that previously turned up for methods in https://github.com/rust-lang/rust/pull/69274, but also exists for closures and foreign function: `check_attr` does not call `codegen_fn_attrs()` for these types when it should, meaning that incorrectly used function attributes are not diagnosed without codegen. The issue affects our UI tests, as they run with `--emit=metadata` by default, but as it turns out, this is not the only case: Function attributes are not checked on any dead code without this fix! This makes the fix a **breaking change**. The following very silly Rust programs compiles fine on stable Rust when it should not, which is fixed by this PR. ```rust fn main() { #[target_feature(enable = "sse2")] || {}; } ``` I assume any real-world program which may trigger this issue would at least emit a dead code warning, but of course that is no guarantee that such code does not exist... Fixes #70307
2020-04-16rustc: fix check_attr() for methods, closures and foreign functionsMatthias Schiffer-10/+55
UI tests are updated with additional error messages that were missing before.
2020-04-15Deprecate the asm! macroAmanieu d'Antras-4/+22
2020-04-11rustc: Add a warning count upon completionRoccoDev-1/+1
2020-04-04Update the description of link_cfg unstableRustin-Liu-1/+1
Fmt code Update tests Modify msg Signed-off-by: Rustin-Liu <rustin.liu@gmail.com>
2020-04-02tests: remove ignore directives from tests that mention core/alloc/std spans.Eduard-Mihai Burtescu-6/+1
2020-03-27Rollup merge of #70457 - Centril:non-exhaustive-scrutinee-type, r=estebankMazdak Farrokhzad-0/+3
non-exhastive diagnostic: add note re. scrutinee type This fixes https://github.com/rust-lang/rust/issues/67259 by adding a note: ``` = note: the matched value is of type &[i32] ``` to non-exhaustive pattern matching errors. r? @varkor @estebank
2020-03-27non-exhastive diagnostic: add note re. scrutinee typeMazdak Farrokhzad-0/+3
2020-03-26Update tests to use llvm_asm!Amanieu d'Antras-2/+22
2020-03-26Rename asm! to llvm_asm!Amanieu d'Antras-2/+2
asm! is left as a wrapper around llvm_asm! to maintain compatibility.
2020-03-26create a tracking issue and link to itNiko Matsakis-1/+1
2020-03-26introduce `negative_impls` feature gate and documentNiko Matsakis-1/+1
They used to be covered by `optin_builtin_traits` but negative impls are now applicable to all traits, not just auto traits. This also adds docs in the unstable book for the current state of auto traits.
2020-03-24resolve: Remove `rustc_attrs` as a standalone feature gateVadim Petrochenkov-9/+3
Now it only gates specific built-in attributes
2020-03-23Ignore tests on some platforms due to #53081Aaron Hill-1/+6
2020-03-22Store idents for `DefPathData` into crate metadataAaron Hill-0/+5
Previously, we threw away the `Span` associated with a definition's identifier when we encoded crate metadata, causing us to lose location and hygiene information. We now store the identifier's `Span` in the crate metadata. When we decode items from the metadata, we combine the name and span back into an `Ident`. This improves the output of several tests, which previously had messages suppressed due to dummy spans. This is a prerequisite for #68686, since throwing away a `Span` means that we lose hygiene information.
2020-03-12Rollup merge of #69722 - estebank:negative-impl-span-ast, r=CentrilMazdak Farrokhzad-2/+2
Tweak output for invalid negative impl AST errors Use more accurate spans for negative `impl` errors. r? @Centril
2020-03-10Rollup merge of #69514 - GuillaumeGomez:remove-spotlight, r=kinnisonMazdak Farrokhzad-16/+0
Remove spotlight I had a few comments saying that this feature was at best misunderstood or not even used so I decided to organize a poll about on [twitter](https://twitter.com/imperioworld_/status/1232769353503956994). After 87 votes, the result is very clear: it's not useful. Considering the amount of code we have just to run it, I think it's definitely worth it to remove it. r? @kinnison cc @ollie27
2020-03-08Rollup merge of #69561 - JohnTitor:clean-up-unstable-book, r=Mark-SimulacrumMazdak Farrokhzad-7/+0
Clean up unstable book - #58402's feature was renamed to `tidy_test_never_used_anywhere_else` and it is now used for tidy only - `read_initializer` link is wrong and the doc should be auto-generated so removed - Add dummy doc for `link_cfg` - Stop generating `compiler_builtins_lib` doc in favor of b8ccc0f8a60ac16fdc00f4b2e36e1a5db8b78295 - Make `rustc_attrs` tracking issue "None"
2020-03-04Tweak output for invalid negative impl AST errorsEsteban Küber-2/+2
2020-03-03Update testsYuki Okushi-35/+0
2020-03-01Make `rustc_attrs` tracking issue NoneYuki Okushi-7/+0
2020-02-27Remove "important traits" featureGuillaume Gomez-16/+0
2020-02-19Tweak binding lifetime suggestion textEsteban Küber-1/+1
We already have a structured suggestion, but the wording made it seem like that wasn't the case. Fix #65286. r? @varkor
2020-02-14Update testsMatthew Jasper-3/+12
2020-02-13ast_validation: tweak diagnostic outputMazdak Farrokhzad-18/+18
2020-02-09--bless --compare-mode=nllMatthias Prechtl-242/+242
2020-02-07Rollup merge of #68164 - tmiasko:no-sanitize, r=nikomatsakisDylan DPC-0/+16
Selectively disable sanitizer instrumentation Add `no_sanitize` attribute that allows to opt out from sanitizer instrumentation in an annotated function.
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-0/+4
2020-02-05Selectively disable sanitizer instrumentationTomasz Miąsko-0/+16
Add `no_sanitize` attribute that allows to opt out from sanitizer instrumentation in an annotated function.
2020-02-02Use more appropriate spans on object unsafe traits and provide structured ↵Esteban Küber-2/+5
suggestions when possible
2020-02-02Wording changes to object unsafe trait errorsEsteban Küber-5/+21
Stemming from the thread at https://twitter.com/indygreg/status/1223279056398929920
2020-02-02Slight rewording of diagnostic messageEsteban Küber-2/+2
2020-02-02Tweak `Self: Sized` restriction diagnostic outputEsteban Küber-4/+0