Skip to content

Commit 0ee5560

Browse files
committed
reformat, fix merge conflicts
1 parent 2bc86c5 commit 0ee5560

File tree

6 files changed

+9
-17
lines changed

6 files changed

+9
-17
lines changed

src/librustdoc/html/render/context.rs

-4
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ use rustc_span::edition::Edition;
1414
use rustc_span::{sym, FileName, Symbol};
1515

1616
use super::print_item::{full_path, item_path, print_item};
17-
<<<<<<< HEAD
18-
use super::search_index::build_index;
1917
use super::sidebar::{print_sidebar, sidebar_module_like, Sidebar};
20-
=======
21-
>>>>>>> 164844f3f807 (initial implementation of mergable rustdoc cci)
2218
use super::write_shared::write_shared;
2319
use super::{collect_spans_and_sources, scrape_examples_help, AllTypes, LinkFromSrc, StylePath};
2420
use crate::clean::types::ExternalLocation;

src/librustdoc/html/render/ordered_json.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
use std::borrow::Borrow;
2+
use std::fmt;
3+
14
use itertools::Itertools as _;
25
use serde::{Deserialize, Serialize};
36
use serde_json::Value;
4-
use std::borrow::Borrow;
5-
use std::fmt;
67

78
/// Prerenedered json.
89
///

src/librustdoc/html/render/sorted_template.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
use itertools::{Itertools as _, Position};
21
use std::collections::BTreeSet;
32
use std::fmt::{self, Write as _};
43
use std::marker::PhantomData;
54
use std::str::FromStr;
65

6+
use itertools::{Itertools as _, Position};
77
use serde::{Deserialize, Serialize};
88

99
/// Append-only templates for sorted, deduplicated lists of items.

src/librustdoc/html/render/sorted_template/tests.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use super::super::sorted_template::*;
21
use std::str::FromStr;
32

3+
use super::super::sorted_template::*;
4+
45
fn is_comment_js(s: &str) -> bool {
56
s.starts_with("//")
67
}

src/librustdoc/html/render/write_shared.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ use rustc_middle::ty::fast_reject::{DeepRejectCtxt, TreatParams};
3333
use rustc_middle::ty::TyCtxt;
3434
use rustc_span::def_id::DefId;
3535
use rustc_span::Symbol;
36+
use serde::de::DeserializeOwned;
3637
use serde::ser::SerializeSeq;
37-
use serde::{de::DeserializeOwned, Deserialize, Serialize, Serializer};
38+
use serde::{Deserialize, Serialize, Serializer};
3839

3940
use super::{collect_paths_for_type, ensure_trailing_slash, Context, RenderMode};
4041
use crate::clean::{Crate, Item, ItemId, ItemKind};
@@ -47,8 +48,7 @@ use crate::formats::Impl;
4748
use crate::html::format::Buffer;
4849
use crate::html::layout;
4950
use crate::html::render::ordered_json::{EscapedJson, OrderedJson};
50-
use crate::html::render::search_index::build_index;
51-
use crate::html::render::search_index::SerializedSearchIndex;
51+
use crate::html::render::search_index::{build_index, SerializedSearchIndex};
5252
use crate::html::render::sorted_template::{self, FileFormat, SortedTemplate};
5353
use crate::html::render::{AssocItemLink, ImplRenderingParameters};
5454
use crate::html::static_files::{self, suffix_path};

src/tools/compiletest/src/runtest.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
// ignore-tidy-filelength
22

3-
use crate::read2::{read2_abbreviated, Truncated};
4-
use crate::util::{add_dylib_path, copy_dir_all, dylib_env_var, logv, static_regex, PathBufExt};
5-
use colored::Colorize;
6-
use miropt_test_tools::{files_for_miropt_test, MiroptTest, MiroptTestFile};
7-
use regex::{Captures, Regex};
8-
use std::borrow::Cow;
93
use std::collections::{HashMap, HashSet};
104
use std::ffi::{OsStr, OsString};
115
use std::fs::{self, create_dir_all, File, OpenOptions};

0 commit comments

Comments
 (0)