rust/src/librustdoc/html/render
Mara Bos 2dbb2f7420
Rollup merge of #87178 - moxian:rd-use, r=jyn514
[rustdoc] Copy only item path to clipboard rather than full `use` statement.

The (somewhat) recent addition of the "copy item import to clipboard" button is extremely nice.

However, i tend to write my code with fully qualified paths wherever feasible and only resort to `use` statements as a refactoring pass. This makes the "copy to clipboard" workflow awkward to use, as i would be copy-pasting that as, say

```rust
impl use std::ops::Add; for MyType {
```

and then go back  and remove the `use ` and `;`.

This PR removes the `use ;` decorations, making it much nicer to use for fully-qualified items. I argue, however, that this does not noticeably degrade experience for those who prefer to import items, since the hard part about those is getting the path right, and writing the `use ;` decoration can be done by hand with little effort.
2021-08-16 23:37:25 +02:00
..
cache.rs don't use .into() to convert types to identical types (clippy::useless_conversion) 2021-08-03 10:17:57 +02:00
context.rs Remove LightSpan and use Span directly 2021-08-05 23:08:29 +02:00
mod.rs Remove LightSpan and use Span directly 2021-08-05 23:08:29 +02:00
print_item.rs Rollup merge of #87178 - moxian:rd-use, r=jyn514 2021-08-16 23:37:25 +02:00
span_map.rs Remove LightSpan and use Span directly 2021-08-05 23:08:29 +02:00
tests.rs Corrected imports for render tests and mod files 2021-03-04 10:25:00 -08:00
write_shared.rs Add links on source types to go to definition 2021-08-05 23:08:27 +02:00