-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Rolling up PRs in the queue #14187
Rolling up PRs in the queue #14187
Commits on May 14, 2014
-
std: Move the owned module from core to std
The compiler was updated to recognize that implementations for ty_uniq(..) are allowed if the Box lang item is located in the current crate. This enforces the idea that libcore cannot allocated, and moves all related trait implementations from libcore to libstd. This is a breaking change in that the AnyOwnExt trait has moved from the any module to the owned module. Any previous users of std::any::AnyOwnExt should now use std::owned::AnyOwnExt instead. This was done because the trait is intended for Box traits and only Box traits. [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for cbc31df - Browse repository at this point
Copy the full SHA cbc31dfView commit details -
Allow blocks in const expressions
Only blocks with tail expressions that are const expressions and items are allowed.
Configuration menu - View commit details
-
Copy full SHA for 24ece07 - Browse repository at this point
Copy the full SHA 24ece07View commit details -
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for de2c48c - Browse repository at this point
Copy the full SHA de2c48cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a390b5d - Browse repository at this point
Copy the full SHA a390b5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 655487b - Browse repository at this point
Copy the full SHA 655487bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bf268d - Browse repository at this point
Copy the full SHA 5bf268dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21867fa - Browse repository at this point
Copy the full SHA 21867faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 74ad023 - Browse repository at this point
Copy the full SHA 74ad023View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f71b72 - Browse repository at this point
Copy the full SHA 2f71b72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c54d5b - Browse repository at this point
Copy the full SHA 8c54d5bView commit details -
std: Rename str::Normalizations to str::Decompositions
The Normalizations iterator has been renamed to Decompositions. It does not currently include all forms of Unicode normalization, but only encompasses decompositions. If implemented recomposition would likely be a separate iterator which works on the result of this one. [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for df802a2 - Browse repository at this point
Copy the full SHA df802a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef23fa1 - Browse repository at this point
Copy the full SHA ef23fa1View commit details -
add a line to the example to clarify semantics
This is to clarify that match construct doesn't define a new variable, since I observed a person reading the Rust tutorial who seemed to incorrectly think that it did. Fixes rust-lang#13571 .
Configuration menu - View commit details
-
Copy full SHA for 0004953 - Browse repository at this point
Copy the full SHA 0004953View commit details -
rustc: Make std_inject valid for pretty-printer
Inject `extern crate {std, native}` before `use` statements. Add `#![feature(glob)]` since `use std::prelude::*` is used. (Unfortunately `rustc --pretty expanded` does not converge, since `extern crate` and `use std::prelude::*` is injected at every iteration.)
Configuration menu - View commit details
-
Copy full SHA for 6d535b5 - Browse repository at this point
Copy the full SHA 6d535b5View commit details -
pprust: Add parentheses to some Expr
Some `Expr` needs parentheses when printed. For example, without parentheses, `ExprUnary(UnNeg, ExprBinary(BiAdd, ..))` becomes `-lhs + rhs` which is wrong. Those cases don't appear in ordinary code (since parentheses are explicitly added) but they can appear in manually crafted ast by extensions.
Configuration menu - View commit details
-
Copy full SHA for 7f203b6 - Browse repository at this point
Copy the full SHA 7f203b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc31bb0 - Browse repository at this point
Copy the full SHA cc31bb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4675a87 - Browse repository at this point
Copy the full SHA 4675a87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90d976e - Browse repository at this point
Copy the full SHA 90d976eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bdd360b - Browse repository at this point
Copy the full SHA bdd360bView commit details -
test: Add missing
#![feature(managed_boxes)]
The tests use managed boxes, but are not perfectly feature-gated because they use `@` inside macros. (It causes issue after `--pretty expanded`.)
Configuration menu - View commit details
-
Copy full SHA for 0350d8e - Browse repository at this point
Copy the full SHA 0350d8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96eeda9 - Browse repository at this point
Copy the full SHA 96eeda9View commit details -
compiletest: Test
--pretty expanded
After testing `--pretty normal`, it tries to run `--pretty expanded` and typecheck output. Here we don't check convergence since it really diverges: for every iteration, some extra lines (e.g.`extern crate std`) are inserted. Some tests are `ignore-pretty`-ed since they cause various issues with `--pretty expanded`.
Configuration menu - View commit details
-
Copy full SHA for ce8c467 - Browse repository at this point
Copy the full SHA ce8c467View commit details -
Touch up and rebase previous commits
* Added `// no-pretty-expanded` to pretty-print a test, but not run it through the `expanded` variant. * Removed #[deriving] and other expanded attributes after they are expanded * Removed hacks around &str and &&str and friends (from both the parser and the pretty printer). * Un-ignored a bunch of tests
Configuration menu - View commit details
-
Copy full SHA for 1237530 - Browse repository at this point
Copy the full SHA 1237530View commit details -
syntax: Fix printing INT64_MIN
Integers are always parsed as a u64 in libsyntax, but they're stored as i64. The parser and pretty printer both printed an i64 instead of u64, sometimes introducing an extra negative sign.
Configuration menu - View commit details
-
Copy full SHA for 042c8ae - Browse repository at this point
Copy the full SHA 042c8aeView commit details -
syntax: Fix parsing << with closure types
This uses the trick of replacing the << token with a < token to parse closure types correctly. Closes rust-lang#13324
Configuration menu - View commit details
-
Copy full SHA for ac1a270 - Browse repository at this point
Copy the full SHA ac1a270View commit details -
test: Fix a pretty printing test
The pretty printer handles inlines comments quite badly
Configuration menu - View commit details
-
Copy full SHA for 560def1 - Browse repository at this point
Copy the full SHA 560def1View commit details -
test: Ignore a pretty expanded failing test
When expanding, an extra unsafe block is generated which is currently not handled well.
Configuration menu - View commit details
-
Copy full SHA for 1581fb8 - Browse repository at this point
Copy the full SHA 1581fb8View commit details -
syntax: Print suffixed token literals correctly
Previously, literals "1i" were printed as "1". This fixes the numeric-method-autoexport test for pretty printing.
Configuration menu - View commit details
-
Copy full SHA for d92b9ae - Browse repository at this point
Copy the full SHA d92b9aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for f912005 - Browse repository at this point
Copy the full SHA f912005View commit details -
syntax: Preserve attributes in #[deriving]
Now that the #[deriving] attribute is removed, the raw_pointers_deriving lint was broken. This commit restores the lint by preserving lint attributes across #[deriving] to the implementations and using #[automatically_derived] as the trigger for activating the lint.
Configuration menu - View commit details
-
Copy full SHA for 25ac81e - Browse repository at this point
Copy the full SHA 25ac81eView commit details -
syntax: Improve --pretty normal slightly
When printing doc comments, always put a newline after them in a macro invocation to ensure that a line-doc-comment doesn't consume remaining tokens on the line.
Configuration menu - View commit details
-
Copy full SHA for 6878039 - Browse repository at this point
Copy the full SHA 6878039View commit details -
rustllvm: Add LLVMRustArrayType
LLVM internally uses `uint64_t` for array size, but the corresponding C API (`LLVMArrayType`) uses `unsigned int` so ths value is truncated. Therefore rustc generates wrong type for fixed-sized large vector e.g. `[0 x i8]` for `[0u8, ..(1 << 32)]`. This patch adds `LLVMRustArrayType` function for `uint64_t` support.
Configuration menu - View commit details
-
Copy full SHA for 9f7caed - Browse repository at this point
Copy the full SHA 9f7caedView commit details -
io: Implement process wait timeouts
This implements set_timeout() for std::io::Process which will affect wait() operations on the process. This follows the same pattern as the rest of the timeouts emerging in std::io::net. The implementation was super easy for everything except libnative on unix (backwards from usual!), which required a good bit of signal handling. There's a doc comment explaining the strategy in libnative. Internally, this also required refactoring the "helper thread" implementation used by libnative to allow for an extra helper thread (not just the timer). This is a breaking change in terms of the io::Process API. It is now possible for wait() to fail, and subsequently wait_with_output(). These two functions now return IoResult<T> due to the fact that they can time out. Additionally, the wait_with_output() function has moved from taking `&mut self` to taking `self`. If a timeout occurs while waiting with output, the semantics are undesirable in almost all cases if attempting to re-wait on the process. Equivalent functionality can still be achieved by dealing with the output handles manually. [breaking-change] cc rust-lang#13523
9Configuration menu - View commit details
-
Copy full SHA for f09592a - Browse repository at this point
Copy the full SHA f09592aView commit details