diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-29 08:13:50 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-29 08:26:52 +1000 |
| commit | 84ac80f1921afc243d71fd0caaa4f2838c294102 (patch) | |
| tree | 29006db815bf547dfd0129910b23b8c54675bd98 /src/librustdoc/scrape_examples.rs | |
| parent | 118f9350c5b902e462a6dcc4325670f3da701600 (diff) | |
| download | rust-84ac80f1921afc243d71fd0caaa4f2838c294102.tar.gz rust-84ac80f1921afc243d71fd0caaa4f2838c294102.zip | |
Reformat `use` declarations.
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
Diffstat (limited to 'src/librustdoc/scrape_examples.rs')
| -rw-r--r-- | src/librustdoc/scrape_examples.rs | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/src/librustdoc/scrape_examples.rs b/src/librustdoc/scrape_examples.rs index 5a595e03953..f001fb26b81 100644 --- a/src/librustdoc/scrape_examples.rs +++ b/src/librustdoc/scrape_examples.rs @@ -1,35 +1,27 @@ //! This module analyzes crates to find call sites that can serve as examples in the documentation. -use crate::clean; -use crate::config; -use crate::formats; -use crate::formats::renderer::FormatRenderer; -use crate::html::render::Context; +use std::fs; +use std::path::PathBuf; use rustc_data_structures::fx::FxHashMap; use rustc_errors::DiagCtxtHandle; -use rustc_hir::{ - self as hir, - intravisit::{self, Visitor}, -}; +use rustc_hir::intravisit::{self, Visitor}; +use rustc_hir::{self as hir}; use rustc_interface::interface; use rustc_macros::{Decodable, Encodable}; use rustc_middle::hir::map::Map; use rustc_middle::hir::nested_filter; use rustc_middle::ty::{self, TyCtxt}; -use rustc_serialize::{ - opaque::{FileEncoder, MemDecoder}, - Decodable, Encodable, -}; +use rustc_serialize::opaque::{FileEncoder, MemDecoder}; +use rustc_serialize::{Decodable, Encodable}; use rustc_session::getopts; -use rustc_span::{ - def_id::{CrateNum, DefPathHash, LOCAL_CRATE}, - edition::Edition, - BytePos, FileName, SourceFile, -}; +use rustc_span::def_id::{CrateNum, DefPathHash, LOCAL_CRATE}; +use rustc_span::edition::Edition; +use rustc_span::{BytePos, FileName, SourceFile}; -use std::fs; -use std::path::PathBuf; +use crate::formats::renderer::FormatRenderer; +use crate::html::render::Context; +use crate::{clean, config, formats}; #[derive(Debug, Clone)] pub(crate) struct ScrapeExamplesOptions { |
