{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/36646","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/36646/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/36646/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/36646/events","html_url":"https://github.com/rust-lang/rust/issues/36646","id":178580082,"number":36646,"title":"i8 and u8 not correctly shown in MSVC debugger","user":{"login":"Boddlnagg","id":1024333,"avatar_url":"https://avatars.githubusercontent.com/u/1024333?v=3","gravatar_id":"","url":"https://api.github.com/users/Boddlnagg","html_url":"https://github.com/Boddlnagg","followers_url":"https://api.github.com/users/Boddlnagg/followers","following_url":"https://api.github.com/users/Boddlnagg/following{/other_user}","gists_url":"https://api.github.com/users/Boddlnagg/gists{/gist_id}","starred_url":"https://api.github.com/users/Boddlnagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boddlnagg/subscriptions","organizations_url":"https://api.github.com/users/Boddlnagg/orgs","repos_url":"https://api.github.com/users/Boddlnagg/repos","events_url":"https://api.github.com/users/Boddlnagg/events{/privacy}","received_events_url":"https://api.github.com/users/Boddlnagg/received_events","type":"User","site_admin":false},"labels":[{"id":203130,"url":"https://api.github.com/repos/rust-lang/rust/labels/A-debuginfo","name":"A-debuginfo","color":"d7e102","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-09-22T11:05:59Z","updated_at":"2016-10-31T21:24:07Z","closed_at":"2016-10-31T21:24:07Z","body":"Compiling the following program with the MSVC toolchain and the running it in the MSVC debugger shows that there is some problem with inspecting values of type `i8` and `u8` (this was originally found while investigating #36503):\n\n``` rust\nfn main() {\n    let value_i8:  i8  = -1;\n    let value_i16: i16 = -2;\n    let value_i32: i32 = -3;\n    let value_i64: i64 = -4;\n\n    let value_u8:  u8  = 1;\n    let value_u16: u16 = 2;\n    let value_u32: u32 = 3;\n    let value_u64: u64 = 4;\n\n    let value_f32: f32 = 5.;\n    let value_f64: f64 = 6.;\n\n\n    let slice_u8: &[u8] = &[1,2,3];\n    let slice_i8: &[i8] = &[1,2,3];\n    let slice_u16: &[u16] = &[1,2,3];\n    let slice_i16: &[i16] = &[1,2,3];\n\n    // Without these, the values would be optimized away\n    println!(\"{} {} {} {}\", value_i8, value_i16, value_i32, value_i64);\n    println!(\"{} {} {} {}\", value_u8, value_u16, value_u32, value_u64);\n    println!(\"{} {}\", value_f32, value_f64);\n    println!(\"{:?} {:?} {:?} {:?}\", slice_u8, slice_i8, slice_u16, slice_i16);\n}\n```\n\n![debugger](https://cloud.githubusercontent.com/assets/1024333/18745991/10855b18-80c5-11e6-8594-435d31a55844.png)\n\nThe screenshot shows that the problem also appears for `&[u8]` and `&[i8]`, where the debugger can't show the pointer (`data_ptr`).\n"}}
{"actor":{"display_login":"michaelwoerister"}}