summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2014-03-31Bump version to 0.10Alex Crichton-59/+59
2014-04-01Json doesn't need to depend on IoError to implement Encodable #13230Eunchong Yu-2/+2
2014-03-31auto merge of #13221 : thestinger/rust/append, r=alexcrichtonbors-222/+126
These were only free functions on `~[T]` because taking self by-value used to be broken.
2014-03-31auto merge of #13220 : brson/rust/from_iter, r=thestingerbors-22/+22
2014-03-30auto merge of #13206 : TeXitoi/rust/fix-shootout-k-nucleotide, r=alexcrichtonbors-35/+37
Correct printing (sort, new lines), reading on stdin.
2014-03-31vec: convert `append` and `append_one` to methodsDaniel Micay-222/+126
These were only free functions on `~[T]` because taking self by-value used to be broken.
2014-03-30Rename `from_iterator` to `from_iter` for consistency.Brian Anderson-22/+22
2014-03-30mk: Don't touch config.tmp or tmp/dist as root. Closes #13190Brian Anderson-1/+0
When running `make install` we are touching these files that can't then be removed later.
2014-03-30auto merge of #13211 : csherratt/rust/arc_fix, r=alexcrichtonbors-4/+38
This is a fix for #13210. fetch_sub returns the old value of the atomic variable, not the new one.
2014-03-30auto merge of #13215 : sfackler/rust/vim-attr, r=alexcrichtonbors-1/+1
2014-03-30Support new attribute syntax in vim syntax fileSteven Fackler-1/+1
2014-03-30Check that the old value was 1 and not 0 when dropping a Arc value.Colin Sherratt-4/+38
Closed #13210.
2014-03-30make shootout-k-nucleotide.rs pass official testGuillaume Pinot-35/+37
Correct printing (sort, new lines), reading on stdin, s/i32/uint/, ignore-android because it reads stdin
2014-03-30Updated references to extra in libcollections docsScott Jenkins-3/+3
2014-03-30Removed deprecated functions `map` and `flat_map` for vectors and slices.Marvin Löbel-325/+278
2014-03-29auto merge of #13200 : sfackler/rust/test-attr, r=cmrbors-3/+3
2014-03-29Use new inner attribute syntax in test frameworkSteven Fackler-3/+3
2014-03-29auto merge of #13183 : erickt/rust/remove-list, r=alexcrichtonbors-296/+31
`collections::list::List` was decided in a [team meeting](https://github.com/mozilla/rust/wiki/Meeting-weekly-2014-03-25) that it was unnecessary, so this PR removes it. Additionally, it removes an old and redundant purity test and fixes some warnings.
2014-03-29auto merge of #13143 : gentlefolk/rust/issue-9227, r=michaelwoeristerbors-77/+711
Only supports crate level statics. No debug info is generated for function level statics. Closes #9227. As discussed at the end of the comments for #9227, I took an initial stab at adding support for function level statics and decided it would be enough work to warrant being split into a separate issue. See #13144 for the new issue describing the need to add support for function level static variables.
2014-03-29auto merge of #13188 : FlaPer87/rust/master, r=alexcrichtonbors-5125/+153
2014-03-29auto merge of #13185 : alexcrichton/rust/osx-pkg, r=brsonbors-1/+17
This performs a few touch-ups to the OSX installer: * A rust logo is shown during installation * The installation happens to /usr/local by default (instead of /) * A new welcome screen is shown that's slightly more relevant
2014-03-28auto merge of #13168 : jankobler/rust/verify-grammar-02, r=brsonbors-15/+16
This fixes some problems with make verify-grammar llnextgen still reports a lot of errors FYI: My build directory /my-test/build is different from the source directory /my-test/rust. cd /my-test/build /my-test/rust/configure --prefix=/my-test/bin make make install make verify-grammar
2014-03-28auto merge of #13187 : brson/rust/dist, r=alexcrichtonbors-11/+68
2014-03-28auto merge of #13170 : eddyb/rust/syntax-cleanup, r=alexcrichtonbors-486/+445
Removes all Cell's/RefCell's from lexer::Reader implementations and a couple @.
2014-03-28auto merge of #13157 : pnkfelix/rust/fsk-iss13140, r=nikomatsakisbors-3/+142
r? @nikomatsakis Fix #13140 Includes two fixes, and a semi-thorough regression test. (There is another set of tests that I linked from #5121, but those are sort of all over the place, while the ones I've included here are more directly focused on the issues at hand.)
2014-03-28dist: Tweak the OSX pkg installerAlex Crichton-1/+17
This performs a few touch-ups to the OSX installer: * A rust logo is shown during installation * The installation happens to /usr/local by default (instead of /) * A new welcome screen is shown that's slightly more relevant
2014-03-29Register new snapshotFlavio Percoco-5125/+153
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-643/+646
Closes #2569
2014-03-28syntax: Accept meta matchers in macrosAlex Crichton-28/+68
This removes the `attr` matcher and adds a `meta` matcher. The previous `attr` matcher is now ambiguous because it doesn't disambiguate whether it means inner attribute or outer attribute. The new behavior can still be achieved by taking an argument of the form `#[$foo:meta]` (the brackets are part of the macro pattern). Closes #13067
2014-03-28install: More error handlingBrian Anderson-0/+1
2014-03-28install: Extract function for creating absolute paths and reuse itBrian Anderson-9/+23
2014-03-28install: Fix string formatting in an errorBrian Anderson-3/+5
2014-03-28install: Explicitly delete the manifest during uninstall. Misc cleanupBrian Anderson-16/+20
2014-03-28install: Verify that installed compiler runsBrian Anderson-3/+39
Another sanity check. Can be disabled in `install.sh` via `--disable-verify` and `configure` with `--disable-verify-install`.
2014-03-28auto merge of #13161 : FlaPer87/rust/master, r=alexcrichtonbors-1/+1
2014-03-28auto merge of #13158 : alexcrichton/rust/issue-13123, r=brsonbors-0/+84
Some unix platforms will send a SIGPIPE signal instead of returning EPIPE from a syscall by default. The native runtime doesn't install a SIGPIPE handler, causing the program to die immediately in this case. This brings the behavior in line with libgreen by ignoring SIGPIPE and propagating EPIPE upwards to the application in the form of an IoError. Closes #13123
2014-03-28native: Ignore SIGPIPE by defaultAlex Crichton-0/+84
Some unix platforms will send a SIGPIPE signal instead of returning EPIPE from a syscall by default. The native runtime doesn't install a SIGPIPE handler, causing the program to die immediately in this case. This brings the behavior in line with libgreen by ignoring SIGPIPE and propagating EPIPE upwards to the application in the form of an IoError. Closes #13123
2014-03-28native: Use WNOHANG before signalingAlex Crichton-45/+116
It turns out that on linux, and possibly other platforms, child processes will continue to accept signals until they have been *reaped*. This means that once the child has exited, it will succeed to receive signals until waitpid() has been invoked on it. This is unfortunate behavior, and differs from what is seen on OSX and windows. This commit changes the behavior of Process::signal() to be the same across platforms, and updates the documentation of Process::kill() to note that when signaling a foreign process it may accept signals until reaped. Implementation-wise, this invokes waitpid() with WNOHANG before each signal to the child to ensure that if the child has exited that we will reap it. Other possibilities include installing a SIGCHLD signal handler, but at this time I believe that that's too complicated. Closes #13124
2014-03-28Remove `Freeze` and add `Share` in vim's syntaxFlavio Percoco-1/+1
2014-03-28Remove a RefCell from pprust::State.Eduard Burtescu-10/+9
2014-03-28De-@ IdentInterner.Eduard Burtescu-48/+53
2014-03-28De-@ NamedMatch.Eduard Burtescu-26/+27
2014-03-28De-@ TokenTree.Eduard Burtescu-17/+26
2014-03-28Used inherited mutability in lexer::Reader.Eduard Burtescu-390/+335
2014-03-28std and green: fix some warningsErick Tryzelaar-5/+5
2014-03-28test: remove pure test, which is now redundant with inline testsErick Tryzelaar-36/+0
2014-03-28collections: remove ListErick Tryzelaar-263/+34
It was decided in a meeting that this module wasn't needed, and more thought should be put into a persistent collections library.
2014-03-28auto merge of #13160 : FlaPer87/rust/rename-pod, r=thestingerbors-218/+233
So far, we've used the term POD "Plain Old Data" to refer to types that can be safely copied. However, this term is not consistent with the other built-in bounds that use verbs instead. This patch renames the `Pod` kind into `Copy`. RFC: 0003-opt-in-builtin-traits r? @nikomatsakis
2014-03-28auto merge of #13154 : tomassedovic/rust/patch-1, r=alexcrichtonbors-1/+1
HashMap and HashSet require keys to implement TotalEq. This makes it possible to use TypeId as a HashMap key again. Question for reviewers: assuming we want to support `HashMap<TypeId, whatever>`, would it make sense to add a relevant test? If so, should it go to libcollections or libstd?
2014-03-28Rename Pod into CopyFlavio Percoco-218/+233
Summary: So far, we've used the term POD "Plain Old Data" to refer to types that can be safely copied. However, this term is not consistent with the other built-in bounds that use verbs instead. This patch renames the Pod kind into Copy. RFC: 0003-opt-in-builtin-traits Test Plan: make check Reviewers: cmr Differential Revision: http://phabricator.octayn.net/D3