Skip to content

Rollup of 10 pull requests #25281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 120 commits into from
May 10, 2015
Merged
Changes from 1 commit
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
a8ea78b
configure: generic run command
richo Apr 27, 2015
b982a75
configure: Disable valgrind-rpass if there's no valgrind
richo Apr 27, 2015
fc7faaf
configure: Fail iff valgrind is explicitly requested but not available
richo Apr 28, 2015
a4c1337
link to .editorconfig for Rust files
derhuerst Apr 29, 2015
6f3641d
distinction between official and community plugins
derhuerst Apr 29, 2015
dff7676
Fix MIPS build errors in libstd/os/linux/raw.rs
kevinmehall May 5, 2015
6c6b200
Add TCP_* constants for mips/mipsel Linux
kevinmehall May 5, 2015
c82da7a
core: added core::num::flt2dec for floating-point formatting.
lifthrasiir Apr 19, 2015
5aa9f38
core: made the core formatter to use a new flt2dec.
lifthrasiir Apr 19, 2015
f9bfda0
core: tweaked flt2dec to match the casing of the older formatting code.
lifthrasiir Apr 21, 2015
85424c4
test: update tests for flt2dec fallouts.
lifthrasiir Apr 19, 2015
8a195f0
core: fixed typos and revised comments in flt2dec.
lifthrasiir Apr 20, 2015
97ea7c1
core: fixed a slight bug.
lifthrasiir Apr 21, 2015
a641b05
core: updated for the master changes.
lifthrasiir Apr 23, 2015
3d34e17
core: use banker's rounding for the exact mode in flt2dec.
lifthrasiir May 6, 2015
48636f3
Add missing inline attribute to Not impl for Wrapping<T>
inrustwetrust May 6, 2015
7150d3c
Change rand version to '*'
bengesoff May 7, 2015
0bc6fe5
Refactor to keep rand version 0.3.0
bengesoff May 7, 2015
0749991
Fix incorrect curly quotes
steveklabnik May 7, 2015
888086d
Undid changes involving misunderstanding of 0.3.x
bengesoff May 7, 2015
11cb5e5
Add long diagnostic for E0046
May 7, 2015
4d1e48e
Typo in ownership.md
tincann May 7, 2015
ae1b2f4
Another typo
tincann May 7, 2015
11a7bad
Add long diagnostic for E0054
May 7, 2015
7ef46e0
doc: the prevailing convention is to use assert_eq! when 2 values are…
tshepang May 7, 2015
2213898
two minor fixes
simonkern May 7, 2015
84c7dfa
deleted unnecessary `the`
simonkern May 7, 2015
468cb05
Expand OS X versions referenced in configure message
carols10cents May 7, 2015
3e76f28
v2 gets a copy of the pointer, not a copy of the data
simonkern May 7, 2015
60c0e75
fixed href for structs
simonkern May 7, 2015
391d148
fix logic when describing kinds of borrows
astraw Apr 27, 2015
c65a183
Fix sort in AUTHORS.txt
sharnik May 8, 2015
a4ec372
fixed a mistake
rick68 May 8, 2015
ee06263
Fallout from fixing Issue 25199.
pnkfelix May 8, 2015
b5b5a17
dropck: must assume `Box<Trait + 'a>` has a destructor of interest.
pnkfelix May 8, 2015
091ba42
Add a reason to the libc & rand instability.
huonw May 8, 2015
ccf1285
Regression tests for Issue 25199 (dropck and `Box<Trait + 'a>`).
pnkfelix May 8, 2015
d8d4bb4
fallout to run-pass tests.
pnkfelix May 8, 2015
0fa1c16
Fallout to compile-fail tests.
pnkfelix May 8, 2015
544362c
Update method-syntax.md
acgtyrant May 8, 2015
962816b
Update method-syntax.md
acgtyrant May 8, 2015
00204e8
mk: Add a missing folder to the dist directory
alexcrichton May 8, 2015
ff332b6
Squeeze the last bits of `task`s in documentation in favor of `thread`
barosl May 8, 2015
1e1e6e0
Fix invalid references due to the automated string substitution
barosl May 8, 2015
857b70f
Please the `make tidy`
barosl May 8, 2015
01fc026
mk: Log that valgrind tests are disabled
richo May 8, 2015
9b91ccf
Fix the tests broken by replacing `task` with `thread`
barosl May 8, 2015
8b8cb34
Rollup merge of #24864 - astraw:patch-1, r=steveklabnik
Manishearth May 8, 2015
4c0f7fd
Rollup merge of #25140 - kevinmehall:mips, r=steveklabnik
Manishearth May 8, 2015
61c1cf7
Rollup merge of #25179 - bengesoff:patch-1, r=steveklabnik
Manishearth May 8, 2015
b022709
Rollup merge of #25181 - steveklabnik:fix_curlies, r=alexcrichton
Manishearth May 8, 2015
638deb3
Rollup merge of #25190 - nham:E0046_E0054, r=alexcrichton
Manishearth May 8, 2015
6550420
Rollup merge of #25194 - tshepang:assert-convention, r=steveklabnik
Manishearth May 8, 2015
4b4cb86
Rollup merge of #25195 - simonkern:master, r=steveklabnik
Manishearth May 8, 2015
f7980a3
Rollup merge of #25198 - carols10cents:update-configure-osx, r=alexcr…
Manishearth May 8, 2015
8a6bb9f
Rollup merge of #25203 - sharnik:fix-sort-authors, r=alexcrichton
Manishearth May 8, 2015
a3a3d4e
Rollup merge of #25210 - rick68:patch-1, r=alexcrichton
Manishearth May 8, 2015
dd37250
Rollup merge of #25211 - huonw:libc, r=cmr
Manishearth May 8, 2015
55437b4
Rollup merge of #25215 - acgtyrant:patch-2, r=alexcrichton
Manishearth May 8, 2015
b210aea
Auto merge of #25218 - Manishearth:rollup, r=Manishearth
bors May 8, 2015
d3958c6
Auto merge of #25217 - alexcrichton:fix-distcheck, r=brson
bors May 8, 2015
a29dc05
Document panic behaviour of BitVec::split_off
jooert May 8, 2015
aaa3641
core: impl AsRef<[u8]> for str
seanmonstar May 6, 2015
093ebd5
collections: impl AsRef<[u8]> for String
seanmonstar May 6, 2015
8e491ef
collections: change bounds of SliceConcatExt implementations to use B…
seanmonstar May 9, 2015
c033d98
Auto merge of #25162 - seanmonstar:asref-bytes, r=alexcrichton
bors May 9, 2015
bf06163
Remove references to deprecated `extern crate "foo" as bar` syntax
carols10cents May 9, 2015
8c9dc18
Auto merge of #24859 - richo:valgrind-tests, r=brson
bors May 9, 2015
50aada7
Auto merge of #25159 - inrustwetrust:wrapping_inline, r=alexcrichton
bors May 9, 2015
7129b25
Auto merge of #25231 - carols10cents:lingering-quoted-crate-names, r=…
bors May 9, 2015
8654dfb
address fallout in libsyntaxtest.
pnkfelix May 9, 2015
95400c5
Auto merge of #25214 - acgtyrant:patch-1, r=brson
bors May 9, 2015
3906edf
Auto merge of #25212 - pnkfelix:dropck-box-trait, r=nikomatsakis
bors May 9, 2015
7a91fe8
Fixed a typo. Removed an extra s
sindreij May 9, 2015
1e9ce0d
std: Add example for HashMap::entry()
May 9, 2015
7a2ac0c
Added start of last text block
sindreij May 9, 2015
ac478ec
Rollup merge of #25216 - barosl:no-more-task, r=Manishearth
Manishearth May 9, 2015
511a8d4
Rollup merge of #25227 - jooert:bitvec-doc-fix, r=alexcrichton
Manishearth May 9, 2015
4979423
Auto merge of #25243 - Manishearth:rollup, r=Manishearth
bors May 9, 2015
1aecd17
test: fixed some tests affected by banker's rounding.
lifthrasiir May 9, 2015
67ba6dc
Auto merge of #24612 - lifthrasiir:flt2dec, r=pnkfelix
bors May 9, 2015
30f88c8
Use of @pnkfelix code and fix typos
GuillaumeGomez May 9, 2015
dc630d0
Auto merge of #24728 - GuillaumeGomez:type-mismatch, r=pnkfelix
bors May 9, 2015
14d476e
Remove auxiliary files not used since 812637e
carols10cents May 9, 2015
7d5c248
Remove auxiliary file not used since 17da4c7
carols10cents May 9, 2015
757809c
Remove auxiliary files not used since eb4d39e
carols10cents May 9, 2015
978dc9f
Minor docs fix
robyoung May 9, 2015
87f0237
Add long diagnostics for E0062 and E0063
May 7, 2015
f736468
Add long diagnostic for E0137
May 8, 2015
df64e05
Change E0062 and E0063 to say each field should be specified once.
May 8, 2015
a1898f8
Convert #[lang="..."] to #[lang = "..."]
May 9, 2015
7984074
Convert #[lang=".."] to #[lang = ".."] for docs too.
May 9, 2015
8e8f8d9
Upgraded warning for invalid crate_type attribute syntax to an error
inrustwetrust May 9, 2015
fa3fd81
Update error-handling.md
acgtyrant May 9, 2015
f8888af
Add omitted word to mutability docs.
dpetersen May 10, 2015
788d762
Remove obsolete comment in rustc::middle::subst.
May 10, 2015
ae1b64f
Fix typo in Match document.
dpetersen May 10, 2015
15c9f44
Rollup merge of #25200 - nham:E0062_E0063, r=alexcrichton
Manishearth May 10, 2015
79ca74d
Rollup merge of #25242 - acgtyrant:patch-3, r=Manishearth
Manishearth May 10, 2015
f23867a
Rollup merge of #25248 - carols10cents:unused-auxiliaries, r=Manishearth
Manishearth May 10, 2015
fd099b2
Rollup merge of #25249 - robyoung:minor-doc-fix, r=Manishearth
Manishearth May 10, 2015
459652c
Rollup merge of #25251 - nham:whitespace_lang_items, r=Manishearth
Manishearth May 10, 2015
87a6278
Rollup merge of #25252 - inrustwetrust:crate-type-attribute, r=alexcr…
Manishearth May 10, 2015
2274bf1
Rollup merge of #25261 - nham:obsolete_assoc_space_comment, r=alexcri…
Manishearth May 10, 2015
750f2c6
Auto merge of #25262 - Manishearth:rollup, r=Manishearth
bors May 10, 2015
2cc4d82
Fix small typos in documentation
fhinkel May 10, 2015
8ad1c90
Removed the backticks on slices
sindreij May 10, 2015
a168dba
Add #[inline] to AsRef<str>::as_ref for String and str.
koute May 10, 2015
5613502
Add long diagnostic for E0067
caipre May 10, 2015
ffc0d04
Add long diagnostic for E0131, E0132
caipre May 10, 2015
371eb87
Rollup merge of #24948 - derhuerst:patch-1, r=steveklabnik
steveklabnik May 10, 2015
ad1c0c5
Rollup merge of #25158 - koute:master, r=alexcrichton
steveklabnik May 10, 2015
a725378
Rollup merge of #25188 - tincann:patch-1, r=steveklabnik
steveklabnik May 10, 2015
ba8eb58
Rollup merge of #25222 - GuillaumeGomez:doc-ref, r=steveklabnik
steveklabnik May 10, 2015
fa207fa
Rollup merge of #25239 - sindreij:patch-1, r=alexcrichton
steveklabnik May 10, 2015
dcc76da
Rollup merge of #25240 - bluss:doc-hashmap-entry, r=steveklabnik
steveklabnik May 10, 2015
d065d57
Rollup merge of #25241 - sindreij:patch-2, r=steveklabnik
steveklabnik May 10, 2015
5160bf8
Rollup merge of #25255 - caipre:diagnostic-messages, r=alexcrichton
steveklabnik May 10, 2015
7ae332c
Rollup merge of #25257 - dpetersen:mutability-docfix, r=steveklabnik
steveklabnik May 10, 2015
c70458b
Rollup merge of #25263 - fhinkel:master, r=steveklabnik
steveklabnik May 10, 2015
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
collections: impl AsRef<[u8]> for String
  • Loading branch information
seanmonstar committed May 9, 2015
commit 093ebd5a62d77678046b5e56420d46df37a97129
8 changes: 8 additions & 0 deletions src/libcollections/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,14 @@ impl AsRef<str> for String {
}
}

#[stable(feature = "rust1", since = "1.0.0")]
impl AsRef<[u8]> for String {
#[inline]
fn as_ref(&self) -> &[u8] {
self.as_bytes()
}
}

#[stable(feature = "rust1", since = "1.0.0")]
impl<'a> From<&'a str> for String {
#[cfg(not(test))]
Expand Down