about summary refs log tree commit diff
path: root/src/test/ui/editions
AgeCommit message (Collapse)AuthorLines
2019-04-23Stabilize futures_apiTaylor Cramer-1/+1
2019-04-23Update ui testsvarkor-3/+3
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-2/+0
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-2/+1
2019-03-12resolve: Simplify import resolution for mixed 2015/2018 edition modeVadim Petrochenkov-57/+7
2019-03-11Update testsVadim Petrochenkov-31/+31
2019-02-27Rollup merge of #58678 - doctorn:refuse-async-fn-2015-edition, r=varkorMazdak Farrokhzad-0/+92
Deny `async fn` in 2015 edition This commit prevents code using `async fn` from being compiled in Rust 2015 edition. Compiling code of the form: ```rust async fn foo() {} ``` Will now result in the error: ``` error[E0670]: `async fn` is not permitted in the 2015 edition --> async.rs:1:1 | 1 | async fn foo() {} | ^^^^^ error: aborting due to error For more information about an error, try `rustc --explain E0670`. ``` This resolves #58652 and also resolves #53714. r? @varkor
2019-02-24Deny `async fn` in 2015 editionNathan Corbyn-0/+92
Fix style issues and update diagnostic messages Update src/librustc_passes/diagnostics.rs Co-Authored-By: doctorn <me@nathancorbyn.com> Deny nested `async fn` in Rust 2015 edition Deny nested `async fn` in Rust 2015 edition Deny nested `async fn` in Rust 2015 edition
2019-01-17Deny the `overflowing_literals` lint for all editionsOliver Middleton-16/+0
2019-01-12Stabilize `uniform_paths`Vadim Petrochenkov-6/+2
2019-01-12resolve: Prohibit use of uniform paths in macros originating from 2015 editionVadim Petrochenkov-1/+1
...while still keeping ambiguity errors future-proofing for uniform paths. This corner case is not going to be stabilized for 1.32 and needs some more general experiments about retrofitting 2018 import rules to 2015 edition
2018-12-31Address review commentsEsteban Küber-6/+6
- Suggest raw ident escaping in all editions - Keep primary label in all cases
2018-12-31Suggest using raw identifiers in 2018 edition when using keywordsEsteban Küber-6/+30
2018-12-27Fix rebase and more CI failuresVadim Petrochenkov-4/+6
2018-12-27Do not abort compilation if expansion produces errorsVadim Petrochenkov-2/+16
Fix a number of uncovered deficiencies in diagnostics
2018-12-25Remove licensesMark Rousskov-193/+23
2018-11-27Auto merge of #55402 - estebank:macro-eof-2, r=nikomatsakisbors-14/+24
Point at end of macro arm when encountering EOF Fix #52866.
2018-11-27resolve: Suggest `crate::` for resolving ambiguities when appropriateVadim Petrochenkov-13/+15
More precise spans for ambiguities from macros
2018-11-27resolve: Fallback to extern prelude in 2015 imports used from global 2018 ↵Vadim Petrochenkov-15/+39
edition
2018-11-27resolve: Fallback to uniform paths in 2015 imports used from global 2018 editionVadim Petrochenkov-2/+88
2018-11-27resolve: Implement edition hygiene for imports and absolute pathsVadim Petrochenkov-0/+106
Use per-span hygiene in a few other places in resolve Prefer `rust_2015`/`rust_2018` helpers to comparing editions
2018-11-23Reword EOF in macro arm messageEsteban Küber-2/+2
2018-11-23Keep label on moved spans and point at macro invocation on parse errorEsteban Küber-2/+12
2018-11-23Reword incorrect macro invocation primary labelEsteban Küber-8/+8
2018-11-23Point at end of macro arm when encountering EOFEsteban Küber-6/+6
Fix #52866
2018-10-23Point at macro definition when no rules expect tokenEsteban Küber-8/+8
2018-09-28Auto merge of #54338 - orium:fix-macro-inc-comp, r=nrcbors-2/+2
Use full name to identify a macro in a `FileName`. Before this two macros with same name would be indistinguishable inside a `FileName`. This caused a bug in incremental compilation (see #53097) since two different macros would map out to the same `StableFilemapId`. Fixes #53097. r? @nrc
2018-09-23add test for edition 2018csmoe-0/+26
2018-09-19Use full name to identify a macro in a `FileName`.Diogo Sousa-2/+2
Before this two macros with same name would be indistinguishable inside a `FileName`. This caused a bug in incremental compilation (see #53097) since two different macros would map out to the same `StableFilemapId`. Fixes #53097.
2018-08-29Generalize `async_idents` to all new keywordsAlex Crichton-4/+4
This commit generalizes the existing `async_idents` lint to easily encompass other identifiers that will be keywords in future editions. The new lint is called `keyword_idents` and the old `async_idents` lint is registered as renamed to this new lint. As a proof of concept the `try` keyword was added to this list as it looks to be listed as a keyword in the 2018 edition only. The `await` keyword was not added as it's not listed as a keyword yet. Closes #53077
2018-08-20Removed `raw_identifiers` feature gate.Alexander Regueiro-13/+5
2018-08-16tests: prefer edition: directives to compile-flags:--edition.Eduard-Mihai Burtescu-1/+1
2018-08-16syntax: also warn about edition "umbrella" features being implied by --edition.Eduard-Mihai Burtescu-1/+23
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+545