From 8e58af40044a69a9a88de86e222c287eb79a4dcc Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sat, 21 Mar 2015 21:15:47 -0400 Subject: Fallout in stdlib, rustdoc, rustc, etc. For most maps, converted uses of `[]` on maps to `get` in rustc, since stage0 and stage1+ disagree about how to use `[]`. --- src/libstd/thread_local/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/thread_local/mod.rs b/src/libstd/thread_local/mod.rs index 08780292c88..b2fd8a8e616 100644 --- a/src/libstd/thread_local/mod.rs +++ b/src/libstd/thread_local/mod.rs @@ -745,7 +745,7 @@ mod dynamic_tests { thread_local!(static FOO: RefCell> = map()); FOO.with(|map| { - assert_eq!(map.borrow()[1], 2); + assert_eq!(map.borrow()[&1], 2); }); } -- cgit 1.4.1-3-g733a5