100+ results for 'crate_type'

Not the results you expected?

enum_defs.rs (https://gitlab.com/jianglu/rust) Rust · 653 lines

30 #![feature(stmt_expr_attributes)]

31 #![crate_type="rlib"]

32

arm-types.rs (https://gitlab.com/rust-lang/rust) Rust · 530 lines

6 #![feature(no_core, lang_items, rustc_attrs, repr_simd, asm_sym)]

7 #![crate_type = "rlib"]

8 #![no_core]

function_interfaces.rs (https://gitlab.com/jianglu/rust) Rust · 361 lines

27 #![feature(rustc_attrs)]

28 #![crate_type = "rlib"]

29

struct_constructors.rs (https://gitlab.com/jianglu/rust) Rust · 250 lines

24 #![feature(rustc_attrs)]

25 #![crate_type="rlib"]

26

test_bad_config.rs (https://gitlab.com/alx741/cargo) Rust · 456 lines

244

245 test!(bad_crate_type {

246 let foo = project("foo")

lint_stability.rs (https://gitlab.com/alx741/rust) Rust · 179 lines

10 #![crate_name="lint_stability"]

11 #![crate_type = "lib"]

12 #![feature(staged_api)]

issue-74564-if-expr-stack-overflow.rs (https://gitlab.com/rust-lang/rust) Rust · 2548 lines

2 // ignore-tidy-filelength

3 #![crate_type = "rlib"]

4

trait_impls.rs (https://gitlab.com/rust-lang/rust) Rust · 616 lines

20 #![feature(specialization)]

21 #![crate_type="rlib"]

22

trait_defs.rs (https://gitlab.com/rust-lang/rust) Rust · 1400 lines

24 #![feature(rustc_attrs)]

25 #![crate_type="rlib"]

26 #![feature(associated_type_defaults)]

rustc.rs (https://gitlab.com/frewsxcv/cargo) Rust · 817 lines

137 #[cargo_test]

138 fn fails_with_crate_type_and_without_unstable_options() {

139 let p = project().file("src/lib.rs", r#" "#).build();

151 #[cargo_test]

152 fn fails_with_crate_type_to_multi_binaries() {

153 let p = project()

170 #[cargo_test]

171 fn fails_with_crate_type_to_multi_examples() {

172 let p = project()

204 #[cargo_test]

205 fn fails_with_crate_type_to_binary() {

206 let p = project().file("src/bin/foo.rs", "fn main() {}").build();

218 #[cargo_test]

219 fn build_with_crate_type_for_foo() {

220 let p = project().file("src/lib.rs", "").build();

metadata.rs (https://gitlab.com/frewsxcv/cargo) Rust · 1533 lines

49 ],

50 "crate_types": [

51 "bin"

100 #[cargo_test]

101 fn library_with_several_crate_types() {

102 let p = project()

147 ],

148 "crate_types": [

149 "lib",

235 ],

236 "crate_types": [

237 "lib"

353 {

354 "crate_types": [

355 "lib"

test_cargo_compile_plugins.rs (https://gitlab.com/alx741/cargo) Rust · 269 lines

74 name = "baz"

75 crate_type = ["dylib"]

76 "#)

subdiagnostic-derive.rs (https://gitlab.com/rust-lang/rust) Rust · 501 lines

10 #![feature(rustc_private)]

11 #![crate_type = "lib"]

12

read_manifest.rs (https://gitlab.com/frewsxcv/cargo) Rust · 206 lines

31 "kind":["bin"],

32 "crate_types":["bin"],

33 "doc": true,

lib.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 218 lines

11 #![crate_name = "alloc_system"]

12 #![crate_type = "rlib"]

13 #![no_std]

lib.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 124 lines

11 #![crate_name = "alloc_jemalloc"]

12 #![crate_type = "rlib"]

13 #![no_std]

entry.rs (https://gitlab.com/alx741/rust) Rust · 168 lines

53

54 let any_exe = session.crate_types.borrow().iter().any(|ty| {

55 *ty == config::CrateTypeExecutable

lib.rs (https://gitlab.com/alx741/rust) Rust · 111 lines

12 #![unstable(feature = "rustc_private", issue = "27812")]

13 #![crate_type = "dylib"]

14 #![crate_type = "rlib"]

entry.rs (https://gitlab.com/pranith/rust) Rust · 148 lines

49 pub fn find_entry_point(session: &Session, ast_map: &ast_map::Map) {

50 let any_exe = session.crate_types.borrow().iter().any(|ty| {

51 *ty == config::CrateTypeExecutable

riscv64-lp64-lp64f-lp64d-abi.rs (https://gitlab.com/rust-lang/rust) Rust · 189 lines

3

4 #![crate_type = "lib"]

5 #![no_core]

unstable_generic_param.rs (https://gitlab.com/rust-lang/rust) Rust · 229 lines

1 #![crate_type = "lib"]

2 #![feature(staged_api)]

unit_graph.rs (https://gitlab.com/frewsxcv/cargo) Rust · 233 lines

86 "target": {

87 "crate_types": [

88 "lib"

131 "target": {

132 "crate_types": [

133 "lib"

169 "target": {

170 "crate_types": [

171 "lib"

212 "target": {

213 "crate_types": [

214 "lib"

x86-modifiers.rs (https://gitlab.com/rust-lang/rust) Rust · 205 lines

11 #![feature(no_core, lang_items, rustc_attrs)]

12 #![crate_type = "rlib"]

13 #![no_core]

procedural_mbe_matching.rs (https://gitlab.com/pranith/rust) Rust · 69 lines

12

13 #![crate_type="dylib"]

14 #![feature(plugin_registrar, quote, rustc_private)]

lib.rs (https://gitlab.com/pranith/rust) Rust · 89 lines

21 #![staged_api]

22 #![crate_type = "dylib"]

23 #![crate_type = "rlib"]

struct_point.rs (https://gitlab.com/jianglu/rust) Rust · 110 lines

20 #![allow(dead_code)]

21 #![crate_type = "rlib"]

22

riscv64-lp64f-lp64d-abi.rs (https://gitlab.com/rust-lang/rust) Rust · 277 lines

4 // only-linux

5 #![crate_type = "lib"]

6

unused_type_parameters.rs (https://gitlab.com/rust-lang/rust) Rust · 322 lines

2

3 #![crate_type = "rlib"]

4

weak_lang_items.rs (https://gitlab.com/pranith/rust) Rust · 125 lines

68 // emitting something that's not an rlib.

69 let needs_check = sess.crate_types.borrow().iter().any(|kind| {

70 match *kind {

plugins.rs (https://gitlab.com/frewsxcv/cargo) Rust · 439 lines

95 name = "baz"

96 crate_type = ["dylib"]

97 "#,

struct_point.rs (https://gitlab.com/jianglu/rust) Rust · 111 lines

16

17 #![crate_type = "rlib"]

18 #![feature(rustc_attrs)]

builtin.rs (https://gitlab.com/alx741/rust) Rust · 242 lines

91 declare_lint! {

92 pub UNKNOWN_CRATE_TYPES,

93 Deny,

94 "unknown crate type found in #[crate_type] directive"

95 }

218 STABLE_FEATURES,

219 UNKNOWN_CRATE_TYPES,

220 VARIANT_SIZE_DIFFERENCES,

main.rs (https://gitlab.com/motorica-org/telemetry-hardware-teensy-3-rust) Rust · 167 lines

2 #![no_std]

3 #![crate_type="staticlib"]

4

attributes-included.rs (https://gitlab.com/jianglu/rust) Rust · 161 lines

14 #![feature(proc_macro)]

15 #![crate_type = "proc-macro"]

16

msp430-types.rs (https://gitlab.com/rust-lang/rust) Rust · 158 lines

6 #![feature(no_core, lang_items, rustc_attrs, asm_sym, asm_experimental_arch, asm_const)]

7 #![crate_type = "rlib"]

8 #![no_core]

riscv-types.rs (https://gitlab.com/rust-lang/rust) Rust · 210 lines

9 #![feature(no_core, lang_items, rustc_attrs, asm_sym)]

10 #![crate_type = "rlib"]

11 #![no_core]

packed.rs (https://gitlab.com/jianglu/rust) Rust · 128 lines

12

13 #![crate_type = "lib"]

14 #![feature(repr_packed)]

proc_macro_attr.rs (https://gitlab.com/rust-lang/rust) Rust · 101 lines

3

4 #![crate_type = "proc-macro"]

5 #![feature(repr128, proc_macro_hygiene, proc_macro_quote, box_patterns)]

38 // Should not trigger `empty_line_after_outer_attr`

39 #[crate_type = "lib"]

40 #sig #block

function-arguments.rs (https://gitlab.com/rust-lang/rust) Rust · 224 lines

2

3 #![crate_type = "lib"]

4 #![feature(rustc_attrs)]

avr-types.rs (https://gitlab.com/rust-lang/rust) Rust · 222 lines

6 #![feature(no_core, lang_items, rustc_attrs, asm_sym, asm_experimental_arch)]

7 #![crate_type = "rlib"]

8 #![no_core]

lint-dead-code-1.rs (https://gitlab.com/alx741/rust) Rust · 116 lines

16

17 #![crate_type="lib"]

18

in-signature.rs (https://gitlab.com/rust-lang/rust) Rust · 61 lines

1 #![crate_type = "rlib"]

2 #![feature(generic_arg_infer)]

lib.rs (https://gitlab.com/anispy211/rust) Rust · 135 lines

17 #![crate_id = "flate#0.10-pre"]

18 #![crate_type = "rlib"]

19 #![crate_type = "dylib"]

function-arguments.rs (https://gitlab.com/alx741/rust) Rust · 146 lines

12

13 #![crate_type = "lib"]

14 #![feature(allocator)]

rustdoc.rs (https://gitlab.com/frewsxcv/cargo) Rust · 252 lines

181 #[cargo_test]

182 fn proc_macro_crate_type() {

183 let p = project()

inline_asm.rs (https://gitlab.com/jianglu/rust) Rust · 238 lines

25 #![feature(asm)]

26 #![crate_type="rlib"]

27

custom_target.rs (https://gitlab.com/frewsxcv/cargo) Rust · 236 lines

193 #[cargo_test]

194 fn changing_spec_relearns_crate_types() {

195 // Changing the .json file will invalidate the cache of crate types.

float_math.rs (https://gitlab.com/jianglu/rust) Rust · 60 lines

12

13 #![crate_type = "lib"]

14 #![feature(core_intrinsics)]

allocator-dummy.rs (https://gitlab.com/alx741/rust) Rust · 55 lines

14 #![allocator]

15 #![crate_type = "rlib"]

16 #![no_std]

debuginfo-generic-closure-env-names.rs (https://gitlab.com/rust-lang/rust) Rust · 89 lines

49

50 #![crate_type = "lib"]

51 use std::future::Future;

local-drop-glue.rs (https://gitlab.com/jianglu/rust) Rust · 64 lines

17 #![allow(dead_code)]

18 #![crate_type="rlib"]

19

arm-modifiers.rs (https://gitlab.com/rust-lang/rust) Rust · 144 lines

7 #![feature(no_core, lang_items, rustc_attrs, repr_simd)]

8 #![crate_type = "rlib"]

9 #![no_core]

missing_inline.rs (https://gitlab.com/rust-lang/rust) Rust · 170 lines

77 .sess

78 .crate_types()

79 .iter()

roman_numerals.rs (https://gitlab.com/pranith/rust) Rust · 71 lines

12

13 #![crate_type="dylib"]

14 #![feature(plugin_registrar, rustc_private)]

mod.rs (https://gitlab.com/pranith/rust) Rust · 57 lines

24 //! #![crate_name = "myplugin"]

25 //! #![crate_type = "dylib"]

26 //! #![feature(plugin_registrar)]

lib.rs (https://gitlab.com/pranith/rust) Rust · 59 lines

22 #![staged_api]

23 #![crate_type = "rlib"]

24 #![crate_type = "dylib"]

extern_mods.rs (https://gitlab.com/jianglu/rust) Rust · 244 lines

26 #![feature(link_args)]

27 #![crate_type="rlib"]

28

rsbegin.rs (https://gitlab.com/alx741/rust) Rust · 78 lines

24

25 #![crate_type="rlib"]

26 #![no_std]

non-integer-atomic.rs (https://gitlab.com/rust-lang/rust) Rust · 92 lines

4 #![allow(warnings)]

5 #![crate_type = "rlib"]

6

atomic-operations.rs (https://gitlab.com/rust-lang/rust) Rust · 60 lines

3 // compile-flags: -O

4 #![crate_type = "lib"]

5

attr-stmt-expr-rpass.rs (https://gitlab.com/rust-lang/rust) Rust · 51 lines

3

4 #![crate_type = "proc-macro"]

5

powerpc-types.rs (https://gitlab.com/rust-lang/rust) Rust · 208 lines

9 #![feature(no_core, lang_items, rustc_attrs, repr_simd, asm_sym, asm_experimental_arch)]

10 #![crate_type = "rlib"]

11 #![no_core]

issue-14421.rs (https://gitlab.com/alx741/rust) Rust · 35 lines

10

11 #![crate_type="lib"]

12 #![deny(warnings)]

lower_intrinsics.rs (https://gitlab.com/rust-lang/rust) Rust · 78 lines

2 #![feature(core_intrinsics)]

3 #![crate_type = "lib"]

4

issue-35813-postfix-after-cast.rs (https://gitlab.com/rust-lang/rust) Rust · 171 lines

1 // edition:2018

2 #![crate_type = "lib"]

3 #![feature(type_ascription)]

simd-wide-sum.rs (https://gitlab.com/rust-lang/rust) Rust · 54 lines

4

5 #![crate_type = "lib"]

6 #![feature(portable_simd)]

inherited_stability.rs (https://gitlab.com/pranith/rust) Rust · 55 lines

10 #![crate_name="inherited_stability"]

11 #![crate_type = "lib"]

12 #![unstable(feature = "test_feature")]

repr-transparent-aggregates-3.rs (https://gitlab.com/jianglu/rust) Rust · 49 lines

15

16 #![crate_type="lib"]

17 #![feature(repr_transparent)]

lib.rs (https://gitlab.com/Fraser999/DataName) Rust · 35 lines

3 #![forbid(bad_style, exceeding_bitshifts, mutable_transmutes, no_mangle_const_items,

4 unknown_crate_types, warnings)]

5 #![deny(deprecated, drop_with_repr_extern, improper_ctypes, non_shorthand_field_patterns,

stack-protector-target-support.rs (https://gitlab.com/rust-lang/rust) Rust · 286 lines

180

181 #![crate_type = "lib"]

182

183 #![feature(no_core, lang_items)]

184 #![crate_type = "lib"]

185 #![no_core]

statics.rs (https://gitlab.com/rust-lang/rust) Rust · 186 lines

21 #![feature(thread_local)]

22 #![crate_type="rlib"]

23

lib.rs (https://gitlab.com/aw1231/redox) Rust · 85 lines

12 #![crate_name = "alloc_system"]

13 #![crate_type = "rlib"]

14 #![staged_api]

simd.rs (https://gitlab.com/rust-lang/rust) Rust · 82 lines

1 // ensures that public symbols are not removed completely

2 #![crate_type = "lib"]

3 // we can compile to a variety of platforms, because we don't need

lib.rs (https://gitlab.com/Fraser999/DataName) Rust · 127 lines

1 #![forbid(bad_style, exceeding_bitshifts, mutable_transmutes, no_mangle_const_items,

2 unknown_crate_types, warnings)]

3 #![deny(deprecated, drop_with_repr_extern, improper_ctypes, missing_docs,

abi-x86-interrupt.rs (https://gitlab.com/jianglu/rust) Rust · 27 lines

19

20 #![crate_type = "lib"]

21 #![feature(abi_x86_interrupt)]

lib.rs (https://gitlab.com/pranith/rust) Rust · 54 lines

29 #![staged_api]

30 #![crate_type = "rlib"]

31 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

global_asm_x2.rs (https://gitlab.com/jianglu/rust) Rust · 88 lines

52 #![feature(global_asm)]

53 #![crate_type = "lib"]

54 #[no_std]

test-macros.rs (https://gitlab.com/jianglu/rust) Rust · 36 lines

12

13 #![crate_type = "proc-macro"]

14 #![feature(proc_macro)]

issue-22638.rs (https://gitlab.com/jianglu/rust) Rust · 69 lines

14 #![type_length_limit = "20000000"]

15 #![crate_type = "rlib"]

16

macro-only-syntax.rs (https://gitlab.com/rust-lang/rust) Rust · 89 lines

11

12 #![crate_type = "proc-macro"]

13 #![feature(proc_macro_span)]

lint-exceeding-bitshifts.rs (https://gitlab.com/rust-lang/rust) Rust · 79 lines

8

9 #![crate_type="lib"]

10 #![warn(arithmetic_overflow, const_err)]

lib.rs (https://gitlab.com/anispy211/rust) Rust · 56 lines

15 #![crate_id = "collections#0.10-pre"]

16 #![crate_type = "rlib"]

17 #![crate_type = "dylib"]

statics.rs (https://gitlab.com/jianglu/rust) Rust · 48 lines

15

16 #![crate_type="rlib"]

17

proc_macro_def.rs (https://gitlab.com/jianglu/rust) Rust · 44 lines

12

13 #![crate_type = "proc-macro"]

14 #![feature(proc_macro, proc_macro_non_items)]

extern-drop-glue.rs (https://gitlab.com/alx741/rust) Rust · 46 lines

17 #![allow(dead_code)]

18 #![crate_type="lib"]

19

unused-traits-and-generics.rs (https://gitlab.com/alx741/rust) Rust · 89 lines

13

14 #![crate_type="lib"]

15 #![deny(dead_code)]

return_self_not_must_use.rs (https://gitlab.com/rust-lang/rust) Rust · 58 lines

1 #![crate_type = "lib"]

2 #![warn(clippy::return_self_not_must_use)]

extern_mods.rs (https://gitlab.com/rust-lang/rust) Rust · 224 lines

20 #![feature(unboxed_closures)]

21 #![crate_type = "rlib"]

22

lib.rs (https://gitlab.com/alx741/rust) Rust · 57 lines

20 issue = "27812")]

21 #![crate_type = "rlib"]

22 #![crate_type = "dylib"]

feature-gate-cfg-target-has-atomic.rs (https://gitlab.com/jianglu/rust) Rust · 86 lines

10

11 #![crate_type="rlib"]

12 #![no_core]

rustc.rs (https://gitlab.com/frewsxcv/cargo) Rust · 99 lines

5 const PRINT_ARG_NAME: &str = "print";

6 const CRATE_TYPE_ARG_NAME: &str = "crate-type";

7

39 .arg(multi_opt(

40 CRATE_TYPE_ARG_NAME,

41 "CRATE-TYPE",

86 }

87 let crate_types = values(args, CRATE_TYPE_ARG_NAME);

88 compile_opts.target_rustc_crate_types = if crate_types.is_empty() {

92 .cli_unstable()

93 .fail_if_stable_opt(CRATE_TYPE_ARG_NAME, 10083)?;

94 Some(crate_types)

test_cargo_profiles.rs (https://gitlab.com/alx741/cargo) Rust · 107 lines

73 name = "foo"

74 crate_type = ["dylib", "rlib"]

75 "#)

crate_with_invalid_spans.rs (https://gitlab.com/alx741/rust) Rust · 30 lines

10

11 #![crate_type = "rlib"]

12 // no-prefer-dynamic

issue-40001-plugin.rs (https://gitlab.com/rust-lang/rust) Rust · 57 lines

1 #![feature(plugin, rustc_private)]

2 #![crate_type = "dylib"]

3

repr-transparent.rs (https://gitlab.com/rust-lang/rust) Rust · 169 lines

5

6 #![crate_type="lib"]

7 #![feature(repr_simd, transparent_unions)]

the_backend.rs (https://gitlab.com/jianglu/rust) Rust · 82 lines

64 .expect("in join_codegen_and_link: ongoing_codegen is not a Symbol");

65 for &crate_type in sess.opts.crate_types.iter() {

66 if crate_type != CrateType::CrateTypeExecutable {

67 sess.fatal(&format!("Crate type is {:?}", crate_type));

68 }

69 let output_name =

70 out_filename(sess, crate_type, &outputs, &*crate_name.as_str());

71 let mut out_file = ::std::fs::File::create(output_name).unwrap();

lib.rs (https://gitlab.com/alx741/rust) Rust · 80 lines

24 //! #![crate_name = "myplugin"]

25 //! #![crate_type = "dylib"]

26 //! #![feature(plugin_registrar)]

54 #![unstable(feature = "rustc_private", issue = "27812")]

55 #![crate_type = "dylib"]

56 #![crate_type = "rlib"]

naked-functions.rs (https://gitlab.com/rust-lang/rust) Rust · 218 lines

7 #![feature(asm_const, asm_sym, asm_unwind)]

8 #![crate_type = "lib"]

9

checkrust.rs (https://gitlab.com/rust-lang/rust) Rust · 148 lines

1 #![crate_type = "staticlib"]

2 #![feature(c_variadic)]

const_panic_2021.rs (https://gitlab.com/rust-lang/rust) Rust · 34 lines

1 // edition:2021

2 #![crate_type = "lib"]

3

implicit-panic-call.rs (https://gitlab.com/rust-lang/rust) Rust · 58 lines

7 #![feature(no_core)]

8 #![crate_type = "lib"]

9 #![no_core]

c-unwind-abi-panic-abort.rs (https://gitlab.com/rust-lang/rust) Rust · 27 lines

5

6 #![crate_type = "lib"]

7 #![feature(c_unwind)]

naked-functions.rs (https://gitlab.com/alx741/rust) Rust · 69 lines

14

15 #![crate_type = "lib"]

16 #![feature(naked_functions)]

where-priv-type.rs (https://gitlab.com/rust-lang/rust) Rust · 90 lines

3

4 #![crate_type = "lib"]

5 #![feature(generic_const_exprs)]

missing_inline.rs (https://gitlab.com/rust-lang/rust) Rust · 66 lines

1 #![warn(clippy::missing_inline_in_public_items)]

2 #![crate_type = "dylib"]

3 // When denying at the crate level, be sure to not get random warnings from the

expand-expr.rs (https://gitlab.com/rust-lang/rust) Rust · 80 lines

3

4 #![crate_type = "proc-macro"]

5 #![deny(warnings)]

proc-macro.rs (https://gitlab.com/rust-lang/rust) Rust · 72 lines

4

5 #![crate_type="proc-macro"]

6 #![crate_name="some_macros"]

weak-lang-items.rs (https://gitlab.com/pranith/rust) Rust · 36 lines

17 #![no_std]

18 #![crate_type = "rlib"]

19

atomic_lock_free.rs (https://gitlab.com/jianglu/rust) Rust · 68 lines

11 #![feature(cfg_target_has_atomic, no_core, intrinsics, lang_items)]

12 #![crate_type="rlib"]

13 #![no_core]

rustc_info.rs (https://gitlab.com/rust-lang/rust) Rust · 65 lines

45

46 pub(crate) fn get_file_name(crate_name: &str, crate_type: &str) -> String {

47 let file_name = Command::new("rustc")

52 "--crate-type",

53 crate_type,

54 "--print",

naked-functions-unused.rs (https://gitlab.com/rust-lang/rust) Rust · 87 lines

6 #![feature(naked_functions)]

7 #![crate_type = "lib"]

8

wasm_casts_trapping.rs (https://gitlab.com/rust-lang/rust) Rust · 157 lines

2 // compile-flags: -C target-feature=-nontrapping-fptoint

3 #![crate_type = "lib"]

4

missing-stability.rs (https://gitlab.com/pranith/rust) Rust · 33 lines

12

13 #![crate_type="lib"]

14 #![feature(staged_api)]

static-methods-crate.rs (https://gitlab.com/pranith/rust) Rust · 39 lines

11 #![crate_name="static_methods_crate"]

12 #![crate_type = "lib"]

13

fakealloc.rs (https://gitlab.com/pranith/rust) Rust · 36 lines

10

11 #![crate_type = "rlib"]

12 #![feature(no_std, core)]

global_asm_include.rs (https://gitlab.com/jianglu/rust) Rust · 66 lines

52 #![feature(global_asm)]

53 #![crate_type = "lib"]

54

lib.rs (https://gitlab.com/admin-github-cloud/habitat) Rust · 94 lines

49 #![crate_name = "sodiumoxide"]

50 #![crate_type = "lib"]

51 #![warn(missing_docs)]

lib.rs (https://gitlab.com/aw1231/redox) Rust · 59 lines

27 #![staged_api]

28 #![crate_type = "rlib"]

29 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

parent-source-spans.rs (https://gitlab.com/rust-lang/rust) Rust · 43 lines

4 #![feature(proc_macro_diagnostic, proc_macro_span)]

5 #![crate_type = "proc-macro"]

6

issue-2526.rs (https://gitlab.com/alx741/rust) Rust · 54 lines

11 #![crate_name="issue_2526"]

12 #![crate_type = "lib"]

13

unnamable-types.rs (https://gitlab.com/rust-lang/rust) Rust · 39 lines

2

3 #![crate_type="lib"]

4 #![feature(generators)]

plugin.rs (https://gitlab.com/jianglu/rust) Rust · 28 lines

11 #![feature(plugin_registrar, rustc_private)]

12 #![crate_type = "dylib"]

13 #![crate_name = "some_plugin"]

proc_macro_derive.rs (https://gitlab.com/rust-lang/rust) Rust · 74 lines

3

4 #![crate_type = "proc-macro"]

5 #![feature(repr128, proc_macro_quote)]

mathx.rs (https://gitlab.com/cjcole/rust-lua53) Rust · 87 lines

23 #![crate_name="mathx"]

24 #![crate_type="dylib"]

25

interesting.rs (https://gitlab.com/rust-lang/rust) Rust · 56 lines

1 #![crate_name="interesting"]

2 #![crate_type="rlib"]

3

custom-quote.rs (https://gitlab.com/rust-lang/rust) Rust · 32 lines

5 #![feature(proc_macro_quote)]

6 #![crate_type = "proc-macro"]

7

global_asm_x2.rs (https://gitlab.com/rust-lang/rust) Rust · 83 lines

41

42 #![crate_type = "lib"]

43 #![no_std]

cross_crate_spans.rs (https://gitlab.com/pranith/rust) Rust · 26 lines

10

11 #![crate_type = "rlib"]

12 #![omit_gdb_pretty_printer_section]

extern-crosscrate-source.rs (https://gitlab.com/alx741/rust) Rust · 41 lines

11 #![crate_name="externcallback"]

12 #![crate_type = "lib"]

13 #![feature(libc)]

lib.rs (https://gitlab.com/cjcole/rust-linenoise) Rust · 202 lines

1 #![crate_name="linenoise"]

2 #![crate_type="lib"]

3

lint_output_format.rs (https://gitlab.com/pranith/rust) Rust · 31 lines

11 #![crate_name="lint_output_format"]

12 #![crate_type = "lib"]

13 #![feature(staged_api)]

issue-2631-a.rs (https://gitlab.com/pranith/rust) Rust · 24 lines

11 #![crate_name="req"]

12 #![crate_type = "lib"]

13

static-relocation-model.rs (https://gitlab.com/rust-lang/rust) Rust · 85 lines

11 #![no_core]

12 #![crate_type="rlib"]

13

exit-unreachable.rs (https://gitlab.com/jianglu/rust) Rust · 27 lines

11 #![feature(asm, core_intrinsics)]

12 #![crate_type="lib"]

13

exit-ret.rs (https://gitlab.com/jianglu/rust) Rust · 25 lines

11 #![feature(asm)]

12 #![crate_type="lib"]

13

overloaded-operators.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 72 lines

14 #![deny(dead_code)]

15 #![crate_type="lib"]

16

issue_2242_a.rs (https://gitlab.com/pranith/rust) Rust · 20 lines

11 #![crate_name="a#0.1"]

12 #![crate_type = "lib"]

13

cross_crate_debuginfo_type_uniquing.rs (https://gitlab.com/pranith/rust) Rust · 26 lines

11 // no-prefer-dynamic

12 #![crate_type = "rlib"]

13 // compile-flags:-g

issue-61963.rs (https://gitlab.com/rust-lang/rust) Rust · 41 lines

2 // no-prefer-dynamic

3 #![crate_type = "proc-macro"]

4

repr-transparent.rs (https://gitlab.com/jianglu/rust) Rust · 135 lines

12

13 #![crate_type="lib"]

14 #![feature(repr_transparent, repr_simd)]

function-arguments.rs (https://gitlab.com/jianglu/rust) Rust · 163 lines

14

15 #![crate_type = "lib"]

16 #![feature(custom_attribute)]

min_global_align.rs (https://gitlab.com/jianglu/rust) Rust · 38 lines

11 #![feature(no_core, lang_items)]

12 #![crate_type="rlib"]

13 #![no_core]

lint-misplaced-attr.rs (https://gitlab.com/pranith/rust) Rust · 22 lines

16 mod a {

17 #![crate_type = "bin"] //~ ERROR unused attribute

18 //~^ ERROR should be in the root module

20

21 #[crate_type = "bin"] fn main() {} //~ ERROR unused attribute

22 //~^ ERROR should be an inner

weak_lang_items.rs (https://gitlab.com/rust-lang/rust) Rust · 91 lines

51 // emitting something that's not an rlib.

52 let needs_check = tcx.sess.crate_types().iter().any(|kind| match *kind {

53 CrateType::Dylib

associated-types-ICE-when-projecting-out-of-err.rs (https://gitlab.com/pranith/rust) Rust · 36 lines

13

14 #![crate_type = "lib"]

15 #![feature(lang_items)]

issue-4208-cc.rs (https://gitlab.com/pranith/rust) Rust · 20 lines

11 #![crate_name="numeric"]

12 #![crate_type = "lib"]

13

syntax_extension_with_dll_deps_2.rs (https://gitlab.com/pranith/rust) Rust · 34 lines

12

13 #![crate_type = "dylib"]

14 #![feature(plugin_registrar, quote, rustc_private)]

custom.rs (https://gitlab.com/jianglu/rust) Rust · 31 lines

13 #![feature(heap_api, allocator_api)]

14 #![crate_type = "rlib"]

15

issue-73396-bounds-check-after-position.rs (https://gitlab.com/rust-lang/rust) Rust · 77 lines

2 // ignore-debug: the debug assertions get in the way

3 #![crate_type = "lib"]

4