- 25 7月, 2014 20 次提交
-
-
由 Alex Crichton 提交于
Apparently keypress doesn't quite work in all browsers due to some not invoking the handler and jquery not setting the right `which` field in all circumstances. According to http://stackoverflow.com/questions/2166771 switching over to `keydown` works and it appears to do the trick. Tested in Safari, Firefox, and Chrome. Closes #15011
-
由 Alex Crichton 提交于
Closes #14585
-
由 Alex Crichton 提交于
Closes #13893
-
由 bors 提交于
This add the LLVM noalias attribute to parameters of a shared reference type (&) which have a safe interior.
-
由 bors 提交于
method calls are involved. This breaks code like: impl<T:Copy> Foo for T { ... } fn take_param<T:Foo>(foo: &T) { ... } fn main() { let x = box 3i; // note no `Copy` bound take_param(&x); } Change this code to not contain a type error. For example: impl<T:Copy> Foo for T { ... } fn take_param<T:Foo>(foo: &T) { ... } fn main() { let x = 3i; // satisfies `Copy` bound take_param(&x); } Closes #15860. [breaking-change] r? @alexcrichton
-
由 Patrick Walton 提交于
method calls are involved. This breaks code like: impl<T:Copy> Foo for T { ... } fn take_param<T:Foo>(foo: &T) { ... } fn main() { let x = box 3i; // note no `Copy` bound take_param(&x); } Change this code to not contain a type error. For example: impl<T:Copy> Foo for T { ... } fn take_param<T:Foo>(foo: &T) { ... } fn main() { let x = 3i; // satisfies `Copy` bound take_param(&x); } Closes #15860. [breaking-change]
-
由 bors 提交于
This breaks code like: struct A<'a> { func: &'a fn() -> Option<int> } fn foo() -> Option<int> { ... } fn create() -> A<'static> { A { func: &foo } } Change this code to not take functions by reference. For example: struct A { func: extern "Rust" fn() -> Option<int> } fn foo() -> Option<int> { ... } fn create() -> A { A { func: foo } } Closes #13595. [breaking-change] r? @huonw
-
由 bors 提交于
The translation is based on an early version of tutorial.md, thus most of entries have been marked as fuzzy and actually they are incorrect. Now tutorial.md is planed to be replaced with guide.md, so I'd suggest removing translation files for a while. /cc @gifnksm
-
由 John Kåre Alsaker 提交于
This add the LLVM noalias attribute to parameters of a shared reference type (&) which have a safe interior.
-
由 bors 提交于
librustc: Stop desugaring `for` expressions and translate them directly. This makes edge cases in which the `Iterator` trait was not in scope and/or `Option` or its variants were not in scope work properly. This breaks code that looks like: struct MyStruct { ... } impl MyStruct { fn next(&mut self) -> Option<int> { ... } } for x in MyStruct { ... } { ... } Change ad-hoc `next` methods like the above to implementations of the `Iterator` trait. For example: impl Iterator<int> for MyStruct { fn next(&mut self) -> Option<int> { ... } } Closes #15392. [breaking-change]
-
由 Patrick Walton 提交于
This makes edge cases in which the `Iterator` trait was not in scope and/or `Option` or its variants were not in scope work properly. This breaks code that looks like: struct MyStruct { ... } impl MyStruct { fn next(&mut self) -> Option<int> { ... } } for x in MyStruct { ... } { ... } Change ad-hoc `next` methods like the above to implementations of the `Iterator` trait. For example: impl Iterator<int> for MyStruct { fn next(&mut self) -> Option<int> { ... } } Closes #15392. [breaking-change]
-
由 bors 提交于
Fix ICE when there's an incorrect enum variant constructor in match arm. Closes #15896.
-
由 bors 提交于
Forgot two methods, but @alexcrichton was a bit too quick to accept #15943, so I made a new PR.
-
由 Patrick Walton 提交于
This breaks code like: struct A<'a> { func: &'a fn() -> Option<int> } fn foo() -> Option<int> { ... } fn create() -> A<'static> { A { func: &foo } } Change this code to not take functions by reference. For example: struct A { func: extern "Rust" fn() -> Option<int> } fn foo() -> Option<int> { ... } fn create() -> A { A { func: foo } } Closes #13595. [breaking-change]
-
由 OGINO Masanori 提交于
The translation is based on an early version of tutorial.md, thus most of entries have been marked as fuzzy and actually they are incorrect. Now tutorial.md is planed to be replaced with guide.md, so I'd suggest removing translation files for a while. Signed-off-by: NOGINO Masanori <masanori.ogino@gmail.com>
-
由 bors 提交于
Apparently the default getFile implementation for a memory buffer in LLVM ends up requiring a null terminator at the end of the file. This isn't true a good bit of the time apparently on OSX. There have been a number of failed nightly/snapshot builds recently with this strange assertion. This modifies the calls to MemoryBuffer::getFile to explicitly not ask for a null terminator.
-
由 Alex Crichton 提交于
Apparently the default getFile implementation for a memory buffer in LLVM ends up requiring a null terminator at the end of the file. This isn't true a good bit of the time apparently on OSX. There have been a number of failed nightly/snapshot builds recently with this strange assertion. This modifies the calls to MemoryBuffer::getFile to explicitly not ask for a null terminator.
-
由 bors 提交于
Everyone agreed. Related to #14248, close #15328 @brson OK?
-
由 Edward Wang 提交于
Fix ICE when there's an incorrect enum variant constructor in match arm. Closes #15896.
-
由 bors 提交于
-
- 24 7月, 2014 20 次提交
-
-
由 Alex Crichton 提交于
Closes #15807 (Deprecate some unsafe functions in `str::raw` and remove `OwnedStr` trait) Closes #15859 (Implement `Show` for `CString` and fix warning compiling tests for libcollections) Closes #15911 (Updated LLVM for iOS) Closes #15925 (libsyntax: Remove `~self` and `mut ~self` from the language.) Closes #15930 (Add examples for Checked[Add|Sub|Mul|Div]) Closes #15933 (rustdoc: make table of contents optional) Closes #15937 (librustc: Make bare functions implement the `FnMut` trait.) Closes #15938 (librustc: Check structure constructors against their types.) Closes #15939 (rustdoc: Add a --crate-name option) Closes #15942 (Document trie collections) Closes #15943 (Document SmallIntMap)
-
由 Jonas Hietala 提交于
Move update above for better docs progression.
-
由 Jonas Hietala 提交于
-
由 Jonas Hietala 提交于
-
由 Jonas Hietala 提交于
-
由 Jonas Hietala 提交于
-
由 Alex Crichton 提交于
Like rustc, this is required by cargo to build documentation.
-
由 Patrick Walton 提交于
This breaks code like: struct Point<T> { x: T, y: T, } let pt = Point::<bool> { x: 1, y: 2, }; Change this code to not contain a type error. For example: let pt = Point::<int> { x: 1, y: 2, }; Closes #9620. Closes #15875. [breaking-change]
-
由 Patrick Walton 提交于
This is done entirely in the libraries for functions up to 16 arguments. A macro is used so that more arguments can be easily added if we need. Note that I had to adjust the overloaded call algorithm to not try calling the overloaded call operator if the callee is a built-in function type, to prevent loops. Closes #15448.
-
由 Aaron Turon 提交于
rustdoc currently determines whether to produce a table of contents (along with numbered sections) from the input type: yes for markdown input, no for Rust input. This commit adds a flag to disable the table of contents for markdown input, which is useful for embedding the output in a larger context.
-
由 nham 提交于
-
由 Patrick Walton 提交于
This eliminates the last vestige of the `~` syntax. Instead of `~self`, write `self: Box<TypeOfSelf>`; instead of `mut ~self`, write `mut self: Box<TypeOfSelf>`, replacing `TypeOfSelf` with the self-type parameter as specified in the implementation. Closes #13885. [breaking-change]
-
由 Valerii Hiora 提交于
There should be no more problems during SjLj pass
-
由 Adolfo Ochagavía 提交于
This also removes checks in other methods of `CString` Breaking changes: * `CString::new` now fails if `buf` is null. To avoid this add a check before creatng a new `CString` . * The `is_null` and `is_not_null` methods are deprecated, because a `CString` cannot be null. * Other methods which used to fail if the `CString` was null do not fail anymore [breaking-change]
-
由 Adolfo Ochagavía 提交于
We use use `from_utf8_lossy` to convert it to a MaybeOwned string, to avoid failing in case the CString contains invalid UTF-8
-
由 Adolfo Ochagavía 提交于
-
由 Adolfo Ochagavía 提交于
-
由 Adolfo Ochagavía 提交于
-
由 Adolfo Ochagavía 提交于
Replaced by `string::raw::from_parts` [breaking-change]
-
由 Adolfo Ochagavía 提交于
Replaced by `string::raw::from_buf_len` [breaking-change]
-