]> git.lizzy.rs Git - rust.git/commit
resolve: Implement edition hygiene for imports and absolute paths
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Sun, 18 Nov 2018 00:25:59 +0000 (03:25 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Mon, 26 Nov 2018 21:32:30 +0000 (00:32 +0300)
commitdae4c7b1ff62da4901caf28653baa3133a40496c
treec805c4c5ed9442f48ed0a611cacdce35b03947d8
parentfba116fc5fb7018faeb1834d42422d7bdbcc4f64
resolve: Implement edition hygiene for imports and absolute paths

Use per-span hygiene in a few other places in resolve
Prefer `rust_2015`/`rust_2018` helpers to comparing editions
17 files changed:
src/librustc/ty/context.rs
src/librustc/ty/item_path.rs
src/librustc_resolve/build_reduced_graph.rs
src/librustc_resolve/error_reporting.rs
src/librustc_resolve/lib.rs
src/librustc_resolve/macros.rs
src/libsyntax/parse/parser.rs
src/libsyntax_pos/lib.rs
src/libsyntax_pos/symbol.rs
src/test/ui-fulldeps/proc-macro/auxiliary/edition-imports-2015.rs [new file with mode: 0644]
src/test/ui-fulldeps/proc-macro/edition-imports-2018.rs [new file with mode: 0644]
src/test/ui/editions/auxiliary/absolute.rs [new file with mode: 0644]
src/test/ui/editions/auxiliary/edition-imports-2015.rs [new file with mode: 0644]
src/test/ui/editions/auxiliary/edition-imports-2018.rs [new file with mode: 0644]
src/test/ui/editions/edition-imports-2015.rs [new file with mode: 0644]
src/test/ui/editions/edition-imports-2015.stderr [new file with mode: 0644]
src/test/ui/editions/edition-imports-2018.rs [new file with mode: 0644]