rust/src/librustc_metadata
bors 287187230b Auto merge of #53693 - scottmcm:marker-trait-attribute, r=nikomatsakis
Support an explicit annotation for marker traits

From the tracking issue for rust-lang/rfcs#1268:
> It seems obvious that we should make a `#[marker]` annotation. ~ https://github.com/rust-lang/rust/issues/29864#issuecomment-368959441

This PR allows you to put `#[marker]` on a trait, at which point:
- [x] The trait must not have any items ~~All of the trait's items must have defaults~~
- [x] Any impl of the trait must be empty (not override any items)
- [x] But impls of the trait are allowed to overlap

r? @nikomatsakis
2018-09-25 03:42:46 +00:00
..
build.rs
Cargo.toml Move validate_crate_name to rustc_metadata 2018-08-03 11:09:02 -06:00
creader.rs rustc_resolve: always include core, std and meta in the extern prelude. 2018-09-15 22:48:10 +03:00
cstore_impl.rs Auto merge of #54265 - arielb1:civilize-proc-macros, r=alexcrichton 2018-09-22 11:56:08 +00:00
cstore.rs mv codemap source_map 2018-08-19 23:01:01 +02:00
decoder.rs Auto merge of #53693 - scottmcm:marker-trait-attribute, r=nikomatsakis 2018-09-25 03:42:46 +00:00
diagnostics.rs
dynamic_lib.rs
encoder.rs Add an is_marker flag to TraitDef 2018-09-19 22:31:30 -07:00
foreign_modules.rs
index_builder.rs
index.rs
isolated_encoder.rs
lib.rs stabalize infer outlives requirements (RFC 2093). 2018-09-11 11:40:04 -04:00
link_args.rs
locator.rs Rollup merge of #53470 - bjorn3:warn_metadata_errors, r=alexcrichton 2018-09-20 21:36:18 +08:00
native_libs.rs Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkor 2018-08-21 17:51:49 +08:00
schema.rs Add an is_marker flag to TraitDef 2018-09-19 22:31:30 -07:00