Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 11 pull requests #56557

Merged
merged 39 commits into from
Dec 6, 2018
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
50b4eef
rustdoc: Fix inlining reexported custom derives
weiznich Nov 28, 2018
230f5d5
rustdoc: Fix inlining reexporting bang-macros
weiznich Nov 28, 2018
dd717de
Add crate filtering
GuillaumeGomez Sep 30, 2018
8062c7a
Add test for crate filtering
GuillaumeGomez Sep 30, 2018
afe4107
Add arrow to the crate select box
GuillaumeGomez Nov 29, 2018
f1f6d87
Stabilise exhaustive_integer_patterns
varkor Nov 30, 2018
e018268
Add precise_pointer_size_matching feature
varkor Nov 30, 2018
4fc5758
Update existing tests with more precise error messages
varkor Nov 30, 2018
0fb52fb
Separate out precise_pointer_size_matching tests from exhaustive_inte…
varkor Nov 30, 2018
4406391
Fix bug in matching on floating-point ranges
varkor Nov 30, 2018
3b705a0
rustbuild: Fix issues with compiler docs
ollie27 Dec 2, 2018
59e9a1e
pass the parameter environment to `traits::find_associated_item`
arielb1 Dec 2, 2018
101467c
syntax: `dyn` is a used keyword now
petrochenkov Dec 2, 2018
08f8fae
syntax: Rename some keywords
petrochenkov Dec 2, 2018
d415844
syntax: Remove `#[non_exhaustive]` from `Edition`
petrochenkov Dec 2, 2018
3f253f5
Improve filter test
GuillaumeGomez Dec 3, 2018
d08f7dc
Address review comments
petrochenkov Dec 2, 2018
11fb023
Allow renaming macro
weiznich Dec 4, 2018
9d4e17a
Remove support for proc macro doc inlining
weiznich Dec 4, 2018
956b03f
Add a test case for inlining the docs of a macro reexport
weiznich Dec 4, 2018
d0c64bb
cleanup: remove static lifetimes from consts
ljedrz Dec 4, 2018
3512fb0
Avoid extra copy and syscall in std::env::current_exe
udoprog Dec 5, 2018
6cfbb5b
Remove unused dependency (rustc_lint -> rustc_mir)
sinkuu Dec 5, 2018
ed64b19
Fix precise_pointer_size_matching tests on all platforms
varkor Dec 5, 2018
180dcc3
Optimized string FromIterator impls
Lucretiel Dec 5, 2018
823dd8c
Fixed mutability
Lucretiel Dec 5, 2018
811a2bf
Added explainatory comments
Lucretiel Dec 6, 2018
3858aff
Don't print the profiling summary to stdout when -Zprofile-json is set
wesleywiser Dec 6, 2018
3073c7a
Rollup merge of #56315 - weiznich:rustdoc_inline_macro_reexport, r=Qu…
pietroalbini Dec 6, 2018
a88feab
Rollup merge of #56332 - GuillaumeGomez:specifi-crate-search, r=Quiet…
pietroalbini Dec 6, 2018
e57ed0d
Rollup merge of #56362 - varkor:stabilise-exhaustive-integer-patterns…
pietroalbini Dec 6, 2018
0aa72ad
Rollup merge of #56426 - petrochenkov:syntweak, r=nikomatsakis
pietroalbini Dec 6, 2018
0be8537
Rollup merge of #56441 - ollie27:rustbuild_compiler_docs, r=alexcrichton
pietroalbini Dec 6, 2018
50148a9
Rollup merge of #56446 - arielb1:special-env-implications, r=nikomats…
pietroalbini Dec 6, 2018
e941e1a
Rollup merge of #56500 - ljedrz:cleanup_rest_of_const_lifetimes, r=za…
pietroalbini Dec 6, 2018
bd8dd11
Rollup merge of #56525 - udoprog:linux-current-exe, r=alexcrichton
pietroalbini Dec 6, 2018
9e7ff56
Rollup merge of #56528 - sinkuu:unused_dep, r=Mark-Simulacrum
pietroalbini Dec 6, 2018
e9e92d5
Rollup merge of #56548 - Lucretiel:string-extend-optimize, r=sfackler
pietroalbini Dec 6, 2018
cd1ee5e
Rollup merge of #56553 - wesleywiser:silence_profiler_output, r=Mark-…
pietroalbini Dec 6, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/librustdoc/html/layout.rs
Original file line number Diff line number Diff line change
@@ -57,6 +57,9 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
{css_extension}\
{favicon}\
{in_header}\
<style type=\"text/css\">\
#crate-search{{background-image:url(\"{root_path}down-arrow{suffix}.svg\");}}\
</style>\
</head>\
<body class=\"rustdoc {css_class}\">\
<!--[if lte IE 8]>\
2 changes: 2 additions & 0 deletions src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
@@ -793,6 +793,8 @@ fn write_shared(
static_files::BRUSH_SVG)?;
write(cx.dst.join(&format!("wheel{}.svg", cx.shared.resource_suffix)),
static_files::WHEEL_SVG)?;
write(cx.dst.join(&format!("down-arrow{}.svg", cx.shared.resource_suffix)),
static_files::DOWN_ARROW_SVG)?;
write_minify(cx.dst.join(&format!("light{}.css", cx.shared.resource_suffix)),
static_files::themes::LIGHT,
options.enable_minification)?;
1 change: 1 addition & 0 deletions src/librustdoc/html/static/down-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
@@ -621,7 +621,7 @@ a {
#crate-search {
margin-top: 5px;
padding: 6px;
padding-right: 12px;
padding-right: 19px;
border: 0;
border-right: 0;
border-radius: 4px 0 0 4px;
@@ -633,6 +633,10 @@ a {
/* Removes default arrow from firefox */
text-indent: 0.01px;
text-overflow: "";
background-repeat: no-repeat;
background-color: transparent;
background-size: 16%;
background-position: calc(100% - 1px) 56%;
}
.search-container > .top-button {
position: absolute;
3 changes: 3 additions & 0 deletions src/librustdoc/html/static_files.rs
Original file line number Diff line number Diff line change
@@ -45,6 +45,9 @@ pub static BRUSH_SVG: &'static [u8] = include_bytes!("static/brush.svg");
/// The file contents of `wheel.svg`, the icon used for the settings button.
pub static WHEEL_SVG: &'static [u8] = include_bytes!("static/wheel.svg");

/// The file contents of `down-arrow.svg`, the icon used for the crate choice combobox.
pub static DOWN_ARROW_SVG: &'static [u8] = include_bytes!("static/down-arrow.svg");

/// The contents of `COPYRIGHT.txt`, the license listing for files distributed with documentation
/// output.
pub static COPYRIGHT: &'static [u8] = include_bytes!("static/COPYRIGHT.txt");