about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-06-07 21:58:44 -0400
committerGitHub <noreply@github.com>2017-06-07 21:58:44 -0400
commit3ce88c7c8d3a422146bdc749c4e0207517b1f92a (patch)
treeb03d95cd3a30c560d6351bcd4e87c3921928145a /src/test/run-pass/thinlto
parent0362891073f442a151b1255c57549b46beaa1fb3 (diff)
parent980a5b0529a94d68c1ab37170f810e7cf73996d8 (diff)
downloadrust-3ce88c7c8d3a422146bdc749c4e0207517b1f92a.tar.gz
rust-3ce88c7c8d3a422146bdc749c4e0207517b1f92a.zip
Rollup merge of #42490 - gaurikholkar:master, r=eddyb
Changing error message from `contains interior mutability` to `may contain interior mutability`

Fixes #40313 . I have changed the message from `contains interior mutability` to `may contain interior mutability` for the following example
```
use std::cell::Cell;
use std::panic::catch_unwind;
fn main() {
    let mut x = Cell::new(22);
    catch_unwind(|| { x.set(23); });
}
```
which has been added as a ui test.

Also, the message [here](https://github.com/gaurikholkar/rust/blob/master/src/librustc_mir/transform/qualify_consts.rs#L666) and it's respective `compile-fail` test have been modified.

cc @nikomatsakis  @Mark-Simulacrum  @eddyb
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions