diff options
| author | bors <bors@rust-lang.org> | 2014-09-22 23:50:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-22 23:50:30 +0000 |
| commit | 43fd619819b334b8548dca98797bd4c8078636cb (patch) | |
| tree | 5d0942d04d12717768a4bab5a2b608a53bf25e69 /src/librustrt | |
| parent | 4b5f4563bff67e2727befdb235314726849331a7 (diff) | |
| parent | d845857fd915a2044f74711db3b7e71146b35200 (diff) | |
| download | rust-43fd619819b334b8548dca98797bd4c8078636cb.tar.gz rust-43fd619819b334b8548dca98797bd4c8078636cb.zip | |
auto merge of #17286 : vberger/rust/deprecated_in_macros, r=aturon
Closes #17185. The stability lint will now check code generated by macro expansion. It will allow to detect : - arguments passed to macros using deprecated (and others) items - macro expansion generating code using deprecated items due to its arguments (hence the second commit, fixing such issue found in libcollections) Checking is still done at expansion, but it will also detect a macro explicitly using a deprecated item in its definition.
Diffstat (limited to 'src/librustrt')
| -rw-r--r-- | src/librustrt/local_data.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustrt/local_data.rs b/src/librustrt/local_data.rs index ba5a4dc3f21..e7ce5b7dca8 100644 --- a/src/librustrt/local_data.rs +++ b/src/librustrt/local_data.rs @@ -423,7 +423,7 @@ mod tests { // TLD shouldn't carry over. assert!(my_key.get().is_none()); my_key.replace(Some("child data".to_string())); - assert!(my_key.get().get_ref().as_slice() == "child data"); + assert!(my_key.get().as_ref().unwrap().as_slice() == "child data"); // should be cleaned up for us }); |
