Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/reference
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 36d8fdf
Choose a base ref
...
head repository: rust-lang/reference
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 60ccf42
Choose a head ref
  • 18 commits
  • 48 files changed
  • 4 contributors

Commits on Aug 17, 2024

  1. Rewrite std_links

    This rewrites std_links for two major changes:
    
    - Uses pulldown_cmark to parse the markdown instead of using regular
      expressions. The RegEx approach was just too unreliable.
    - Call rustdoc only once, instead of once per chapter. The overhead of
      calling rustdoc is significant, and calling it for each chapter was
      extremely slow.
    
      Unfortunately the error messages are a little worse now, since it
      doesn't show which chapter a bad link came from. I'm uncertain how to
      make that better.
    ehuss committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    7f2810f View commit details
    Browse the repository at this point in the history
  2. Switch mdbook-spec to build with release

    This should speed things up a little, particularly when working locally.
    ehuss committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    c53965b View commit details
    Browse the repository at this point in the history
  3. Switch to automatic standard library links

    This removes the explicit links to the standard library. In particular,
    this makes it nicer to view locally since you can set SPEC_RELATIVE=0 to
    make the links work.
    
    There are a bunch of changes to the actual URL because rustdoc resolves
    re-exports to link to the original definition instead of the re-export
    site. From what I can tell, everything should otherwise be the same.
    
    Not all links were able to be converted due to some limitations in
    rustdoc, such as:
    
    - Links to rexports from std_arch don't work due to rust-lang/rust#96506.
    - Links to keywords aren't supported.
    - Links to trait impls where the trait is not in the prelude doesn't work (they must be in scope).
    ehuss committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    52e0ff3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1a52c1f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4711485 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. Add some basic docs for unsafe attrs

    carbotaniuman authored and ehuss committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    d07e406 View commit details
    Browse the repository at this point in the history
  2. Wordsmith text for unsafe attributes

    In this commit, we improve some verbiage.
    traviscross authored and ehuss committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    7b4d9b3 View commit details
    Browse the repository at this point in the history
  3. Fix grammar for unsafe attributes

    There were some errors in the formatting and the content of the
    grammar for unsafe attributes.  Let's fix those.
    traviscross authored and ehuss committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    e588d82 View commit details
    Browse the repository at this point in the history
  4. Add to unsafety section for unsafe attributes

    Let's describe unsafe attributes in the chapter on unsafety.
    traviscross authored and ehuss committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    5bbf379 View commit details
    Browse the repository at this point in the history
  5. Fix the Attr grammar for unsafe attributes.

    The _Attr_ production is used for `cfg_attr` attribute and the `meta`
    macro fragment specifier, and those need to accept the new `unsafe`
    syntax.
    ehuss committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    f6cd69a View commit details
    Browse the repository at this point in the history
  6. Use unsafe in the unsafe attribute examples.

    This will be required in 2024.
    ehuss committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    73c11ac View commit details
    Browse the repository at this point in the history
  7. Merge pull request #1539 from carbotaniuman/add-unsafe-attr-docs

    Add some basic docs for unsafe attrs
    ehuss authored Aug 19, 2024
    Configuration menu
    Copy the full SHA
    135bdee View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Optimize a bit

    It's better to allocate for the smaller prefix that we're extracting
    than to allocate repeatedly for the tail items, especially as
    `split_off` doesn't shrink the capacity of what we go on to insert.
    traviscross committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    b95d379 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b308070 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1578 from ehuss/std-links

    Rewrite the automatic std link translation, and switch to automatic links
    ehuss authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    b1b50e4 View commit details
    Browse the repository at this point in the history
  4. operator expressions: add &raw

    RalfJung authored and ehuss committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    f73f6d6 View commit details
    Browse the repository at this point in the history
  5. use &raw instead of addr_of macros

    RalfJung authored and ehuss committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    060d2b3 View commit details
    Browse the repository at this point in the history
  6. markdown anchor tweaks

    RalfJung authored and ehuss committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    60ccf42 View commit details
    Browse the repository at this point in the history
Loading