1. 26 3月, 2021 6 次提交
    • D
      Rollup merge of #83437 - Amanieu:asm_syntax, r=petrochenkov · 02b27cd7
      Dylan DPC 提交于
      Refactor #82270 as lint instead of an error
      
      This PR fixes several issues with #82270 which generated an error when `.intel_syntax` or `.att_syntax` was used in inline assembly:
      - It is now a warn-by-default lint instead of an error.
      - The lint only triggers on x86. `.intel_syntax` and `.att_syntax` are only valid on x86.
      - The lint no longer provides machine-applicable suggestions for two reasons:
      	- These changes should not be made automatically since changes to assembly code can be very subtle.
      	- The template string is not always just a string: it can contain macro invocation (`concat!`), raw strings, escape characters, etc.
      
      cc ``@asquared31415``
      02b27cd7
    • D
      Rollup merge of #83055 - aDotInTheVoid:selective-strip-item-doc, r=jyn514 · 05028155
      Dylan DPC 提交于
      [rustdoc] Don't document stripped items in JSON renderer.
      
      Fixes #80664, see [my comment there](https://github.com/rust-lang/rust/issues/80664#issuecomment-797557948) for why
      
      Note that we already do something similar in `convert_item`:
      
      https://github.com/rust-lang/rust/blob/bb4cdf8ec034dca5c056ec9295f38062e5b7e871/src/librustdoc/json/conversions.rs#L28-L31
      
      ``@rustbot`` modify labels: +T-rustdoc +A-rustdoc-json
      
      r? ``@jyn514``
      cc ``@CraftSpider``
      05028155
    • B
      Auto merge of #82873 - GuillaumeGomez:rustdoc-const-ty, r=jyn514 · 3debe9ac
      bors 提交于
      Rework rustdoc const type
      
      This PR is mostly about two things:
       1. Not storing some information in the `clean::Constant` type
       2. Using `TyCtxt` in the formatting (which we will need in any case as we move forward in any case).
      
      Also: I'm very curious of the perf change in here.
      
      Thanks a lot `@danielhenrymantilla` for your `Captures` idea! It allowed me to solve the lifetime issue completely. :)
      
      r? `@jyn514`
      3debe9ac
    • B
      Auto merge of #82743 - jackh726:resolve-refactor, r=nikomatsakis · 52e3dffa
      bors 提交于
      Refactor rustc_resolve::late::lifetimes to resolve per-item
      
      There are some changes to tests that I'd like some feedback on; so this is still WIP.
      
      The reason behind this change will (hopefully) allow us to (as part of #76814) be able to essentially use the lifetime resolve code to resolve *all* late bound vars (including those of super traits). Currently, it only resolves those that are *syntactically* in scope. In #76814, I'm essentially finding that I would essentially have to redo the passing of bound vars through scopes (i.e. when instantiating a poly trait ref), and that's what this code does anyways. However, to be able to do this (ask super traits what bound vars are in scope), we have to be able to resolve items separately.
      
      The first commit is actually partially orthogonal. Essentially removing one use of late bound debruijn indices.
      
      Not exactly sure who would be best to review here.
      Let r? `@nikomatsakis`
      52e3dffa
    • J
      Bless nll test · 44e9d201
      Jack Huey 提交于
      44e9d201
    • B
      Auto merge of #83424 - cjgillot:noparam, r=lcnr · cb473c2c
      bors 提交于
      GenericParam does not need to be a HIR owner.
      
      The special case is not required.
      
      Universal impl traits design to regular generic parameters, and their content is owned by the enclosing item.
      
      Existential (and opaque) impl traits generate their own enclosing item, and are collected through it.
      cb473c2c
  2. 25 3月, 2021 32 次提交
  3. 24 3月, 2021 2 次提交