bors
b5b3a99f84
Auto merge of #26190 - Veedrac:no-iter, r=alexcrichton
...
Pull request for #26188 .
2015-06-11 18:10:08 +00:00
Joshua Landau
d7f5fa4636
Conver reborrows to .iter() calls where appropriate
2015-06-11 13:56:07 +01:00
bors
fc9e424550
Auto merge of #26172 - nham:add_E0116, r=alexcrichton
...
Also improves the wording of the E0133 description.
cc #24407
2015-06-11 10:06:38 +00:00
Joshua Landau
ca7418b846
Removed many pointless calls to *iter() and iter_mut()
2015-06-10 21:14:03 +01:00
bors
ae8a3c92a7
Auto merge of #26182 - Manishearth:rollup, r=Manishearth
...
- Successful merges: #26142 , #26143 , #26145 , #26146 , #26164 , #26174
- Failed merges:
2015-06-10 18:41:42 +00:00
Manish Goregaokar
7d9427e6cd
Rollup merge of #26146 - steveklabnik:remove_unsafe_pointer, r=Gankro
...
Using two terms for one thing is confusing, these are called 'raw pointers' today.
2015-06-10 22:07:10 +05:30
Manish Goregaokar
32e96aa165
Rollup merge of #26143 - steveklabnik:gh25851, r=alexcrichton
...
Still some references left to this old term, I've updated them to say boxes.
Related to #25851
2015-06-10 22:07:09 +05:30
bors
d8a9570154
Auto merge of #26141 - eddyb:ast_map, r=nikomatsakis
...
Gets libsyntax one step closer to running on stable (see #24518 ).
Closes #24757 , erickt's previous attempt at this.
2015-06-10 11:38:04 +00:00
Nick Hamann
aace3675b7
Revise E0133 description.
...
Tweaks some of the wording so it reads better.
2015-06-10 02:18:53 -05:00
bors
172cd83490
Auto merge of #26058 - Kimundi:issue15609, r=nikomatsakis
...
Closes #15609
2015-06-10 03:15:16 +00:00
bors
5ea3ed0fd0
Auto merge of #26055 - arielb1:smart-fold, r=nikomatsakis
...
Before:
581.72user 4.75system 7:42.74elapsed 126%CPU (0avgtext+0avgdata 1176224maxresident)k
llvm took 359.183
After:
550.63user 5.09system 7:20.28elapsed 126%CPU (0avgtext+0avgdata 1165516maxresident)k
llvm took 354.801
2015-06-10 01:44:59 +00:00
Eduard Burtescu
76eaed44d9
syntax: move ast_map to librustc.
2015-06-10 02:40:45 +03:00
Steve Klabnik
2c75256c15
Exise 'unsafe pointer' in favor of 'raw pointer'
...
Using two terms for one thing is confusing, these are called 'raw pointers' today.
2015-06-09 16:49:24 -04:00
Steve Klabnik
a3cd5eb1bd
Exise 'owned pointer' from the codebase
...
Still some references left to this old term, I've updated them to say boxes.
Related to #25851
2015-06-09 16:26:21 -04:00
Andrew Straw
1fff553fe7
fix comments in example about types
2015-06-09 20:49:52 +02:00
Marvin Löbel
d6b7ca041a
Made ref pattern bindings correctly pick Deref or DerefMut
...
Added LvaluePreference::from_mutbl
Closes #15609
2015-06-09 16:02:00 +02:00
Manish Goregaokar
4b5ac524f3
Rollup merge of #26099 - TheNeikos:fix-old_array_syntax_in_comments, r=alexcrichton
...
As per RFC#520 the syntax for arrays has changed,
this changes the remaining comments to reflect
the new syntax.
I checked for existing occurences of this with the following command:
`ag "\[., \.\..\]"` which by now should only return a single occurence.
2015-06-09 05:42:28 +05:30
bors
02c33b690b
Auto merge of #26077 - SimonSapin:patch-6, r=alexcrichton
...
With the latter is provided by the `From` conversion trait, the former is now completely redundant. Their code is identical. Let’s deprecate now and plan to remove in the next cycle. (It’s `#[unstable]`.)
r? @alexcrichton
CC @nagisa
2015-06-08 20:52:33 +00:00
bors
4e14ef0516
Auto merge of #26044 - nagisa:canonicalize-metadata-loader, r=alexcrichton
...
This might fail when --extern library is a symlink to an invalid location. Instead just pretend it
doesn’t exist at all.
Fixes #26006
2015-06-08 17:44:30 +00:00
Marcel Müller
ebc3de22d8
Fixed old occurences of the removed array syntax
...
As per RFC#520 the syntax for arrays has changed,
this changes the remaining comments to reflect
the new syntax.
2015-06-08 17:58:08 +02:00
Simon Sapin
c160192f5f
Replace usage of String::from_str with String:from
2015-06-08 16:55:35 +02:00
bors
1ade076f62
Auto merge of #26029 - GuillaumeGomez:const_check, r=Manishearth
...
Part of #24407 .
2015-06-08 09:54:32 +00:00
Ariel Ben-Yehuda
39b9bea4ba
Skip useless recursion in freshening and late-bound-region substitutio
...
Before:
581.72user 4.75system 7:42.74elapsed 126%CPU (0avgtext+0avgdata 1176224maxresident)k
llvm took 359.183
After:
550.63user 5.09system 7:20.28elapsed 126%CPU (0avgtext+0avgdata 1165516maxresident)k
llvm took 354.801
2015-06-08 12:29:22 +03:00
Guillaume Gomez
ae550bd987
Add error explanation for E0014
2015-06-08 08:18:03 +02:00
bors
bea1c4a78e
Auto merge of #25823 - oli-obk:static_to_const_lint, r=alexcrichton
...
r? @eddyb
2015-06-08 04:54:59 +00:00
Nick Cameron
8d9a58131d
error due to rebase
2015-06-08 12:18:42 +12:00
Nick Cameron
83c73e327a
review changes - only show closure ids in verbose mode
2015-06-08 11:41:48 +12:00
Nick Cameron
e9db5fb202
Tidying up, fix some minor linkage bugs, use ty flags to avoid caching closure types.
2015-06-08 11:41:48 +12:00
Oliver 'ker' Schneider
ec078a033b
change some statics to constants
2015-06-07 19:50:13 +02:00
Simonas Kazlauskas
ab86face01
Don’t ICE if fs::canonicalise fails in meta-load
...
This might fail when --extern library is a symlink to an invalid location. Instead just pretend it
doesn’t exist at all.
2015-06-07 20:34:12 +03:00
bors
ae74652b4a
Auto merge of #26057 - audebert:master, r=alexcrichton
...
The constraint referenced here is:
```rust
fn foo<T>(t: T) where T: Trait<AssociatedType=u32> { /* */ }
```
2015-06-07 00:07:07 +00:00
Rémi Audebert
27dd0dda1b
Fix small typo in diagnostics.rs
2015-06-06 18:32:49 +02:00
bors
bfd072db45
Auto merge of #26038 - eddyb:dst-nested, r=luqmana
...
Allows `Rc<RefCell<Trait>>` and other containers. Fixes #25351 .
r? @nrc This is the discussed strategy, more or less.
2015-06-06 15:32:26 +00:00
Eduard Burtescu
01dee1b77e
Allow nested generics for the last field of structs in unsizing.
2015-06-05 20:49:23 +03:00
bors
75fb009c76
Auto merge of #26023 - arielb1:fast-sized, r=eddyb
...
r? @eddyb
The change to `trans::common::type_is_sized` is because we currently abort, rather than return random results, on overflow.
2015-06-05 15:27:34 +00:00
Ariel Ben-Yehuda
595409df06
Introduce a fast-path for type_is_sized/type_moves_by_default
...
This seems to improve performance by the same 2-3% of my selection
fast-path.
2015-06-05 03:50:49 +03:00
bors
e0ca6b1a31
Auto merge of #25975 - arielb1:remove-param-space, r=nikomatsakis
...
r? @nikomatsakis
2015-06-04 21:48:58 +00:00
Ms2ger
f2cca31e3d
Inline enum_variant_ids into its only caller.
2015-06-04 10:12:19 +02:00
Ariel Ben-Yehuda
4b116fe38c
Use a plain Vec instead of VecPerParamSpace in trait selection.
2015-06-04 00:19:18 +03:00
Ms2ger
53897baec8
Remove unused get_enum_variant_defs functions.
2015-06-03 18:58:26 +02:00
bors
dc1e79b3c2
Auto merge of #25926 - Ms2ger:enum_variant_ids, r=alexcrichton
2015-06-02 20:05:49 +00:00
bors
cc85db4ce6
Auto merge of #25868 - alexcrichton:issue-25505, r=brson
...
The compiler already has special support for fixing up verbatim paths with disks
on Windows to something that can be correctly passed down to gcc, and this
commit adds support for verbatim UNC paths as well.
Closes #25505
2015-06-02 16:37:21 +00:00
Guillaume Gomez
dbfc8c5a07
Update diagnostics.rs
2015-06-01 12:33:41 +02:00
Guillaume Gomez
42c5c982c4
Remove full path
2015-06-01 10:46:28 +02:00
Ms2ger
9c837c0450
Return an iterator from enum_variant_ids.
2015-06-01 10:38:29 +02:00
Guillaume Gomez
9eb416b8a4
Add E0011 explanation
2015-05-31 19:34:03 +02:00
Steve Klabnik
c0a41b9999
Rollup merge of #25873 - nham:update_E0015, r=Aatch
...
The E0397 explanation, as I've written it, isn't really an explanation, but I'm not sure what to put here. I will happily take suggestions.
Partially addresses https://github.com/rust-lang/rust/issues/25851
2015-05-29 15:24:47 -04:00
bors
84254948c2
Auto merge of #25880 - nikomatsakis:const-fn-feature-gate-calls, r=alexcrichton
...
The previous feature gate assumed we would not define any (stable) const fns. But then @eddyb went and cleaned up the code. So this now extends the feature-gate to prohibit calls; but calls inside of macros are considered ok.
r? @alexcrichton
2015-05-29 17:38:40 +00:00
Niko Matsakis
2c5e784d6f
add const_fn features
2015-05-29 09:42:54 -04:00
Niko Matsakis
57c75b6b10
permit const-fn in macro expansions
2015-05-29 09:42:54 -04:00