Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
38ddb44
Check for deadlinks from the summary during book generation
est31 Jan 14, 2018
f4bcfc5
Fixes sparc64 cabi fixes.
psumbera Jan 18, 2018
af632bc
Removed uneeded change.
psumbera Jan 18, 2018
1203b3d
Removed uneeded argument to make_indirect.
psumbera Jan 18, 2018
66d53ca
Make liballoc_jemalloc work on CloudABI.
EdSchouten Jan 18, 2018
ebfa6c7
Change the --unpretty flag to -Z unpretty
mark-i-m Jan 15, 2018
db41f1e
Add rustc-args option to test runner
spastorino Jan 18, 2018
101f1e1
Add regression test for #29723
Manishearth Jan 18, 2018
2975955
s/foo/main/
nikomatsakis Jan 19, 2018
9d629c6
add ERROR annotation
nikomatsakis Jan 19, 2018
67f922b
fix line
nikomatsakis Jan 19, 2018
e2f6b28
Update DW_OP_plus to DW_OP_plus_uconst
cuviper Jan 20, 2018
e47cc69
Add testing coverage for assigning to immutable thread-locals.
EdSchouten Jan 20, 2018
643e71e
Remove the IGNORED_ATTR_NAMES thread local
Zoxc Dec 3, 2017
e1bffbd
Fix spurious warning on empty proc macro crates
etaoins Jan 22, 2018
c3fabce
Inline some rustc_driver function
bjorn3 Jan 22, 2018
90aef18
Add dynamic-drop test to nll tests also
spastorino Jan 22, 2018
7cc3cb2
Fix quoted search
GuillaumeGomez Jan 22, 2018
04a8847
rustdoc: Show when traits are auto traits
ollie27 Jan 23, 2018
116fb72
Rollup merge of #47423 - est31:rustbook_checking, r=alexcrichton
kennytm Jan 23, 2018
0c9b3ec
Rollup merge of #47425 - EdSchouten:immutable-tls, r=nikomatsakis
kennytm Jan 23, 2018
150f2ba
Rollup merge of #47440 - mark-i-m:zunpretty, r=nikomatsakis
kennytm Jan 23, 2018
82981a7
Rollup merge of #47541 - psumbera:master, r=eddyb
kennytm Jan 23, 2018
658ccae
Rollup merge of #47549 - Manishearth:29723-regression, r=nikomatsakis
kennytm Jan 23, 2018
60b987d
Rollup merge of #47554 - EdSchouten:cloudabi-jemalloc, r=nikomatsakis
kennytm Jan 23, 2018
52f8d2d
Rollup merge of #47558 - spastorino:rustc_args, r=nikomatsakis
kennytm Jan 23, 2018
cb0a8bf
Rollup merge of #47610 - cuviper:captured-dwarf, r=eddyb
kennytm Jan 23, 2018
9d26a25
Rollup merge of #47635 - Zoxc:remove-attr, r=michaelwoerister
kennytm Jan 23, 2018
117eb68
Rollup merge of #47655 - etaoins:fix-spurious-warning-on-empty-proc-m…
kennytm Jan 23, 2018
6dcaa0a
Rollup merge of #47661 - bjorn3:refactor_driver, r=michaelwoerister
kennytm Jan 23, 2018
4cc2f96
Rollup merge of #47662 - spastorino:add_test_to_nll, r=nikomatsakis
kennytm Jan 23, 2018
9735864
Rollup merge of #47667 - GuillaumeGomez:fix-quoted-search, r=QuietMis…
kennytm Jan 23, 2018
9707b31
Rollup merge of #47672 - ollie27:rustdoc_auto_traits, r=GuillaumeGomez
kennytm Jan 23, 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
Prev Previous commit
Next Next commit
Fix quoted search
  • Loading branch information
GuillaumeGomez committed Jan 22, 2018
commit 7cc3cb29bdbf1c22e2bb5be6ae3798029de3d4d8
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@
var lev_distance = MAX_LEV_DISTANCE + 1;
if (obj.name === val.name) {
if (literalSearch === true) {
if (val.generics.length !== 0) {
if (val.generics && val.generics.length !== 0) {
if (obj.generics && obj.length >= val.generics.length) {
var elems = obj.generics.slice(0);
var allFound = true;
Expand Down Expand Up @@ -637,7 +637,7 @@
}
// Names didn't match so let's check if one of the generic types could.
if (literalSearch === true) {
if (obj.generics.length > 0) {
if (obj.generics && obj.generics.length > 0) {
for (var x = 0; x < obj.generics.length; ++x) {
if (obj.generics[x] === val.name) {
return true;
Expand Down
23 changes: 23 additions & 0 deletions src/test/rustdoc-js/quoted.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

const QUERY = '"error"';

const EXPECTED = {
'others': [
{ 'path': 'std', 'name': 'error' },
{ 'path': 'std::fmt', 'name': 'Error' },
{ 'path': 'std::io', 'name': 'Error' },
],
'in_args': [],
'returned': [
{ 'path': 'std::fmt::LowerExp', 'name': 'fmt' },
],
};