Junseok Lee
3419d51199
added local crate struct with priv field to test
2015-02-20 16:16:09 -08:00
Junseok Lee
85069e0529
added 'suggest-private-fields' cfail test
2015-02-20 16:16:09 -08:00
Junseok Lee
838595add0
suggestions no longer include private fields for structs outside local crate. closes #22421
2015-02-20 16:16:09 -08:00
Steve Klabnik
355f35536d
Add examples for iter::range_step
2015-02-20 17:11:06 -05:00
York Xiang
eceab2963d
Fix typo
2015-02-21 05:08:05 +08:00
Tshepang Lekhonkhobe
fd2fdbded1
fix a few 'variable does not need to be mutable' warnings
2015-02-20 22:56:32 +02:00
Alex Crichton
64fe93e49d
std: Tidy up some unsafe impl
s for sync
...
This commit removes many unnecessary `unsafe impl` blocks as well as pushing the
needed implementations to the lowest level possible. I noticed that the bounds
for `RwLock` are a little off when reviewing #22574 and wanted to ensure that we
had our story straight on these implementations.
2015-02-20 12:01:08 -08:00
Alex Crichton
756210a0b9
std: Ensure fs::{DirEntry, ReadDir} are Send/Sync
...
The windows/unix modules were currently inconsistent about the traits being
implemented for `DirEntry` and there isn't much particular reason why the traits
*couldn't* be implemented for `ReadDir` and `DirEntry`, so this commit ensures
that they are implemented.
Closes #22577
2015-02-20 11:51:22 -08:00
Brian Anderson
fcc21b36a3
docs: Explain static dispatch advantage more clearly
2015-02-20 11:41:39 -08:00
Niko Matsakis
68e5bb3f2c
Remove remaining uses of []
. This time I tried to use deref coercions where possible.
2015-02-20 14:08:14 -05:00
Vadim Petrochenkov
5e616dbd21
Tweaks to equality comparisons for slices/arrays/vectors
2015-02-20 20:32:55 +03:00
Valerii Hiora
46b2c9ac7f
iOS: CStr fallout
2015-02-20 18:05:17 +02:00
Simonas Kazlauskas
d99af375d3
Escape some rustdoc strings
2015-02-20 15:59:51 +02:00
Simonas Kazlauskas
888dac97c7
Fix style fallout from 204e2bd442
...
Links in docblock headers also became blue, which was not intended.
2015-02-20 13:54:11 +02:00
Niko Matsakis
42e155e13b
make span on obsolete syntax very precise
2015-02-20 05:35:52 -05:00
Sébastien Marie
082bf7fd0c
unbreak openbsd build after 1860ee52
...
The commit 1860ee52
has break the openbsd build.
Repair it.
2015-02-20 11:03:53 +01:00
Dan Connolly
72316c349e
fix markup of "just one effect, unsafe"
...
the punch line was cut off!
2015-02-19 23:35:33 -06:00
Ivan Petkov
be0dc49675
Unsafe lint will also check for other unsafe code
...
Checks include declaration/implementation of unsafe functions, traits,
and methods.
This allows warning or forbidding all uses of unsafe code, whereas
previously only unsafe blocks were caught by the lint.
The lint has been renamed from `unsafe-blocks` to `unsafe-code` to
reflect its new purpose.
This is a minor [breaking-change]
Closes #22430
2015-02-19 20:43:09 -08:00
Erick Tryzelaar
ded93b125f
std: Update the std::io adaptors to proxy all methods
2015-02-19 20:39:01 -08:00
Brian Anderson
96be55376e
book: Minor clarifications about strings
2015-02-19 18:39:38 -08:00
Marvin Löbel
c8dd2d066d
Addressed PR comments
2015-02-20 00:58:15 +01:00
Marvin Löbel
a641996796
Fix tidy and rebase fallout
...
Added a few bugfixes and additional testcases
2015-02-20 00:58:07 +01:00
Marvin Löbel
c1de0a0f9e
Added a Pattern impl that delegates to the dereference of a type.
...
This allows to match with a `&String` or `&&str`, for example.
2015-02-20 00:58:06 +01:00
Marvin Löbel
ee930b0262
Enabled new pattern API in the libstd facade
2015-02-20 00:58:06 +01:00
Marvin Löbel
f9ef8cd555
Refactored code into Searcher traits with naive implementations
...
Made the family of Split iterators use the Pattern API
Renamed the Matcher traits into Searcher
2015-02-20 00:57:38 +01:00
Marvin Löbel
13ea9062a9
Made match_indices use the generic pattern API
2015-02-20 00:32:59 +01:00
Marvin Löbel
bc09c1ddc5
Made str::MatchIndices a private implementantion detail
2015-02-20 00:32:59 +01:00
Marvin Löbel
54f0bead81
Added string pattern traits and basic implementantions
2015-02-20 00:32:59 +01:00
Marvin Löbel
d68eb3d248
Added benchmarks for string pattern matching functions
2015-02-20 00:32:59 +01:00
bombless
b13e072c9e
Remove questionable pattern
2015-02-20 03:36:40 +08:00
Kevin Butler
6172986cc9
typo: fucntion -> function
2015-02-19 19:22:31 +00:00
bombless
0643494bc4
Fix tests
2015-02-20 03:10:31 +08:00
bors
522d09dfec
Auto merge of #22541 - Manishearth:rollup, r=Gankro
...
Continued from #22520
2015-02-19 18:36:59 +00:00
Manish Goregaokar
49771bafa5
Round 8 tex fixes
2015-02-19 23:18:20 +05:30
Alex Crichton
163be7525a
Merge remote-tracking branch 'origin/master' into rollup
2015-02-19 07:03:43 -08:00
Alex Crichton
0cd54b85ef
Round 5 test fixes and rebase conflicts
2015-02-19 07:03:18 -08:00
bombless
61ea8b33d0
Fix issue #22426 #22447
2015-02-19 22:01:57 +08:00
bors
0b664bb843
Auto merge of #22517 - brson:relnotes, r=Gankro
...
p=1 please
2015-02-19 10:54:08 +00:00
Björn Steinbrink
07c0faa407
Fix an ICE when translating if loop {} {}
...
In `if loop {} {}`, the `if` is actually unreachable, but we didn't
handle that correctly and when trying to translate the `if` we tried to
branch on the "return value" of the loop expression, which is not an
`i1` and therefore triggered an LLVM assertion.
2015-02-19 11:46:47 +01:00
Ryan Prichard
dc3bc90d5b
Use sess.opts.optimize instead of sess.opts.cg.opt_level for LTO optlevel
...
Fixes #22525
2015-02-19 02:16:16 -08:00
bors
149f002437
Auto merge of #22497 - nikomatsakis:suffixes, r=alexcrichton
...
The old suffixes now issue warnings unless a feature-gate is given.
Fixes #22496 .
r? @alexcrichton
2015-02-19 07:59:27 +00:00
Steven Crockett
e0067f9852
docs: correct guessing game to mention old_io module instead of io
...
The text is referring to the io module despite the code using the old_io module.
2015-02-19 05:13:49 +00:00
Keegan McAllister
1597f915c5
borrowck/README.md: Normalize types in examples
2015-02-18 20:46:21 -08:00
Keegan McAllister
f051e13238
Fix references to doc.rs throughout the code
2015-02-18 19:54:45 -08:00
Keegan McAllister
ac6cab0887
borrowck/README.md: Fix display of code on GitHub
2015-02-18 19:54:45 -08:00
Keegan McAllister
160cf962e7
borrowck/README.md: Remove SCOPE (mostly unused)
...
Only one case is used in the text. All of them are pretty straightforward, so
I don't think the code needs an explicit link to the README.
2015-02-18 19:54:38 -08:00
Darrell Hamilton
a6b47c0efa
Fixes "Code of Conduct" Link
...
Replaces the markdown link delimiters for the "Code of Conduct" link with the appropriate delimiters for using a link id
r? @steveklabnik
2015-02-18 20:53:00 -07:00
Keegan McAllister
0c1fc1ca7b
borrowck/README.md: Clarify MUTABILITY and ALIASABLE
2015-02-18 18:07:03 -08:00
Alex Crichton
cb29c468f3
Fix from niko for cfail tests
2015-02-18 18:01:03 -08:00
Keegan McAllister
bb22c100db
borrowck/README.md: Remove most references to &const
2015-02-18 17:59:47 -08:00