about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2014-07-22auto merge of #15870 : jakub-/rust/issue-15793, r=alexcrichtonbors-1/+35
Fixes #15793.
2014-07-22auto merge of #15834 : Kimundi/rust/moved_syntax_env, r=cmrbors-227/+254
- Made custom syntax extensions capable of expanding custom macros by moving `SyntaxEnv` into `ExtCtx` - Added convenience method on `ExtCtx` for getting a macro expander. - Made a few things private to force only a single way to use them (through `ExtCtx`) - Removed some ancient commented-out code Closes #14946
2014-07-21Clarify range's exclusivity.Steve Klabnik-1/+13
Inspired by http://www.reddit.com/r/rust/comments/298js2/what_is_the_rationale_behind_the_second_parameter/
2014-07-22Refactoring: Only use `MacroExpander` for expanding outside ofMarvin Löbel-27/+42
`syntax::ext::expand`
2014-07-21Moved `syntax::ext::base::SyntaxEnv` into `syntax::ext::base::ExtCtx`Marvin Löbel-201/+213
2014-07-21Update LLVM to address an issue with range metadata in hoisted loadsJakub Wieczorek-1/+35
Fixes #15793.
2014-07-21auto merge of #15700 : jakub-/rust/match-fail-removal, r=pcwaltonbors-83/+22
It's an artifact of the old refutable version of `match` and is no longer necessary.
2014-07-21auto merge of #15864 : alexcrichton/rust/rollup, r=alexcrichtonbors-450/+2378
2014-07-21Test fixes from the rollupAlex Crichton-1/+1
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-21Clarify the std::vec::Vec docs regarding capacityP1start-3/+37
2014-07-21Get rid of few warnings in testsPiotr Jawniak-9/+7
2014-07-21fix string in from_utf8_lossy_100_multibyte benchmarkTed Horst-2/+1
2014-07-21privacy: Add publically-reexported foreign item to exported item setKiet Tran-1/+6
Close #15740
2014-07-21Don't create reexport module if there are noneSteven Fackler-2/+4
2014-07-21Purge !resolve_unexportedSteven Fackler-7/+0
2014-07-21Restructure test harnessSteven Fackler-32/+53
We now build up a set of modules that reexport everything the test framework needs, instead of turning off privacy.
2014-07-21Remove useless RefCellsSteven Fackler-12/+11
2014-07-21Rename to_str to to_stringSteven Fackler-6/+6
Closes #15796. [breaking-change]
2014-07-21Update LLVM to include NullCheckElimination passBjörn Steinbrink-1/+1
Fixes #11751
2014-07-21syntax: Join consecutive string literals in format strings togetherroot-10/+33
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-21Simplify and cleanup bitv examples.Jonas Hietala-74/+120
2014-07-21Describe BitPositions and TwoBitPositions.Jonas Hietala-0/+2
2014-07-21Polish bitv docs.Jonas Hietala-56/+65
2014-07-21Enclose None as `None`.Jonas Hietala-4/+4
2014-07-21Main bitv example: prime sieve.Jonas Hietala-0/+49
2014-07-21Move intersection above difference and symmetric_differance.Jonas Hietala-29/+29
So all comes in the order union, intersection, difference and symmetric_difference.
2014-07-21Document BitvSet.Jonas Hietala-19/+297
2014-07-21Document Bitv.Jonas Hietala-94/+307
2014-07-21Group union, intersect and difference in Bitv.Jonas Hietala-22/+22
2014-07-21Place union as the first function, for consistency.Jonas Hietala-12/+12
2014-07-21Move in-place functions below their iterator variants.Jonas Hietala-24/+24
2014-07-21Document Deque.Jonas Hietala-10/+173
2014-07-21rustdoc: Add an --extern flag analagous to rustc'sTom Jakubowski-17/+66
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-21Address review feedbackBrian Anderson-2/+6
2014-07-21rustc: Allow the crate linked to as 'std' to be customizedBrian Anderson-1/+11
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-21rustc: Pass optional additional plugins to compile_inputBrian Anderson-12/+30
This provides a way for clients of the rustc library to add their own features to the pipeline.
2014-07-21rustc: Extract --crate-type parsing to its own functionBrian Anderson-17/+26
Helpful for users of rustc as a library.
2014-07-21rustc: Make `monitor` public.Brian Anderson-1/+1
It's harder to run rustc correctly without it.
2014-07-21rlibc: add unit testsIlya Dmitrichenko-4/+104
2014-07-21rlibc: fix bug in `memcmp()`Ilya Dmitrichenko-1/+1
2014-07-21repair macro docsJohn Clements-22/+35
In f1ad425199b0d89dab275a8c8f6f29a73d316f70, I changed the handling of macros, to prevent macro invocations from occurring in fully expanded source. Instead, I added a side table. It contained only the spans of the macros, because this was the only information required in order to make macro export work. However, librustdoc was also affected by this change, since it extracts macro information in a similar way. As a result of the earlier change, exported macros were no longer documented. In order to repair this, I've adjusted the side table to contain whole items, rather than just the spans.
2014-07-21Guessing game explanationSteve Klabnik-70/+879
We now build the game at the end of the first section. I wanted to do it as we went along, but it's too hard with these fundamentals not in place. The rest will do the 'as we go' approach, but I think this is better.
2014-07-21Guide: improve error handlingSteve Klabnik-49/+131
2014-07-21Remove runtime failure from pattern matchingJakub Wieczorek-83/+22
It's an artifact of the old refutable version of `match` and is no longer necessary.
2014-07-21Fix :syn-include usage of Vim filetype.Chris Morgan-3/+5
Here’s what the Vim manual says in *:syn-include*: :sy[ntax] include [@{grouplist-name}] {file-name} All syntax items declared in the included file will have the "contained" flag added. In addition, if a group list is specified, all top-level syntax items in the included file will be added to that list. We had two rules for `rustModPath`, one `contained` and the other not. The effect was that the second (now renamed to `rustModPathInUse`) was being included in the group list, and thus that all identifiers were being highlighted as `Include`, which is definitely not what we wanted.
2014-07-21Highlight $(…)* and $foo in Vim.Chris Morgan-0/+7
2014-07-20auto merge of #15810 : SimonSapin/rust/base64-from-bytes, r=alexcrichtonbors-17/+29
The algorithm was already based on bytes internally. Also use byte literals instead of casting u8 to char for matching. [breaking-change] The `InvalidBase64Character` variant of the `FromBase64Error` enum was renamed to `InvalidBase64Byte`, and contains a `u8` instead of a `char`. r? @alexcrichton
2014-07-20auto merge of #15808 : jakub-/rust/use-mod, r=alexcrichtonbors-80/+268
Implements RFC #168.
2014-07-20auto merge of #15805 : Sawyer47/rust/issue-8709, r=alexcrichtonbors-3/+29
Closes #8709
2014-07-20auto merge of #15806 : treeman/rust/std-doc, r=alexcrichtonbors-6/+203
Used `HashMap` and `HashSet` as the base of most examples. Could change it up with different containers, but I don't think it's a big deal.