Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #66908

Merged
merged 42 commits into from
Dec 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
18 changes: 18 additions & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3199,6 +3199,7 @@ dependencies = [
"rustc_data_structures",
"rustc_error_codes",
"rustc_errors",
"rustc_feature",
"rustc_fs_util",
"rustc_index",
"rustc_macros",
Expand Down Expand Up @@ -3574,6 +3575,7 @@ dependencies = [
"rustc_data_structures",
"rustc_error_codes",
"rustc_errors",
"rustc_feature",
"rustc_interface",
"rustc_lint",
"rustc_metadata",
Expand Down Expand Up @@ -3607,6 +3609,15 @@ dependencies = [
"unicode-width",
]

[[package]]
name = "rustc_feature"
version = "0.0.0"
dependencies = [
"lazy_static 1.3.0",
"rustc_data_structures",
"syntax_pos",
]

[[package]]
name = "rustc_fs_util"
version = "0.0.0"
Expand Down Expand Up @@ -3682,6 +3693,7 @@ dependencies = [
"rustc",
"rustc_data_structures",
"rustc_error_codes",
"rustc_feature",
"rustc_index",
"rustc_target",
"syntax",
Expand Down Expand Up @@ -3786,6 +3798,7 @@ dependencies = [
"rustc_data_structures",
"rustc_error_codes",
"rustc_errors",
"rustc_feature",
"rustc_lexer",
"rustc_target",
"smallvec 1.0.0",
Expand All @@ -3802,6 +3815,7 @@ dependencies = [
"rustc_data_structures",
"rustc_error_codes",
"rustc_errors",
"rustc_feature",
"rustc_index",
"rustc_parse",
"rustc_target",
Expand Down Expand Up @@ -3844,6 +3858,7 @@ dependencies = [
"rustc_data_structures",
"rustc_error_codes",
"rustc_errors",
"rustc_feature",
"rustc_metadata",
"smallvec 1.0.0",
"syntax",
Expand Down Expand Up @@ -4442,6 +4457,7 @@ dependencies = [
"rustc_data_structures",
"rustc_error_codes",
"rustc_errors",
"rustc_feature",
"rustc_index",
"rustc_lexer",
"rustc_macros",
Expand All @@ -4458,6 +4474,7 @@ dependencies = [
"log",
"rustc_data_structures",
"rustc_errors",
"rustc_feature",
"rustc_lexer",
"rustc_parse",
"serialize",
Expand All @@ -4475,6 +4492,7 @@ dependencies = [
"rustc_data_structures",
"rustc_error_codes",
"rustc_errors",
"rustc_feature",
"rustc_parse",
"rustc_target",
"smallvec 1.0.0",
Expand Down
15 changes: 10 additions & 5 deletions src/etc/dec2flt_table.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,18 @@ def print_proper_powers():
print("pub const MIN_E: i16 = {};".format(MIN_E))
print("pub const MAX_E: i16 = {};".format(MAX_E))
print()
print("#[rustfmt::skip]")
typ = "([u64; {0}], [i16; {0}])".format(len(powers))
print("pub const POWERS: ", typ, " = ([", sep='')
print("pub const POWERS: ", typ, " = (", sep='')
print(" [")
for z in powers:
print(" 0x{:x},".format(z.sig))
print("], [")
print(" 0x{:x},".format(z.sig))
print(" ],")
print(" [")
for z in powers:
print(" {},".format(z.exp))
print("]);")
print(" {},".format(z.exp))
print(" ],")
print(");")


def print_short_powers(num_bits, significand_size):
Expand All @@ -127,6 +131,7 @@ def print_short_powers(num_bits, significand_size):
max_e = int(ceil(log(max_sig, 5)))
e_range = range(max_e)
typ = "[f{}; {}]".format(num_bits, len(e_range))
print("#[rustfmt::skip]")
print("pub const F", num_bits, "_SHORT_POWERS: ", typ, " = [", sep='')
for e in e_range:
print(" 1e{},".format(e))
Expand Down
3 changes: 3 additions & 0 deletions src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2703,6 +2703,9 @@ impl<T> ExactSizeIterator for Drain<'_, T> {
}
}

#[unstable(feature = "trusted_len", issue = "37572")]
unsafe impl<T> TrustedLen for Drain<'_, T> {}

#[stable(feature = "fused", since = "1.26.0")]
impl<T> FusedIterator for Drain<'_, T> {}

Expand Down
Loading