Skip to content

Commit

Permalink
reformat, fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
EtomicBomb committed Jul 29, 2024
1 parent 2bc86c5 commit 0ee5560
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 17 deletions.
4 changes: 0 additions & 4 deletions src/librustdoc/html/render/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ use rustc_span::edition::Edition;
use rustc_span::{sym, FileName, Symbol};

use super::print_item::{full_path, item_path, print_item};
<<<<<<< HEAD
use super::search_index::build_index;
use super::sidebar::{print_sidebar, sidebar_module_like, Sidebar};
=======
>>>>>>> 164844f3f807 (initial implementation of mergable rustdoc cci)
use super::write_shared::write_shared;
use super::{collect_spans_and_sources, scrape_examples_help, AllTypes, LinkFromSrc, StylePath};
use crate::clean::types::ExternalLocation;
Expand Down
5 changes: 3 additions & 2 deletions src/librustdoc/html/render/ordered_json.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use std::borrow::Borrow;
use std::fmt;

use itertools::Itertools as _;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::borrow::Borrow;
use std::fmt;

/// Prerenedered json.
///
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/render/sorted_template.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use itertools::{Itertools as _, Position};
use std::collections::BTreeSet;
use std::fmt::{self, Write as _};
use std::marker::PhantomData;
use std::str::FromStr;

use itertools::{Itertools as _, Position};
use serde::{Deserialize, Serialize};

/// Append-only templates for sorted, deduplicated lists of items.
Expand Down
3 changes: 2 additions & 1 deletion src/librustdoc/html/render/sorted_template/tests.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use super::super::sorted_template::*;
use std::str::FromStr;

use super::super::sorted_template::*;

fn is_comment_js(s: &str) -> bool {
s.starts_with("//")
}
Expand Down
6 changes: 3 additions & 3 deletions src/librustdoc/html/render/write_shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ use rustc_middle::ty::fast_reject::{DeepRejectCtxt, TreatParams};
use rustc_middle::ty::TyCtxt;
use rustc_span::def_id::DefId;
use rustc_span::Symbol;
use serde::de::DeserializeOwned;
use serde::ser::SerializeSeq;
use serde::{de::DeserializeOwned, Deserialize, Serialize, Serializer};
use serde::{Deserialize, Serialize, Serializer};

use super::{collect_paths_for_type, ensure_trailing_slash, Context, RenderMode};
use crate::clean::{Crate, Item, ItemId, ItemKind};
Expand All @@ -47,8 +48,7 @@ use crate::formats::Impl;
use crate::html::format::Buffer;
use crate::html::layout;
use crate::html::render::ordered_json::{EscapedJson, OrderedJson};
use crate::html::render::search_index::build_index;
use crate::html::render::search_index::SerializedSearchIndex;
use crate::html::render::search_index::{build_index, SerializedSearchIndex};
use crate::html::render::sorted_template::{self, FileFormat, SortedTemplate};
use crate::html::render::{AssocItemLink, ImplRenderingParameters};
use crate::html::static_files::{self, suffix_path};
Expand Down
6 changes: 0 additions & 6 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
// ignore-tidy-filelength

use crate::read2::{read2_abbreviated, Truncated};
use crate::util::{add_dylib_path, copy_dir_all, dylib_env_var, logv, static_regex, PathBufExt};
use colored::Colorize;
use miropt_test_tools::{files_for_miropt_test, MiroptTest, MiroptTestFile};
use regex::{Captures, Regex};
use std::borrow::Cow;
use std::collections::{HashMap, HashSet};
use std::ffi::{OsStr, OsString};
use std::fs::{self, create_dir_all, File, OpenOptions};
Expand Down

0 comments on commit 0ee5560

Please sign in to comment.