summary refs log tree commit diff
path: root/src/test/ui/editions
AgeCommit message (Collapse)AuthorLines
2018-11-25resolve: Suggest `crate::` for resolving ambiguities when appropriateVadim Petrochenkov-13/+15
More precise spans for ambiguities from macros
2018-11-25resolve: Fallback to extern prelude in 2015 imports used from global 2018 ↵Vadim Petrochenkov-15/+39
edition
2018-11-25resolve: Fallback to uniform paths in 2015 imports used from global 2018 editionVadim Petrochenkov-2/+88
2018-11-25resolve: 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-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