diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-07-25 17:29:34 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-07-25 17:30:13 -0700 |
| commit | 3aee39a6ec910bde6ae9a5423b11aaaad4a1b089 (patch) | |
| tree | 7b33b33d6df0ba71edbc1943a6ab0c6177726cff /src/rustc/metadata/encoder.rs | |
| parent | 987814f11e4614b8aa712eb19cff78fbbe0d34fa (diff) | |
| download | rust-3aee39a6ec910bde6ae9a5423b11aaaad4a1b089.tar.gz rust-3aee39a6ec910bde6ae9a5423b11aaaad4a1b089.zip | |
Add #[inline(never)], and also fixed inlining on vec::push
Diffstat (limited to 'src/rustc/metadata/encoder.rs')
| -rw-r--r-- | src/rustc/metadata/encoder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustc/metadata/encoder.rs b/src/rustc/metadata/encoder.rs index 69e97f7e9db..b2847b3acc5 100644 --- a/src/rustc/metadata/encoder.rs +++ b/src/rustc/metadata/encoder.rs @@ -545,8 +545,8 @@ fn purity_fn_family(p: purity) -> char { fn should_inline(attrs: ~[attribute]) -> bool { alt attr::find_inline_attr(attrs) { - attr::ia_none { false } - attr::ia_hint | attr::ia_always { true } + attr::ia_none | attr::ia_never { false } + attr::ia_hint | attr::ia_always { true } } } |
