bors
aa0e35bc64
auto merge of #15217 : steveklabnik/rust/range, r=huonw
...
Inspired by http://www.reddit.com/r/rust/comments/298js2/what_is_the_rationale_behind_the_second_parameter/
2014-07-22 00:26:21 +00:00
Steve Klabnik
1e9f86b1dc
Guide: fix headings
2014-07-21 19:39:16 -04:00
Steve Klabnik
377b2508f2
Guide Redux: Pointers
2014-07-21 19:34:55 -04:00
Steve Klabnik
ba769d833f
Clarify range's exclusivity.
...
Inspired by http://www.reddit.com/r/rust/comments/298js2/what_is_the_rationale_behind_the_second_parameter/
2014-07-21 19:18:56 -04:00
Marvin Löbel
cef4378269
Refactoring: Only use MacroExpander
for expanding outside of
...
`syntax::ext::expand`
2014-07-22 01:00:03 +02:00
Mike Robinson
6d3a623cc8
Fix rustdoc --passes list
...
Allow "rustdoc --passes list" to work without specifying input files,
as shown in the examples section of the man page.
2014-07-21 23:37:04 +01:00
Marvin Löbel
94d92e6830
Moved syntax::ext::base::SyntaxEnv
into syntax::ext::base::ExtCtx
2014-07-21 23:45:23 +02:00
Jakub Wieczorek
febfb752d2
Update LLVM to address an issue with range metadata in hoisted loads
...
Fixes #15793 .
2014-07-21 22:52:49 +02:00
Brian Anderson
c61f9763e2
Use fewer instructions for fail!
...
Adds a special-case fail function, rustrt::unwind::begin_unwind_no_time_to_explain,
that encapsulates the printing of the words "explicit failure".
The before/after optimized assembly:
```
leaq "str\"str\"(1369)"(%rip), %rax
movq %rax, 8(%rsp)
movq $19, 16(%rsp)
leaq 8(%rsp), %rdi
movl $11, %esi
callq _ZN6unwind31begin_unwind_no_time_to_explain20hd1c720cdde6a116480dE@PLT
```
```
leaq "str\"str\"(1412)"(%rip), %rax
movq %rax, 24(%rsp)
movq $16, 32(%rsp)
leaq "str\"str\"(1413)"(%rip), %rax
movq %rax, 8(%rsp)
movq $19, 16(%rsp)
leaq 24(%rsp), %rdi
leaq 8(%rsp), %rsi
movl $11, %edx
callq _ZN6unwind12begin_unwind21h15836560661922107792E
```
Before/after filesizes:
rwxrwxr-x 1 brian brian 21479503 Jul 20 22:09 stage2-old/lib/librustc-4e7c5e5c.so
rwxrwxr-x 1 brian brian 21475415 Jul 20 22:30 x86_64-unknown-linux-gnu/stage2/lib/librustc-4e7c5e5c.so
2014-07-21 13:50:12 -07:00
bors
428d814a7d
auto merge of #15700 : jakub-/rust/match-fail-removal, r=pcwalton
...
It's an artifact of the old refutable version of `match` and is no longer necessary.
2014-07-21 20:41:18 +00:00
Björn Steinbrink
1654f08e03
Allow merging of statics generated by format!()
2014-07-21 21:52:37 +02:00
bors
df68c6f3c3
auto merge of #15864 : alexcrichton/rust/rollup, r=alexcrichton
2014-07-21 18:46:46 +00:00
Alex Crichton
6ebbc6c4a3
rustc: Append platform exe suffix to output files
...
Closes #15828
2014-07-21 11:27:19 -07:00
Corey Richardson
188d889aaf
ignore-lexer-test to broken files and remove some tray hyphens
...
I blame @ChrisMorgan for the hyphens.
2014-07-21 10:59:58 -07:00
Corey Richardson
f8fd32ef9d
Byte/raw binary literal fixes
2014-07-21 10:59:58 -07:00
Corey Richardson
9fc5cf902f
Refine the tooling, handle comments
2014-07-21 10:59:58 -07:00
Corey Richardson
76a1552021
First pass at line comment correctness
2014-07-21 10:59:57 -07:00
Corey Richardson
1a1a9d5445
Add raw string literal ambiguity document
2014-07-21 10:59:57 -07:00
Corey Richardson
19e1f5cdb6
Lexer; subtly wrong; no makefile
2014-07-21 10:59:57 -07:00
Alex Crichton
414862db3c
Test fixes from the rollup
...
Closes #15690 (Guide: improve error handling)
Closes #15729 (Guide: guessing game)
Closes #15751 (repair macro docs)
Closes #15766 (rustc: Print a smaller hash on -v)
Closes #15815 (Add unit test for rlibc)
Closes #15820 (Minor refactoring and features in rustc driver for embedders)
Closes #15822 (rustdoc: Add an --extern flag analagous to rustc's)
Closes #15824 (Document Deque trait and bitv.)
Closes #15832 (syntax: Join consecutive string literals in format strings together)
Closes #15837 (Update LLVM to include NullCheckElimination pass)
Closes #15841 (Rename to_str to to_string)
Closes #15847 (Purge #[!resolve_unexported] from the compiler)
Closes #15848 (privacy: Add publically-reexported foreign item to exported item set)
Closes #15849 (fix string in from_utf8_lossy_100_multibyte benchmark)
Closes #15850 (Get rid of few warnings in tests)
Closes #15852 (Clarify the std::vec::Vec::with_capacity docs)
2014-07-21 10:18:17 -07:00
P1start
37bb6ed302
Clarify the std::vec::Vec docs regarding capacity
2014-07-21 09:55:08 -07:00
Piotr Jawniak
36e1f2db30
Get rid of few warnings in tests
2014-07-21 09:55:04 -07:00
Ted Horst
dfacef532d
fix string in from_utf8_lossy_100_multibyte benchmark
2014-07-21 09:55:02 -07:00
Kiet Tran
6807349e8f
privacy: Add publically-reexported foreign item to exported item set
...
Close #15740
2014-07-21 09:54:59 -07:00
Steven Fackler
2daa097077
Don't create reexport module if there are none
2014-07-21 09:54:55 -07:00
Steven Fackler
6531d02b79
Purge !resolve_unexported
2014-07-21 09:54:55 -07:00
Steven Fackler
d27918ac7c
Restructure test harness
...
We now build up a set of modules that reexport everything the test
framework needs, instead of turning off privacy.
2014-07-21 09:54:55 -07:00
Steven Fackler
456884b7a0
Remove useless RefCells
2014-07-21 09:54:55 -07:00
Steven Fackler
2e24ef377e
Rename to_str to to_string
...
Closes #15796 .
[breaking-change]
2014-07-21 09:54:52 -07:00
Björn Steinbrink
e3887a7766
Update LLVM to include NullCheckElimination pass
...
Fixes #11751
2014-07-21 09:54:50 -07:00
root
0e1880d8fe
syntax: Join consecutive string literals in format strings together
...
Emit a single rt::Piece per consecutive string literals. String literals
are split on {{ or }} escapes.
Saves a small amount of static storage and emitted code size.
2014-07-21 09:54:35 -07:00
Jonas Hietala
2357c443e0
Simplify and cleanup bitv examples.
2014-07-21 09:54:31 -07:00
Jonas Hietala
2957644e08
Describe BitPositions and TwoBitPositions.
2014-07-21 09:54:31 -07:00
Jonas Hietala
e68333a689
Polish bitv docs.
2014-07-21 09:54:31 -07:00
Jonas Hietala
71afdc4323
Enclose None as None
.
2014-07-21 09:54:31 -07:00
Jonas Hietala
4574b2fbaa
Main bitv example: prime sieve.
2014-07-21 09:54:31 -07:00
Jonas Hietala
26047f15e5
Move intersection above difference and symmetric_differance.
...
So all comes in the order union, intersection, difference and
symmetric_difference.
2014-07-21 09:54:31 -07:00
Jonas Hietala
b05f6050b6
Document BitvSet.
2014-07-21 09:54:31 -07:00
Jonas Hietala
681aa58214
Document Bitv.
2014-07-21 09:54:31 -07:00
Jonas Hietala
f4d9dca10d
Group union, intersect and difference in Bitv.
2014-07-21 09:54:31 -07:00
Jonas Hietala
2e40078fc3
Place union as the first function, for consistency.
2014-07-21 09:54:31 -07:00
Jonas Hietala
9aaaa6b31e
Move in-place functions below their iterator variants.
2014-07-21 09:54:31 -07:00
Jonas Hietala
c86873bda4
Document Deque.
2014-07-21 09:54:31 -07:00
Tom Jakubowski
ec70f2bb6e
rustdoc: Add an --extern flag analagous to rustc's
...
This adds an `--extern` flag to `rustdoc` much like the compiler's to
specify the path where a given crate can be found.
2014-07-21 09:54:29 -07:00
Brian Anderson
97ca98f5cc
Address review feedback
2014-07-21 09:54:27 -07:00
Brian Anderson
ec0f1cb709
rustc: Allow the crate linked to as 'std' to be customized
...
This adds the alt_std_name field to the Session's Options type.
I'm using this in an external tool to control which libraries
a crate links to.
2014-07-21 09:54:27 -07:00
Brian Anderson
c88bf10c37
rustc: Pass optional additional plugins to compile_input
...
This provides a way for clients of the rustc library to add
their own features to the pipeline.
2014-07-21 09:54:26 -07:00
Brian Anderson
1c3655bed1
rustc: Extract --crate-type parsing to its own function
...
Helpful for users of rustc as a library.
2014-07-21 09:54:26 -07:00
Brian Anderson
9631bf2e25
rustc: Make monitor
public.
...
It's harder to run rustc correctly without it.
2014-07-21 09:54:26 -07:00
Ilya Dmitrichenko
d32fe7e51b
rlibc: add unit tests
2014-07-21 09:54:23 -07:00