about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-11-02 15:09:42 -0400
committerGitHub <noreply@github.com>2016-11-02 15:09:42 -0400
commit27f41b7001913e5d3741b8a1c3623483876673fb (patch)
treee62fb18d8659c153799c5e091aa1ab150fe24eb2 /src/test/run-pass/thinlto
parent62e026be5a4d65ebdd79e1e3fcf75085351a363e (diff)
parent0e391bf22c4810cdb2f0e026037b4b9d1234c679 (diff)
downloadrust-27f41b7001913e5d3741b8a1c3623483876673fb.tar.gz
rust-27f41b7001913e5d3741b8a1c3623483876673fb.zip
Rollup merge of #37513 - michaelwoerister:hash-panic-spans, r=nikomatsakis
ICH: Hash expression spans if their source location is captured for panics.

Since the location of some expressions is captured in error message constants, it has an influence on machine code and consequently we need to take them into account by the incr. comp. hash. This PR makes this happen for `+, -, *, /, %` and for array indexing -- let me know if I forgot anything.

In the future we might want to change the codegen strategy for those error messages, so that they are stored in a separate object file with a stable symbol name, so that only this object file has to be regenerated when source locations change. This strategy would also eliminate unnecessary duplications due  to monomorphization, as @arielb1 has pointed out on IRC. I opened https://github.com/rust-lang/rust/issues/37512, so we don't forget about this.

r? @nikomatsakis
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions