Skip to content

Commit 0964ede

Browse files
---
yaml --- r: 225973 b: refs/heads/stable c: 98205af h: refs/heads/master i: 225971: 0379f25 v: v3
1 parent 05a249c commit 0964ede

File tree

5 files changed

+49
-38
lines changed

5 files changed

+49
-38
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 812a3f044f82715016bbe134b334491db32bb149
32+
refs/heads/stable: 98205afe0b09b22e9d88968ed61095b15fcfb1e3
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/librustc_trans/trans/base.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -756,12 +756,7 @@ pub fn invoke<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
756756
}
757757

758758
pub fn need_invoke(bcx: Block) -> bool {
759-
// FIXME(#25869) currently unwinding is not implemented for MSVC and our
760-
// normal unwinding infrastructure ends up just causing linker
761-
// errors with the current LLVM implementation, so landing
762-
// pads are disabled entirely for MSVC targets
763-
if bcx.sess().no_landing_pads() ||
764-
bcx.sess().target.target.options.is_like_msvc {
759+
if bcx.sess().no_landing_pads() {
765760
return false;
766761
}
767762

branches/stable/src/librustc_typeck/diagnostics.rs

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,53 @@ Reference:
211211
http://doc.rust-lang.org/reference.html#trait-objects
212212
"##,
213213

214+
E0036: r##"
215+
This error occurred when you pass too many or not enough type parameters to a
216+
method. Example:
217+
218+
```
219+
struct Test;
220+
221+
impl Test {
222+
fn method<T>(&self, v: &[T]) -> usize {
223+
v.len()
224+
}
225+
}
226+
227+
fn main() {
228+
let x = Test;
229+
let v = &[0i32];
230+
231+
x.method::<i32, i32>(v); // error: only one type parameter is expected!
232+
}
233+
```
234+
235+
To fix it, just specify a correct number of type parameters:
236+
237+
```
238+
struct Test;
239+
240+
impl Test {
241+
fn method<T>(&self, v: &[T]) -> usize {
242+
v.len()
243+
}
244+
}
245+
246+
fn main() {
247+
let x = Test;
248+
let v = &[0i32];
249+
250+
x.method::<i32>(v); // OK, we're good!
251+
}
252+
```
253+
254+
Please note on the last example that we could have called `method` like this:
255+
256+
```
257+
x.method(v);
258+
```
259+
"##,
260+
214261
E0040: r##"
215262
It is not allowed to manually call destructors in Rust. It is also not
216263
necessary to do this since `drop` is called automatically whenever a value goes

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,6 @@
571571
return;
572572
}
573573

574-
// Update document title to maintain a meaningful browser history
575-
$(document).prop("title", "Results for " + query.query + " - Rust");
576-
577574
// Because searching is incremental by character, only the most
578575
// recent search query is added to the browser history.
579576
if (browserSupportsHistoryApi()) {

branches/stable/src/test/run-pass/issue-21622.rs

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)