Skip to content

Commit d860051

Browse files
committed
---
yaml --- r: 152685 b: refs/heads/try2 c: 677e6ed h: refs/heads/master i: 152683: 9856a86 v: v3
1 parent 88cc6d1 commit d860051

File tree

6 files changed

+54
-11
lines changed

6 files changed

+54
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 22d62fc8e1472fdc30a83bc18c8e10687f7e8c6e
8+
refs/heads/try2: 677e6ed6035b12a3ccb6becc9c9f6ea3d74ce37b
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustdoc/html/layout.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ r##"<!DOCTYPE html>
6363
<div class="search-container">
6464
<input class="search-input" name="search"
6565
autocomplete="off"
66-
placeholder="Click or press 's' to search, '?' for more options..."
66+
placeholder="Click or press 'S' to search, '?' for more options..."
6767
type="search">
6868
</div>
6969
</form>
@@ -82,9 +82,9 @@ r##"<!DOCTYPE html>
8282
<dd>Show this help dialog</dd>
8383
<dt>S</dt>
8484
<dd>Focus the search field</dd>
85-
<dt>&uarr;</dt>
85+
<dt>&larrb;</dt>
8686
<dd>Move up in search results</dd>
87-
<dt>&darr;</dt>
87+
<dt>&rarrb;</dt>
8888
<dd>Move down in search results</dd>
8989
<dt>&#9166;</dt>
9090
<dd>Go to active search result</dd>

branches/try2/src/librustdoc/html/static/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ p a:hover { text-decoration: underline; }
347347
margin-top: -125px;
348348
margin-left: -275px;
349349
width: 550px;
350-
height: 250px;
350+
height: 300px;
351351
border: 1px solid #bfbfbf;
352352
}
353353

branches/try2/src/librustdoc/html/static/main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@
7171
return;
7272
}
7373

74-
if (e.keyCode === 188 && $('#help').hasClass('hidden')) { // question mark
74+
if (e.which === 191 && $('#help').hasClass('hidden')) { // question mark
7575
e.preventDefault();
7676
$('#help').removeClass('hidden');
77-
} else if (e.keyCode === 27) { // esc
77+
} else if (e.which === 27) { // esc
7878
if (!$('#help').hasClass('hidden')) {
7979
e.preventDefault();
8080
$('#help').addClass('hidden');
@@ -83,7 +83,7 @@
8383
$('#search').addClass('hidden');
8484
$('#main').removeClass('hidden');
8585
}
86-
} else if (e.keyCode === 83) { // S
86+
} else if (e.which === 83) { // S
8787
e.preventDefault();
8888
$('.search-input').focus();
8989
}
@@ -361,23 +361,23 @@
361361
$(document).on('keypress.searchnav', function(e) {
362362
var $active = $results.filter('.highlighted');
363363

364-
if (e.keyCode === 38) { // up
364+
if (e.which === 38) { // up
365365
e.preventDefault();
366366
if (!$active.length || !$active.prev()) {
367367
return;
368368
}
369369

370370
$active.prev().addClass('highlighted');
371371
$active.removeClass('highlighted');
372-
} else if (e.keyCode === 40) { // down
372+
} else if (e.which === 40) { // down
373373
e.preventDefault();
374374
if (!$active.length) {
375375
$results.first().addClass('highlighted');
376376
} else if ($active.next().length) {
377377
$active.next().addClass('highlighted');
378378
$active.removeClass('highlighted');
379379
}
380-
} else if (e.keyCode === 13) { // return
380+
} else if (e.which === 13) { // return
381381
e.preventDefault();
382382
if ($active.length) {
383383
document.location.href = $active.find('a').prop('href');
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
pub trait Foo {
12+
fn bar();
13+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// ignore-test FIXME: #3907
12+
// aux-build:trait_typedef_cc.rs
13+
extern crate trait_typedef_cc;
14+
15+
type Foo = trait_typedef_cc::Foo;
16+
17+
struct S {
18+
name: int
19+
}
20+
21+
impl Foo for S {
22+
fn bar() { }
23+
}
24+
25+
pub fn main() {
26+
let s = S {
27+
name: 0
28+
};
29+
s.bar();
30+
}

0 commit comments

Comments
 (0)