- 06 3月, 2014 7 次提交
-
-
由 bors 提交于
Fixes #10877 There was another PR which attempted to fix this in the parser (#11804) and which was closed due to inactivity. This PR modifies typeck instead (as suggested in #11804), which indeed seems to be simpler than modifying the parser and allows for a better error message.
-
由 Dmitry Promsky 提交于
Closes #10877
-
由 bors 提交于
- Moves mtwt hygiene code into its own file - Fixes FIXME's which leads to ~2x speed gain in expansion pass - It is now @-free
-
由 bors 提交于
Just realized that these were quite outdated and quickly fixed it. I have to admit that I did not run the test suite on this one though…
-
由 bors 提交于
-
由 Daniel Micay 提交于
-
由 Daniel Micay 提交于
The `std::cmp` functions are not correct for floating point types. `min(NaN, 2.0)` and `min(2.0, NaN)` return different values, because these functions assume a total order. Floating point types need special `min`, `max` and `clamp` functions.
-
- 05 3月, 2014 24 次提交
-
-
由 Edward Wang 提交于
- Moves mtwt hygiene code into its own file - Fixes FIXME's which leads to ~2x speed gain in expansion pass - It is now @-free
-
由 bors 提交于
Feel free to reject this if I’m mistaken, but the `count` in the for loop does look like it’s going from 0 to `end`.
-
由 Eduard Bopp 提交于
Both for rustc and rustdoc the man pages contained out-of-date version info.
-
由 Simon Sapin 提交于
-
由 bors 提交于
Add the `Deref` and `DerefMut` traits and implement overloading explicit dereferences.
-
由 bors 提交于
I added a new lint for variables whose names contain uppercase characters, since, by convention, variable names should be all lowercase. What motivated me to work on this was when I ran into something like the following: ```rust use std::io::File; use std::io::IoError; fn main() { let mut f = File::open(&Path::new("/something.txt")); let mut buff = [0u8, ..16]; match f.read(buff) { Ok(cnt) => println!("read this many bytes: {}", cnt), Err(IoError{ kind: EndOfFile, .. }) => println!("Got end of file: {}", EndOfFile.to_str()), } } ``` I then got compile errors when I tried to add a wildcard match pattern at the end which I found very confusing since I believed that the 2nd match arm was only matching the EndOfFile condition. The problem is that I hadn't imported io::EndOfFile into the local scope. So, I thought that I was using EndOfFile as a sub-pattern, however, what I was actually doing was creating a new local variable named EndOfFile. This lint makes this error easier to spot by providing a warning that the variable name EndOfFile contains a uppercase characters which provides a nice hint as to why the code isn't doing what is intended. The lint warns on local bindings as well: ```rust let Hi = 0; ``` And also struct fields: ```rust struct Something { X: uint } ```
-
由 Palmer Cox 提交于
-
由 Palmer Cox 提交于
-
由 bors 提交于
Fixes a regression from #4913 which causes items to be exanded with spans lacking expn_info from the context's current backtrace.
-
由 bors 提交于
Linker argument order with respect to libraries is important enough that we shouldn't be attempting to filter out libraries getting passed through to the linker. When linking with a native library that has multiple dependant native libraries, it's useful to have control over the link argument order.
-
由 Palmer Cox 提交于
-
由 Palmer Cox 提交于
-
由 Palmer Cox 提交于
-
由 Nick Cameron 提交于
Fixes a regression from #4913 which causes items to be exanded with spans lacking expn_info from the context's current backtrace.
-
由 bors 提交于
This exists for the sake of compatibility during the ~[T] -> Vec<T> transition. It will be removed in the future.
-
由 Daniel Micay 提交于
This exists for the sake of compatibility during the ~[T] -> Vec<T> transition. It will be removed in the future.
-
由 bors 提交于
This become `Pod` when it was switched to using marker types.
-
由 Daniel Micay 提交于
This become `Pod` when it was switched to using marker types.
-
由 Eduard Burtescu 提交于
-
由 bors 提交于
- Added `TraitObject` representation to `std::raw`. - Added doc to `std::raw`. - Removed `Any::as_void_ptr()` and `Any::as_mut_void_ptr()` methods as they are uneccessary now after the removal of headers on owned boxes. This reduces the number of virtual calls needed from 2 to 1. - Made the `..Ext` implementations work directly with the repr of a trait object. - Removed `Any`-related traits from the prelude. - Added bench. Bench before/after: ~~~ 7 ns/iter (+/- 0) 4 ns/iter (+/- 0) ~~~
-
由 Marvin Löbel 提交于
- Added `TraitObject` representation to `std::raw`. - Added doc to `std::raw`. - Removed `Any::as_void_ptr()` and `Any::as_mut_void_ptr()` methods as they are uneccessary now after the removal of headers on owned boxes. This reduces the number of virtual calls needed. - Made the `..Ext` implementations work directly with the repr of a trait object. - Removed `Any`-related traits from the prelude. - Added bench for `Any`
-
由 bors 提交于
[Here is](http://adrientetar.legtux.org/cached/rust-doc/to_str.rs.html) an example. Closes #12648. @alexcrichton, @huonw
-
由 Adrien Tétar 提交于
-
由 Adrien Tétar 提交于
-
- 04 3月, 2014 9 次提交
-
-
由 Eduard Burtescu 提交于
-
由 Eduard Burtescu 提交于
-
由 bors 提交于
While we are not yet ready for compiler i18n, this also keeps the error handling code clean. The set of altered error messages was obtained by grepping for `"s"` and `(s)`, so there might be some missing messages.
-
由 Kang Seonghoon 提交于
-
由 bors 提交于
syntax: make match arms store the expr directly. Previously `ast::Arm` was always storing a single `ast::Expr` wrapped in an `ast::Block` (for historical reasons, AIUI), so we might as just store that expr directly. Closes #3085.
-
由 bors 提交于
-
由 bors 提交于
This should fix the travis builds.
-
由 Alex Crichton 提交于
This should fix the travis builds.
-
由 bors 提交于
std: add reserve_additional and an Extendable impl to Vec.
-