Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6e85f46
Initial implementation of or-pattern usefulness checking
Nadrieril Nov 21, 2019
0030a77
Add some more tests
Nadrieril Nov 21, 2019
3b1c742
Add as_mut_ptr method to atomic types.
pitdicker Nov 23, 2019
23c5e58
Use as_mut_ptr instead of casts
pitdicker Nov 24, 2019
b5ec4d1
Address reviews
Nadrieril Nov 25, 2019
f8a4b6d
impl TrustedLen for vec::Drain
CAD97 Nov 25, 2019
cdc844e
Make the ice a fatal error
Nadrieril Nov 26, 2019
0881750
Move tests to ui, split them and add some
Nadrieril Nov 26, 2019
b41b1d3
Use LLVMAddAnalysisPasses instead of Rust's wrapper
Nov 29, 2019
45c4e11
SimplifyArmIdentity only for locals with the same type
tmiasko Nov 29, 2019
de30d31
rustc: fix ty::Const::eval's handling of inference variables.
eddyb Nov 29, 2019
584ede5
rustc_typeck: gate AnonConst's generics on feature(const_generics).
eddyb Nov 29, 2019
3d080a4
introduce crate rustc_feature and move active, accepted, and removed …
Centril Nov 29, 2019
048201f
move Stability to rustc_feature
Centril Nov 29, 2019
8ad4d15
move AttributeTemplate to builtin_attrs
Centril Nov 29, 2019
6cab02c
simplify gated cfgs logic
Centril Nov 30, 2019
4d9fde5
builtin_attrs: inline some strings
Centril Nov 30, 2019
d04b838
move is_builtin_attr to syntax::attr
Centril Nov 30, 2019
70234f1
builtin_attrs.rs -> rustc_feature
Centril Nov 30, 2019
db89679
inline two explanation constants
Centril Nov 30, 2019
b45f21d
move UnstableFeatures -> rustc_feature
Centril Nov 30, 2019
9626181
check.rs: inline a constant
Centril Nov 30, 2019
d353a4c
Make dec2flt_table compatible with rustfmt
dtolnay Nov 30, 2019
f4cff27
Make libcore/unicode/printable.rs compatible with rustfmt
dtolnay Nov 30, 2019
28eb31f
Make libcore/unicode/tables.rs compatible with rustfmt
dtolnay Nov 30, 2019
b756b7d
tidy: adjust feature gating path
Centril Nov 30, 2019
91fcd40
update rustc_feature crate docs
Centril Nov 30, 2019
79077f1
move GateIssue to rustc_feature & simplify emit_feature_err
Centril Nov 30, 2019
ded177a
derive(Default) for Features
Centril Nov 30, 2019
f34990e
Remove unneeded prelude imports in libcore tests
dtolnay Nov 30, 2019
4843173
Document why as_mut_ptr is safe
pitdicker Nov 30, 2019
d34090a
Fill tracking issue
pitdicker Nov 30, 2019
0f4c5fb
Apply suggestions from code review
Nadrieril Nov 30, 2019
3af14f9
Rollup merge of #66612 - Nadrieril:or-patterns-initial, r=varkor
Centril Nov 30, 2019
123406c
Rollup merge of #66705 - pitdicker:atomic_mut_ptr, r=KodrAus
Centril Nov 30, 2019
9ae7fb3
Rollup merge of #66759 - CAD97:patch-3, r=KodrAus
Centril Nov 30, 2019
2378651
Rollup merge of #66858 - 0dvictor:capi, r=rkruppe
Centril Nov 30, 2019
472bee2
Rollup merge of #66870 - tmiasko:simplify-ty, r=oli-obk
Centril Nov 30, 2019
c85f635
Rollup merge of #66883 - eddyb:we-cant-have-nice-things, r=oli-obk
Centril Nov 30, 2019
2e83c6d
Rollup merge of #66889 - dtolnay:fmt6, r=rkruppe
Centril Nov 30, 2019
b4bffce
Rollup merge of #66894 - dtolnay:prelude, r=Centril
Centril Nov 30, 2019
b772b5b
Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk
Centril Nov 30, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
builtin_attrs: inline some strings
  • Loading branch information
Centril committed Nov 30, 2019
commit 4d9fde59aec621a2ea5c5ce3c1d7de3d2599d9ae
8 changes: 5 additions & 3 deletions src/libsyntax/feature_gate/builtin_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use AttributeType::*;
use AttributeGate::*;

use super::check::{EXPLAIN_ALLOW_INTERNAL_UNSAFE, EXPLAIN_ALLOW_INTERNAL_UNSTABLE};
use rustc_feature::{Features, Stability};

use crate::ast;
Expand Down Expand Up @@ -352,9 +351,12 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
),
gated!(
allow_internal_unstable, Normal, template!(Word, List: "feat1, feat2, ..."),
EXPLAIN_ALLOW_INTERNAL_UNSTABLE,
"allow_internal_unstable side-steps feature gating and stability checks",
),
gated!(
allow_internal_unsafe, Normal, template!(Word),
"allow_internal_unsafe side-steps the unsafe_code lint",
),
gated!(allow_internal_unsafe, Normal, template!(Word), EXPLAIN_ALLOW_INTERNAL_UNSAFE),

// ==========================================================================
// Internal attributes: Type system related:
Expand Down
5 changes: 0 additions & 5 deletions src/libsyntax/feature_gate/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,6 @@ const EXPLAIN_BOX_SYNTAX: &str =
pub const EXPLAIN_STMT_ATTR_SYNTAX: &str =
"attributes on expressions are experimental";

pub const EXPLAIN_ALLOW_INTERNAL_UNSTABLE: &str =
"allow_internal_unstable side-steps feature gating and stability checks";
pub const EXPLAIN_ALLOW_INTERNAL_UNSAFE: &str =
"allow_internal_unsafe side-steps the unsafe_code lint";

pub const EXPLAIN_UNSIZED_TUPLE_COERCION: &str =
"unsized tuple coercion is not stable enough for use and is subject to change";

Expand Down