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 4 pull requests #57982

Closed
wants to merge 10 commits into from
Closed

Rollup of 4 pull requests #57982

wants to merge 10 commits into from

Commits on Dec 26, 2018

  1. mark str::string::String.trim.* functions as #[must_use].

    The functions return a reference to a new object and do not modify in-place
    as the following code shows:
    ````
    let s = String::from("   hello   ");
    s.trim();
    assert_eq!(s, "   hello   ");
    ````
    
    The new reference should be bound to a variable as now indicated by #[must_use].
    matthiaskrgr committed Dec 26, 2018
    Configuration menu
    Copy the full SHA
    809a1a8 View commit details
    Browse the repository at this point in the history
  2. Update src/libcore/str/mod.rs, tweak must_use message

    trimmed string is returned as a slice instead of a new allocation
    
    Co-Authored-By: matthiaskrgr <matthias.krueger@famsik.de>
    zackmdavis and matthiaskrgr committed Dec 26, 2018
    Configuration menu
    Copy the full SHA
    e7ce868 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    74e9057 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2019

  1. Configuration menu
    Copy the full SHA
    8db66ca View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2019

  1. Configuration menu
    Copy the full SHA
    1e57726 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2019

  1. Configuration menu
    Copy the full SHA
    7e22cb2 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2019

  1. Rollup merge of rust-lang#57106 - matthiaskrgr:trim_must_use, r=sfackler

    mark str::string::String.trim.* functions as #[must_use].
    
    The functions return a reference to a new object and do not modify in-place
    as the following code shows:
    ````
    let s = String::from("   hello   ");
    s.trim();
    assert_eq!(s, "   hello   ");
    ````
    
    The new reference should be bound to a variable as now indicated by #[must_use].
    Centril committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    b93cbfe View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#57920 - euclio:source-date-epoch, r=Mark-Si…

    …mulacrum
    
    use `SOURCE_DATE_EPOCH` for man page time if set
    
    Fixes rust-lang#57776.
    Centril committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    9f04c18 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#57934 - dwijnand:from-Arc/Rc-to-NonNull, r=…

    …alexcrichton
    
    Introduce into_raw_non_null on Rc and Arc
    
    None
    Centril committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    89f74ac View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#57974 - llogiq:vec-deque-try-fold, r=alexcr…

    …ichton
    
    override `VecDeque`'s `Iter::try_fold`
    
    This should improve performance (wherever it is used), but I haven't found the time to benchmark it yet.
    Centril committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    47e0812 View commit details
    Browse the repository at this point in the history