diff options
| author | bors <bors@rust-lang.org> | 2022-08-27 06:12:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-08-27 06:12:17 +0000 |
| commit | d0e1491ecd6ab30a47ebe29f8a86463eacc6a997 (patch) | |
| tree | 80b3628973454308a3c7a18bae640c758422db31 /src/test/codegen | |
| parent | 9845f4c47e7062867c73b6bed8f1df273b56d5d7 (diff) | |
| parent | bd893725637d38e508811c868f100bda3d13583b (diff) | |
| download | rust-d0e1491ecd6ab30a47ebe29f8a86463eacc6a997.tar.gz rust-d0e1491ecd6ab30a47ebe29f8a86463eacc6a997.zip | |
Auto merge of #101074 - JohnTitor:rollup-zwznihq, r=JohnTitor
Rollup of 11 pull requests Successful merges: - #96240 (Stabilize `const_ptr_offset_from`.) - #99784 (Make forward compatibility lint deprecated_cfg_attr_crate_type_name deny by default) - #100811 (Fix wrong compiletest filters on Windows) - #100924 (Smaller improvements of tidy and the unicode generator) - #100953 (Update documentation for `write!` and `writeln!`) - #101018 (rustdoc: omit start/end tags for empty item description blocks) - #101044 (rustdoc: remove unused CSS for `hidden-by-*-hider`) - #101046 (rustdoc: remove incorrect CSS selector `.impl-items table td`) - #101057 (Merge implementations of HIR fn_decl and fn_sig.) - #101062 (rustdoc: remove empty extern_crates and type="text/javascript" on script) - #101063 (Merge duplicated CSS rules) Failed merges: - #101055 (Use smaller span for suggestions) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/external-no-mangle-statics.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/codegen/external-no-mangle-statics.rs b/src/test/codegen/external-no-mangle-statics.rs index 6274434cd8f..c6ecb7aa96a 100644 --- a/src/test/codegen/external-no-mangle-statics.rs +++ b/src/test/codegen/external-no-mangle-statics.rs @@ -1,12 +1,11 @@ // revisions: lib staticlib // ignore-emscripten default visibility is hidden // compile-flags: -O +// [lib] compile-flags: --crate-type lib +// [staticlib] compile-flags: --crate-type staticlib // `#[no_mangle]`d static variables always have external linkage, i.e., no `internal` in their // definitions -#![cfg_attr(lib, crate_type = "lib")] -#![cfg_attr(staticlib, crate_type = "staticlib")] - // CHECK: @A = local_unnamed_addr constant #[no_mangle] static A: u8 = 0; |
