about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-01-23 17:03:34 +0800
committerGitHub <noreply@github.com>2018-01-23 17:03:34 +0800
commit0c9b3ec5b0669be0d61f970c190fdaee3460fe74 (patch)
treecf4f53d64f7123bf923eb5e5db888c6565e4cffc /src/test/debuginfo/enum-thinlto.rs
parent116fb72d3db430c431ffbc9f9e8981529eea804b (diff)
parente47cc69697b47f69d18d3c767b136c987a943645 (diff)
downloadrust-0c9b3ec5b0669be0d61f970c190fdaee3460fe74.tar.gz
rust-0c9b3ec5b0669be0d61f970c190fdaee3460fe74.zip
Rollup merge of #47425 - EdSchouten:immutable-tls, r=nikomatsakis
Properly pass down immutability info for thread-locals.

For thread-locals we call into cat_rvalue_node() to create a CMT
(Category, Mutability, Type) that always has McDeclared. This is
incorrect for thread-locals that don't have the 'mut' keyword; we should
use McImmutable there.

Extend cat_rvalue_node() to have an additional mutability parameter. Fix
up all the callers to make use of that function. Also extend one of the
existing unit tests to cover this.

Fixes: #47053
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions