Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
368ac73
no longer promote non-pattern const functions
RalfJung Dec 22, 2019
8d189ed
Suggest calling method when first argument is `self`
VirrageS Nov 30, 2019
8e5b2c8
Add more detailed suggestion
VirrageS Dec 9, 2019
0918539
Add arguments to suggestion method call
VirrageS Dec 21, 2019
7353afd
Extend suggestion span to whole method call
VirrageS Dec 22, 2019
2168c0b
Extract checking for self arg to separate method
VirrageS Dec 23, 2019
7b91ef8
Simplify match expr
VirrageS Dec 23, 2019
cfab634
Add a test for #37333
michalt Jan 1, 2020
23f5431
Cleanup linkchecker whitelist
ollie27 Jan 1, 2020
562389d
- remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}
Centril Dec 31, 2019
67be07d
address review comments
Centril Jan 2, 2020
485e98a
Implement uncommon_codepoints lint.
crlf0710 Jan 2, 2020
7fd014d
tweak wording of mismatched delimiter errors
euclio Jan 3, 2020
ae002c1
Also remove const-hack for abs
jumbatm Jan 3, 2020
d0fe179
Rollup merge of #66913 - VirrageS:help-self, r=varkor,Centril
Centril Jan 3, 2020
10f153f
Rollup merge of #67531 - RalfJung:tame-promotion, r=nikomatsakis
Centril Jan 3, 2020
6a42b64
Rollup merge of #67770 - Centril:reduce-diversity-2, r=petrochenkov
Centril Jan 3, 2020
1ce3f0d
Rollup merge of #67773 - michalt:issue-37333-test, r=nikomatsakis
Centril Jan 3, 2020
a29a7d5
Rollup merge of #67789 - ollie27:linkchecker_whitelist, r=nikomatsakis
Centril Jan 3, 2020
8017b78
Rollup merge of #67810 - crlf0710:uncommon_codepoints_lint, r=Manishe…
Centril Jan 3, 2020
e35ce61
Rollup merge of #67835 - euclio:delimiter-wording, r=Centril
Centril Jan 3, 2020
3f83bc8
Rollup merge of #67845 - jumbatm:also-unconst-hack-abs, r=oli-obk
Centril Jan 3, 2020
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
Next Next commit
no longer promote non-pattern const functions
  • Loading branch information
RalfJung committed Dec 22, 2019
commit 368ac73c11662dbb860db178dc170768078b282d
3 changes: 0 additions & 3 deletions src/libcore/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ impl Duration {
/// ```
#[stable(feature = "duration", since = "1.3.0")]
#[inline]
#[rustc_promotable]
#[rustc_const_stable(feature = "duration_consts", since = "1.32.0")]
pub const fn from_millis(millis: u64) -> Duration {
Duration {
Expand All @@ -195,7 +194,6 @@ impl Duration {
/// ```
#[stable(feature = "duration_from_micros", since = "1.27.0")]
#[inline]
#[rustc_promotable]
#[rustc_const_stable(feature = "duration_consts", since = "1.32.0")]
pub const fn from_micros(micros: u64) -> Duration {
Duration {
Expand All @@ -218,7 +216,6 @@ impl Duration {
/// ```
#[stable(feature = "duration_extras", since = "1.27.0")]
#[inline]
#[rustc_promotable]
#[rustc_const_stable(feature = "duration_consts", since = "1.32.0")]
pub const fn from_nanos(nanos: u64) -> Duration {
Duration {
Expand Down