Skip to content

Commit 6a36019

Browse files
committed
Auto merge of #46696 - kennytm:rollup, r=kennytm
Rollup of 4 pull requests - Successful merges: #46668, #46672, #46691, #46694 - Failed merges:
2 parents 707d070 + 80d1de9 commit 6a36019

File tree

5 files changed

+34
-10
lines changed

5 files changed

+34
-10
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: shell
22
sudo: required
33
dist: trusty
4+
group: deprecated-2017Q4
45
services:
56
- docker
67

src/librustdoc/html/static/main.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -911,24 +911,24 @@
911911
searchWords[j].replace(/_/g, "").indexOf(val) > -1)
912912
{
913913
// filter type: ... queries
914-
if (typePassesFilter(typeFilter, ty) && results[fullId] === undefined) {
914+
if (typePassesFilter(typeFilter, ty.ty) && results[fullId] === undefined) {
915915
index = searchWords[j].replace(/_/g, "").indexOf(val);
916916
}
917917
}
918918
if ((lev = levenshtein(searchWords[j], val)) <= MAX_LEV_DISTANCE) {
919-
if (typePassesFilter(typeFilter, ty) === false) {
919+
if (typePassesFilter(typeFilter, ty.ty) === false) {
920920
lev = MAX_LEV_DISTANCE + 1;
921921
} else {
922922
lev += 1;
923923
}
924924
}
925925
if ((in_args = findArg(ty, valGenerics)) <= MAX_LEV_DISTANCE) {
926-
if (typePassesFilter(typeFilter, ty) === false) {
926+
if (typePassesFilter(typeFilter, ty.ty) === false) {
927927
in_args = MAX_LEV_DISTANCE + 1;
928928
}
929929
}
930930
if ((returned = checkReturned(ty, valGenerics)) <= MAX_LEV_DISTANCE) {
931-
if (typePassesFilter(typeFilter, ty) === false) {
931+
if (typePassesFilter(typeFilter, ty.ty) === false) {
932932
returned = MAX_LEV_DISTANCE + 1;
933933
}
934934
}

src/librustdoc/html/static/rustdoc.css

+14-4
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ span.since {
822822
margin-left: -15px;
823823
padding: 0 15px;
824824
position: static;
825+
z-index: 1;
825826
}
826827

827828
.sidebar > .location {
@@ -848,25 +849,34 @@ span.since {
848849
}
849850

850851
.sidebar-menu {
851-
position: absolute;
852+
position: fixed;
853+
z-index: 10;
852854
font-size: 2rem;
853855
cursor: pointer;
854-
margin-top: 2px;
856+
width: 45px;
857+
left: 0;
858+
text-align: center;
855859
display: block;
860+
border-bottom: 1px solid;
861+
border-right: 1px solid;
856862
}
857863

858864
.sidebar-elems {
859-
background-color: #F1F1F1;
860865
position: fixed;
861866
z-index: 1;
862867
left: 0;
863868
top: 45px;
864869
bottom: 0;
865870
overflow-y: auto;
866-
border-right: 1px solid #000;
871+
border-right: 1px solid;
867872
display: none;
868873
}
869874

875+
.sidebar > .block.version {
876+
border-bottom: none;
877+
margin-top: 12px;
878+
}
879+
870880
nav.sub {
871881
margin: 0 auto;
872882
}

src/librustdoc/html/static/styles/main.css

+13
Original file line numberDiff line numberDiff line change
@@ -330,3 +330,16 @@ pre.ignore:hover, .information:hover + pre.ignore {
330330
.modal-content > .close:hover + .whiter {
331331
background-color: #ff1f1f;
332332
}
333+
334+
@media (max-width: 700px) {
335+
.sidebar-menu {
336+
background-color: #F1F1F1;
337+
border-bottom-color: #e0e0e0;
338+
border-right-color: #e0e0e0;
339+
}
340+
341+
.sidebar-elems {
342+
background-color: #F1F1F1;
343+
border-right-color: #000;
344+
}
345+
}

src/rustllvm/RustWrapper.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ extern "C" void LLVMRustAddModuleFlag(LLVMModuleRef M, const char *Name,
566566
unwrap(M)->addModuleFlag(Module::Warning, Name, Value);
567567
}
568568

569-
extern "C" void LLVMRustMetadataAsValue(LLVMContextRef C, LLVMMetadataRef MD) {
570-
wrap(MetadataAsValue::get(*unwrap(C), unwrap(MD)));
569+
extern "C" LLVMValueRef LLVMRustMetadataAsValue(LLVMContextRef C, LLVMMetadataRef MD) {
570+
return wrap(MetadataAsValue::get(*unwrap(C), unwrap(MD)));
571571
}
572572

573573
extern "C" LLVMRustDIBuilderRef LLVMRustDIBuilderCreate(LLVMModuleRef M) {

0 commit comments

Comments
 (0)