This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://blogs.glnd.k12.va.us/teachers/rtownsend/files/2009/03/howareyou_grey.gif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for trait_m.tps.eachi() |i, trait_param_bounds| { | |
| // For each of the corresponding impl ty param's bounds... | |
| let impl_param_bounds = impl_m.tps[i]; | |
| // First, make sure the bounds lists have the same length | |
| // Would be nice to use the ty param names in the error message, | |
| // but we don't have easy access to them here | |
| if impl_param_bounds.len() != trait_param_bounds.len() { | |
| tcx.sess.span_err(sp, #fmt("in method `%s`, \ | |
| ty param %u has %u %s, but the same ty \ | |
| param in its trait declaration has %u %s", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/test/run-pass/select-macro.rs b/src/test/run-pass/select-macro.rs | |
| index 15dd56e..82c1c5c 100644 | |
| --- a/src/test/run-pass/select-macro.rs | |
| +++ b/src/test/run-pass/select-macro.rs | |
| @@ -17,19 +17,19 @@ macro_rules! select_if ( | |
| $count:expr, | |
| $port:path => [ | |
| $(type_this $message:path$(($(x $x: ident),+))dont_type_this* | |
| - -> $next:ident => { $e:expr }),+ | |
| + -> $next:ident => { move $e:expr }),+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum Color { Red, Green, Blue } | |
| fn drawCircleWithColor(color: Option<Color>, radius: double) { | |
| let color = match color { | |
| Some(c) => c, | |
| None => Red | |
| }; | |
| // ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x86_64-apple-darwin/stage1/bin/rustc --cfg stage1 --target=x86_64-apple-darwin -o x86_64-apple-darwin/stage1/lib/rustc/x86_64-apple-darwin/lib/libcore.dylib /Users/TimChevalier/rust/src/libcore/core.rc && touch x86_64-apple-darwin/stage1/lib/rustc/x86_64-apple-darwin/lib/libcore.dylib | |
| <intrinsic>:6:4: 6:32 note: A pub use! visit_tydesc | |
| <intrinsic>:6 pub use rusti::visit_tydesc; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| /Users/TimChevalier/rust/src/libcore/box.rs:8:4: 8:22 error: failed to resolve import | |
| /Users/TimChevalier/rust/src/libcore/box.rs:8 use intrinsic::TyDesc; | |
| ^~~~~~~~~~~~~~~~~~ | |
| /Users/TimChevalier/rust/src/libcore/reflect.rs:6:4: 6:61 error: failed to resolve import | |
| /Users/TimChevalier/rust/src/libcore/reflect.rs:6 use intrinsic::{TyDesc, get_tydesc, visit_tydesc, TyVisitor}; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/rustc/middle/resolve.rs b/src/rustc/middle/resolve.rs | |
| index 1d32d4b..2abd4c2 100644 | |
| --- a/src/rustc/middle/resolve.rs | |
| +++ b/src/rustc/middle/resolve.rs | |
| @@ -1211,7 +1212,7 @@ impl Resolver { | |
| // Build up the import directives. | |
| let module_ = self.get_module_from_parent(parent); | |
| match view_path.node { | |
| - view_path_simple(binding, full_path, ns, _) => { | |
| + view_path_simple(binding, full_path, ns, nid) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://www.reddit.com/r/programming/comments/8fgf4/dear_fellow_rubyists_or_how_to_repel_women_from/c094gf6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[abi = "rust-intrinsic"] | |
| extern mod rusti { | |
| #[cfg(stage0)] | |
| fn move_val_init<T>(&dst: T, -src: T); | |
| #[cfg(stage1)] | |
| fn move_val_init<T>(dst: &mut T, -src: T); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDetq4i6KkJSOMvB7LeAqXMcOAwZyzkyqD7HJVHZsZ+k8K6SiUGqAZ+47boDmr2qL+dbHKkSCCpcVamatsbYSu1IB0D2zPjmc5OOdkjs2Ctgq4gW1yg8E0oH6yE5WNZuUmV5DQPuwCeso/BVPDaZA1aK+jKWeCTgNuataEBd1cPIS3wyscRwyeFmIsDkMSIJxfLYKGNTVQAbVnZlE2fAb4cgDF9ABwHWgZKnwoI0vww532wYPiVR0glYuUI0mnapvRxKJ1kYvGj6lzkfe//FoGvesXwOfqIdPInldrMiYTlvQWfuwYVAjw8C0cp7f+51NwubSeE0zot81jz9tvGiMft tchevalier@host-5-114.mv.mozilla.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub pure fn with_capacity<T>(capacity: uint) -> ~int { | |
| let mut vec = ~5; | |
| return move vec; | |
| } | |
| fn main() { | |
| with_capacity::<uint>(500); | |
| } | |
| // --------------------------------- |