rust/src/test
bors 3d2fc456a9 Auto merge of #53988 - eddyb:issue-53770, r=petrochenkov
rustc_resolve: only prepend CrateRoot to a non-keyword segment.

Fixes #53770 by treating `use` paths as absolute in a finer-grained manner, specifically:
```rust
use {a, crate::b, self::c, super::d};
```
Used to be interpreted as if it were (when `uniform_paths` is not enabled):
```rust
use ::{a, crate::b, self::c, super::d};
```
With this PR, the `CrateRoot` pseudo-keyword indicating an absolute path is only inserted when the first path segment is found (if it's not a keyword), i.e. the example behaves like:
```rust
use {::a, crate::b, self::c, super::d};
```
This should (finally) make `use {path};` fully equivalent to `use path;`.

r? @petrochenkov cc @cramertj @joshtriplett @nikomatsakis
2018-09-09 06:25:13 +00:00
..
auxiliary
codegen Restrict most uses of const_fn to min_const_fn 2018-08-31 08:40:00 +02:00
codegen-units Restrict most uses of const_fn to min_const_fn 2018-08-31 08:40:00 +02:00
compile-fail stabilize #[panic_handler] 2018-09-07 13:27:30 +02:00
compile-fail-fulldeps Update tests 2018-08-31 00:47:09 -07:00
debuginfo pretty printing for btreemap 2018-08-15 13:48:10 +09:00
incremental Introduce Custom Test Frameworks 2018-09-04 22:33:00 -07:00
incremental-fulldeps use an incremental-fulldeps test instead of a run-make test 2018-08-26 18:48:41 +03:00
mir-opt Auto merge of #53909 - mikhail-m1:53643, r=nikomatsakis 2018-09-08 19:57:14 +00:00
parse-fail Fix existing test 2018-09-05 07:03:02 -07:00
pretty Stabilize 'attr_literals' feature. 2018-08-23 19:06:07 -07:00
run-fail Restrict most uses of const_fn to min_const_fn 2018-08-31 08:40:00 +02:00
run-fail-fulldeps mv (mod) codemap source_map 2018-08-19 23:01:00 +02:00
run-make rustc: Continue to tweak "std internal symbols" 2018-08-26 16:34:14 -07:00
run-make-fulldeps Auto merge of #54051 - kennytm:rollup, r=kennytm 2018-09-08 11:53:21 +00:00
run-pass Rollup merge of #53993 - eddyb:issue-53691, r=petrochenkov 2018-09-08 18:26:44 +08:00
run-pass-fulldeps Rename hir::map::NodeKind to hir::Node 2018-08-27 21:46:23 +01:00
run-pass-valgrind Implement simple codegen for unsized rvalues. 2018-08-19 08:07:33 +09:00
rustdoc Fix hover on impls 2018-09-06 23:32:30 +02:00
rustdoc-js Auto merge of #53227 - nivkner:pin_move, r=RalfJung 2018-08-27 22:56:15 +00:00
rustdoc-ui Rollup merge of #52835 - GuillaumeGomez:ice-rustdoc-links, r=eddyb 2018-08-01 21:46:27 +02:00
rustfix
ui Auto merge of #53988 - eddyb:issue-53770, r=petrochenkov 2018-09-09 06:25:13 +00:00
ui-fulldeps deprcated -> deprecated 2018-09-01 21:45:44 +05:30
COMPILER_TESTS.md Link compiler test documentation to rustc-guide 2018-08-10 08:05:48 -06:00