diff options
| author | Samy Kacimi <samy.kacimi@protonmail.ch> | 2019-07-07 23:14:41 +0200 |
|---|---|---|
| committer | Samy Kacimi <samy.kacimi@protonmail.ch> | 2019-07-08 00:54:38 +0200 |
| commit | 8aa9f18eb5dfe9bdff39750ee8f527daef7c20f5 (patch) | |
| tree | e1d5d6a1be0db05379733c66deaf0c27e00a1798 /src/librustc_codegen_ssa | |
| parent | 6e310f2abae97323ca1d5469657b83aa1a9407e0 (diff) | |
| download | rust-8aa9f18eb5dfe9bdff39750ee8f527daef7c20f5.tar.gz rust-8aa9f18eb5dfe9bdff39750ee8f527daef7c20f5.zip | |
normalize use of backticks for compiler messages in librustc_codegen
https://github.com/rust-lang/rust/issues/60532
Diffstat (limited to 'src/librustc_codegen_ssa')
| -rw-r--r-- | src/librustc_codegen_ssa/base.rs | 2 | ||||
| -rw-r--r-- | src/librustc_codegen_ssa/mir/place.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_ssa/base.rs b/src/librustc_codegen_ssa/base.rs index a554bf7761c..ca7e17ec97a 100644 --- a/src/librustc_codegen_ssa/base.rs +++ b/src/librustc_codegen_ssa/base.rs @@ -433,7 +433,7 @@ pub fn maybe_create_entry_wrapper<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(cx: &' if cx.get_defined_value("main").is_some() { // FIXME: We should be smart and show a better diagnostic here. cx.sess().struct_span_err(sp, "entry symbol `main` defined multiple times") - .help("did you use #[no_mangle] on `fn main`? Use #[start] instead") + .help("did you use `#[no_mangle]` on `fn main`? Use `#[start]` instead") .emit(); cx.sess().abort_if_errors(); bug!(); diff --git a/src/librustc_codegen_ssa/mir/place.rs b/src/librustc_codegen_ssa/mir/place.rs index be5d7b09965..010be3e8c74 100644 --- a/src/librustc_codegen_ssa/mir/place.rs +++ b/src/librustc_codegen_ssa/mir/place.rs @@ -138,7 +138,7 @@ impl<'a, 'tcx, V: CodegenObject> PlaceRef<'tcx, V> { // * packed struct - there is no alignment padding match field.ty.sty { _ if self.llextra.is_none() => { - debug!("Unsized field `{}`, of `{:?}` has no metadata for adjustment", + debug!("unsized field `{}`, of `{:?}` has no metadata for adjustment", ix, self.llval); return simple(); } |
