rust/src/librustc_resolve
bors 17f56c549c Auto merge of #44215 - oli-obk:import_sugg, r=nrc
don't suggest placing `use` statements into expanded code

r? @nrc

fixes #44210

```rust
#[derive(Debug)]
struct Foo;

type X = Path;
```

will try to place `use std::path::Path;` between `#[derive(Debug)]` and `struct Foo;`

I am not sure how to obtain a span before the first attribute, because derive attributes are removed during expansion.

It would be trivial to detect this case and place the `use` after the item, but that would be somewhat weird I think.
2017-09-21 20:12:22 +00:00
..
build_reduced_graph.rs Remove the cstore reference from Session in order to prepare encapsulating CrateStore access in tcx. 2017-09-12 07:19:06 -07:00
Cargo.toml Remove internal liblog 2017-03-23 11:28:00 -07:00
check_unused.rs Address review comments, second turn 2017-08-27 19:02:24 +09:00
diagnostics.rs Remove more anonymous trait method parameters 2017-07-08 01:56:27 +03:00
lib.rs Auto merge of #44215 - oli-obk:import_sugg, r=nrc 2017-09-21 20:12:22 +00:00
macros.rs Remove the cstore reference from Session in order to prepare encapsulating CrateStore access in tcx. 2017-09-12 07:19:06 -07:00
resolve_imports.rs Remove the cstore reference from Session in order to prepare encapsulating CrateStore access in tcx. 2017-09-12 07:19:06 -07:00