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 6 pull requests #35979

Merged
merged 20 commits into from
Aug 25, 2016
Merged

Rollup of 6 pull requests #35979

merged 20 commits into from
Aug 25, 2016

Commits on Aug 23, 2016

  1. Configuration menu
    Copy the full SHA
    6b95606 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    892bf3d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    46226a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2016

  1. Configuration menu
    Copy the full SHA
    2655c89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19aae8e View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2016

  1. Configuration menu
    Copy the full SHA
    28ecfb6 View commit details
    Browse the repository at this point in the history
  2. Migrate Context::maybe_ignore_item method to standalone function.

    The method wasn't using any `self` data from Context, so it seemed
    miseading to implement it as a method.
    frewsxcv committed Aug 25, 2016
    Configuration menu
    Copy the full SHA
    7dc4116 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    30397ae View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0c9ff54 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9dde563 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5c849f4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8a6f7a5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    168cfea View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    42e8ac8 View commit details
    Browse the repository at this point in the history
  10. Fix debug line info for macro expansions.

    Macro expansions produce code tagged with debug locations that are completely different from the surrounding expressions.  This wrecks havoc on debugger's ability the step over source lines.
    
    In order to have a good line stepping behavior in debugger, we overwrite debug locations of macro expansions with that of the outermost expansion site.
    vadimcn committed Aug 25, 2016
    Configuration menu
    Copy the full SHA
    cf64611 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#35238 - vadimcn:macro-debug-locs, r=michael…

    …woerister
    
    Fix debug line number info for macro expansions.
    
    Macro expansions result in code tagged with completely different debug locations than the surrounding expressions.  This wrecks havoc on debugger's ability the step over source lines.
    This change fixes the problem by tagging expanded code as "inlined" at the macro expansion site, which allows the debugger to sort it out.
    Note that only the outermost expansion is currently handled, stepping into a macro will still result in stepping craziness.
    
    r? @eddyb
    Manishearth committed Aug 25, 2016
    Configuration menu
    Copy the full SHA
    e0e1954 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#35867 - frewsxcv:rustdoc-cleanup, r=alexcri…

    …chton
    
    Various refactorings in the rustdoc module.
    
    None
    Manishearth committed Aug 25, 2016
    Configuration menu
    Copy the full SHA
    5e69622 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#35916 - eddyb:mir-no-dead-allocas, r=Aatch

    rustc_trans: do not generate allocas for unused locals.
    
    This fixes a regression observed in a [`mio` test](https://travis-ci.org/carllerche/mio/jobs/152142886) which was referencing a 4MB `const` array.
    Even though MIR rvalue promotion would promote the borrow of the array, a dead temp was left behind.
    As the array doesn't have an immediate type, an `alloca` was generated for it, even though it had no uses.
    
    The fix is pretty dumb: assume that locals need to be borrowed or assigned before being used.
    And if it can't be used, it doesn't get an `alloca`, even if the type would otherwise demand it.
    This could change in the future, but all the MIR we generate now doesn't break that rule.
    Manishearth committed Aug 25, 2016
    Configuration menu
    Copy the full SHA
    7963bbb View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#35947 - SimonSapin:decodeutf8-error-handlin…

    …g, r=alexcrichton
    
    Yield Err in char::decode_utf8 per Unicode, like String::from_utf8_lossy
    
    r? @alexcrichton
    Manishearth committed Aug 25, 2016
    Configuration menu
    Copy the full SHA
    5deee46 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#35955 - frewsxcv:idiomatic-methods, r=eddyb

    Use idiomatic names for string-related methods names.
    
    None
    Manishearth committed Aug 25, 2016
    Configuration menu
    Copy the full SHA
    cf597ab View commit details
    Browse the repository at this point in the history