diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-03-21 21:15:47 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-03-23 16:55:45 -0400 |
| commit | 8e58af40044a69a9a88de86e222c287eb79a4dcc (patch) | |
| tree | f9d5247df0659d045afc7b98da401a2b969a91cb /src/libstd | |
| parent | b4d4daf007753dfb04d87b1ffe1c2ad2d8811d5a (diff) | |
| download | rust-8e58af40044a69a9a88de86e222c287eb79a4dcc.tar.gz rust-8e58af40044a69a9a88de86e222c287eb79a4dcc.zip | |
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 `[]`.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/thread_local/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<HashMap<i32, i32>> = map()); FOO.with(|map| { - assert_eq!(map.borrow()[1], 2); + assert_eq!(map.borrow()[&1], 2); }); } |
