File tree 4 files changed +16
-6
lines changed
librustc_codegen_ssa/back
4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -156,8 +156,9 @@ impl<'a> GccLinker<'a> {
156
156
// * On OSX they have their own linker, not binutils'
157
157
// * For WebAssembly/JS the only functional linker is LLD, which doesn't
158
158
// support hint flags
159
- !self . sess . target . target . options . is_like_osx && self . sess . target . target . arch != "wasm32" &&
160
- self . sess . target . target . arch != "asmjs"
159
+ !self . sess . target . target . options . is_like_osx
160
+ && self . sess . target . target . arch != "wasm32"
161
+ && self . sess . target . target . arch != "asmjs"
161
162
}
162
163
163
164
// Some platforms take hints about whether a library is static or dynamic.
@@ -869,7 +870,13 @@ impl<'a> Linker for EmLinker<'a> {
869
870
DebugInfo :: Limited => "-g3" ,
870
871
// FIXME: wasm2js errors with -g3 and above because it does not support source maps.
871
872
// See https://github.com/WebAssembly/binaryen/issues/2410
872
- DebugInfo :: Full => if self . sess . target . target . arch == "asmjs" { "-g3" } else { "-g4" } ,
873
+ DebugInfo :: Full => {
874
+ if self . sess . target . target . arch == "asmjs" {
875
+ "-g3"
876
+ } else {
877
+ "-g4"
878
+ }
879
+ }
873
880
} ) ;
874
881
}
875
882
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ cfg_if::cfg_if! {
41
41
} else if #[ cfg( target_os = "wasi" ) ] {
42
42
mod wasi;
43
43
pub use self :: wasi:: * ;
44
- } else if #[ cfg( any ( target_arch = "wasm32" , target_arch = "asmjs" ) ) ] {
44
+ } else if #[ cfg( target_arch = "wasm32" ) ] {
45
45
mod wasm;
46
46
pub use self :: wasm:: * ;
47
47
} else if #[ cfg( all( target_vendor = "fortanix" , target_env = "sgx" ) ) ] {
Original file line number Diff line number Diff line change @@ -203,7 +203,10 @@ pub use self::local::fast::Key as __FastLocalKeyInner;
203
203
#[ doc( hidden) ]
204
204
pub use self :: local:: os:: Key as __OsLocalKeyInner;
205
205
#[ unstable( feature = "libstd_thread_internals" , issue = "none" ) ]
206
- #[ cfg( all( any( target_arch = "wasm32" , target_arch = "asmjs" ) , not( target_feature = "atomics" ) ) ) ]
206
+ #[ cfg( all(
207
+ any( target_arch = "wasm32" , target_arch = "asmjs" ) ,
208
+ not( target_feature = "atomics" )
209
+ ) ) ]
207
210
#[ doc( hidden) ]
208
211
pub use self :: local:: statik:: Key as __StaticLocalKeyInner;
209
212
Original file line number Diff line number Diff line change @@ -188,8 +188,8 @@ fn test_should_panic_bad_message() {
188
188
189
189
#[ test]
190
190
fn test_should_panic_non_string_message_type ( ) {
191
- use std:: any:: TypeId ;
192
191
use crate :: tests:: TrFailedMsg ;
192
+ use std:: any:: TypeId ;
193
193
fn f ( ) {
194
194
panic ! ( 1i32 ) ;
195
195
}
You can’t perform that action at this time.
0 commit comments