about summary refs log tree commit diff
path: root/src/test/ui/feature-gates
AgeCommit message (Collapse)AuthorLines
2018-10-24Prohibit macro-expanded `extern crate` items shadowing crates passed with ↵Vadim Petrochenkov-1/+16
`--extern`
2018-10-24Feature gate extern prelude additions from `extern crate` itemsVadim Petrochenkov-0/+106
Fix rustdoc and fulldeps tests
2018-10-19Stabilize impl_header_lifetime_elision in 2015Scott McMurray-98/+17
It's already stable in 2018; this finishes the stabilization.
2018-10-17Auto merge of #54946 - estebank:iterator, r=varkorbors-2/+3
Add filtering option to `rustc_on_unimplemented` and reword `Iterator` E0277 errors - Add more targetting filters for arrays to `rustc_on_unimplemented` (Fix #53766) - Detect one element array of `Range` type, which is potentially a typo: `for _ in [0..10] {}` where iterating between `0` and `10` was intended. (Fix #23141) - Suggest `.bytes()` and `.chars()` for `String`. - Suggest borrowing or `.iter()` on arrays (Fix #36391) - Suggest using range literal when iterating on integers (Fix #34353) - Do not suggest `.iter()` by default (Fix #50773, fix #46806) - Add regression test (Fix #22872)
2018-10-11review commentsEsteban Küber-1/+1
- reword messages - apply custom comments to all types of ranges - fix indentation
2018-10-10Rollup merge of #54870 - flip1995:stabilize_tool_lints, r=ManishearthManish Goregaokar-49/+0
Fixes #47311. r? @nrc
2018-10-10Rollup merge of #54862 - Havvy:cfg_attr_multi, r=petrochenkovManish Goregaokar-0/+46
Fixes #47311. r? @nrc
2018-10-09Reword `rustc_on_unimplemented` errors for `Iterator`Esteban Küber-2/+3
- Detect one element array of `Range` type, which is potentially a typo: `for _ in [0..10] {}` where iterating between `0` and `10` was intended. (#23141) - Suggest `.bytes()` and `.chars()` for `String`. - Suggest borrowing or `.iter()` on arrays (#36391) - Suggest using range literal when iterating on integers (#34353) - Do not suggest `.iter()` by default (#50773, #46806)
2018-10-09Remove feature-gate testsflip1995-49/+0
2018-10-07cfg-attr-multi: Change issue number to actual tracking issueHavvy (Ryan Scheel)-2/+2
2018-10-07cfg_attr_multi: Feature gateHavvy (Ryan Scheel)-0/+46
2018-10-05Stabilize `min_const_fn`Oliver Schneider-38/+11
2018-09-30Added help message for `impl_trait_in_bindings` feature gate.Alexander Regueiro-0/+4
2018-09-27Updated stderr test files.Alexander Regueiro-0/+2
2018-09-26Auto merge of #54497 - ralexstokes:stabilize_pattern_parentheses, r=nikomatsakisbors-26/+0
Stabilize pattern_parentheses feature Addresses #51087 . Stabilizes the previously unstable feature `pattern_parentheses` which enables the use of `()` in match patterns.
2018-09-25Auto merge of #53542 - alexreg:impl-trait-in-bindings, r=cramertjbors-1/+39
`impl trait` in bindings (feature: impl-trait-existential-types) This PR enables `impl Trait` syntax (opaque types) to be used in bindings, e.g. * `let foo: impl Clone = 1;` * `static foo: impl Clone = 2;` * `const foo: impl Clone = 3;` This is part of [RFC 2071](https://github.com/rust-lang/rfcs/blob/master/text/2071-impl-trait-existential-types.md) ([tracking issue](https://github.com/rust-lang/rust/issues/34511)), but exists behind the separate feature gate `impl_trait_in_bindings`. CC @cramertj @oli-obk @eddyb @Centril @varkor
2018-09-25Auto merge of #53693 - scottmcm:marker-trait-attribute, r=nikomatsakisbors-0/+30
Support an explicit annotation for marker traits From the tracking issue for rust-lang/rfcs#1268: > It seems obvious that we should make a `#[marker]` annotation. ~ https://github.com/rust-lang/rust/issues/29864#issuecomment-368959441 This PR allows you to put `#[marker]` on a trait, at which point: - [x] The trait must not have any items ~~All of the trait's items must have defaults~~ - [x] Any impl of the trait must be empty (not override any items) - [x] But impls of the trait are allowed to overlap r? @nikomatsakis
2018-09-25Handle impl trait in MIR type checked for assignments.Matthew Jasper-1/+39
2018-09-22stabilize pattern_parentheses featureAlex Stokes-26/+0
2018-09-22Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all ↵Eduard-Mihai Burtescu-26/+0
editions.
2018-09-19Parse, feature-gate, and validate the #[marker] attributeScott McMurray-0/+30
2018-09-17libsyntax: add optional help message for deprecated featuresAlva Snædís-1/+1
2018-09-17libsyntax: fix casing in error messageAlva Snædís-3/+3
2018-09-13introduce SelfCtorF001-39/+41
2018-09-13implement feature tuple_struct_self_ctorF001-0/+39
2018-09-11stabalize infer outlives requirements (RFC 2093).toidiu-35/+0
Co-authored-by: nikomatsakis
2018-09-09update ui testsJorge Aparicio-32/+2
2018-09-07stabilize `#[panic_handler]`Jorge Aparicio-32/+0
2018-08-31Implement the `min_const_fn` feature gateOliver Schneider-36/+121
2018-08-30Made std::intrinsics::transmute() const fn.thedarkula-0/+30
2018-08-26Auto merge of #53619 - japaric:panic-handler, r=SimonSapinbors-3/+35
add #[panic_handler]; deprecate #[panic_implementation] r? @SimonSapin cc #44489
2018-08-23Stabilize 'attr_literals' feature.Sergio Benitez-1/+1
2018-08-23fix tidyJorge Aparicio-0/+32
2018-08-23add #[panic_handler]; deprecate #[panic_implementation]Jorge Aparicio-12/+12
2018-08-23Auto merge of #52602 - scottmcm:tryblock-expr, r=nikomatsakisbors-17/+19
Implement try block expressions I noticed that `try` wasn't a keyword yet in Rust 2018, so... ~~Fix​es https://github.com/rust-lang/rust/issues/52604~~ That was fixed by PR https://github.com/rust-lang/rust/pull/53135 cc https://github.com/rust-lang/rust/issues/31436 https://github.com/rust-lang/rust/issues/50412
2018-08-23Auto merge of #53459 - petrochenkov:stabmore, r=nrcbors-26/+0
Stabilize a few secondary macro features - `tool_attributes` - closes https://github.com/rust-lang/rust/issues/44690 - `proc_macro_path_invoc` - this feature was created due to issues with tool attributes (https://github.com/rust-lang/rust/issues/51277), those issues are now fixed (https://github.com/rust-lang/rust/pull/52841) - partially `proc_macro_gen` - this feature was created due to issue https://github.com/rust-lang/rust/issues/50504, the issue is now fixed (https://github.com/rust-lang/rust/pull/51952), so proc macros can generate modules. They still can't generate `macro_rules` items though due to unclear hygiene interactions.
2018-08-23Auto merge of #53235 - varkor:gat_impl_where, r=estebankbors-4/+17
Feature gate where clauses on associated type impls Fixes #52913. This doesn't address the core problem, which is tracked by https://github.com/rust-lang/rust/issues/47206. However, it fixes the stable-to-stable regression: you now have to enable `#![feature(generic_associated_types)]` to trigger the weird behaviour.
2018-08-23Stabilize a few secondary macro featuresVadim Petrochenkov-26/+0
`tool_attributes`, `proc_macro_path_invoc`, partially `proc_macro_gen`
2018-08-22Rollup merge of #53431 - alexreg:move-feature-gate-tests, r=cramertjGuillaume Gomez-0/+105
Moved some feature gate ui tests to correct location None
2018-08-21Auto merge of #53471 - petrochenkov:biattr2, r=oli-obkbors-32/+32
resolve: Some macro resolution refactoring Work towards completing https://github.com/rust-lang/rust/pull/50911#issuecomment-411605393 The last commit also fixes https://github.com/rust-lang/rust/issues/53269 by not using `def_id()` on `Def::Err` and also fixes https://github.com/rust-lang/rust/issues/53512.
2018-08-21Auto merge of #53530 - kennytm:rollup, r=kennytmbors-30/+0
Rollup of 17 pull requests Successful merges: - #53030 (Updated RELEASES.md for 1.29.0) - #53104 (expand the documentation on the `Unpin` trait) - #53213 (Stabilize IP associated constants) - #53296 (When closure with no arguments was expected, suggest wrapping) - #53329 (Replace usages of ptr::offset with ptr::{add,sub}.) - #53363 (add individual docs to `core::num::NonZero*`) - #53370 (Stabilize macro_vis_matcher) - #53393 (Mark libserialize functions as inline) - #53405 (restore the page title after escaping out of a search) - #53452 (Change target triple used to check for lldb in build-manifest) - #53462 (Document Box::into_raw returns non-null ptr) - #53465 (Remove LinkMeta struct) - #53492 (update lld submodule to include RISCV patch) - #53496 (Fix typos found by codespell.) - #53521 (syntax: Optimize some literal parsing) - #53540 (Moved issue-53157.rs into src/test/ui/consts/const-eval/) - #53551 (Avoid some Place clones.) Failed merges: r? @ghost
2018-08-20Removed `raw_identifiers` feature gate.Alexander Regueiro-25/+0
2018-08-20resolve: Consolidate error reporting for resolved macros in `fn ↵Vadim Petrochenkov-32/+32
resolve_macro_to_def`
2018-08-19Rename `catch_expr` feature to `try_blocks`Scott McMurray-2/+2
2018-08-19Parse try blocks with the try keyword instead of do catch placeholderScott McMurray-6/+8
2018-08-19Stabilize macro_vis_matcherJakub Kozlowski-30/+0
2018-08-18Auto merge of #53324 - alexreg:self_in_typedefs, r=eddybbors-0/+27
`Self` in type definitions (self_in_typedefs) This implements the [`self_in_typedefs` feature](https://github.com/rust-lang/rfcs/blob/master/text/2300-self-in-typedefs.md) ([tracking issue 49303](https://github.com/rust-lang/rust/issues/49303)). r? @eddyb CC @Centril
2018-08-18Added feature gate.Alexander Regueiro-0/+27
2018-08-17Auto merge of #50911 - petrochenkov:macuse, r=alexcrichtonbors-3/+1
Stabilize `use_extern_macros` Closes https://github.com/rust-lang/rust/issues/35896
2018-08-17Stabilize `use_extern_macros`Vadim Petrochenkov-3/+1