]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_target/spec/wasm32_base.rs
Auto merge of #68414 - michaelwoerister:share-drop-glue, r=alexcrichton
[rust.git] / src / librustc_target / spec / wasm32_base.rs
index e18a9e66468c786fbbb2ef80504a9135a9886124..47e80e8db19f66229ab5f99d0934390e841bd535 100644 (file)
@@ -1,5 +1,5 @@
+use super::{LinkerFlavor, LldFlavor, PanicStrategy, TargetOptions};
 use std::collections::BTreeMap;
-use super::{LldFlavor, TargetOptions, PanicStrategy, LinkerFlavor};
 
 pub fn options() -> TargetOptions {
     let mut lld_args = Vec::new();
@@ -81,7 +81,7 @@ pub fn options() -> TargetOptions {
         dynamic_linking: true,
         only_cdylib: true,
 
-        // This means we'll just embed a `start` function in the wasm module
+        // This means we'll just embed a `#[start]` function in the wasm module
         executables: true,
 
         // relatively self-explanatory!
@@ -143,6 +143,6 @@ pub fn options() -> TargetOptions {
         // gdb scripts don't work on wasm blobs
         emit_debug_gdb_scripts: false,
 
-        .. Default::default()
+        ..Default::default()
     }
 }