diff options
| author | bors <bors@rust-lang.org> | 2016-01-04 22:09:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-01-04 22:09:52 +0000 |
| commit | 41611baececec41b54730079a53afb43ac7f9e49 (patch) | |
| tree | 90aee9af7c5feb7d777b2f16a55274f797f4f733 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | badc23b6ad47c6b6d401a3ea1dc5163bdcd86cd7 (diff) | |
| parent | ff93fc81925a93cb1434e6c3a8537f10402827e7 (diff) | |
| download | rust-41611baececec41b54730079a53afb43ac7f9e49.tar.gz rust-41611baececec41b54730079a53afb43ac7f9e49.zip | |
Auto merge of #30661 - michaelwoerister:trans_fn_attrs, r=nrc
So far `librustc::trans::base::trans_fn()` and `trans_closure()` have been passed the list of attributes on the function being translated *only* if the function was local and non-generic. For generic functions, functions inlined from other crates, functions with foreign ABI and for closures, only an empty list of attributes was ever passed to `trans_fn()`. This led to the case that generic functions marked with `#[rustc_mir]` where not actually translated via MIR but via the legacy translation path. This PR makes function/closure attributes always be passed to `trans_fn()` and disables the one test where this makes a difference. If there is an actual reason why attributes were not passed along in these cases, let me know. cc @rust-lang/compiler cc @luqmana regarding the test case
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
