Changelog #171

Commit: 0a956ec
Release: 2023-03-06 (v0.3.1426)

New Features

  • #14240 diagnose break with value in incorrect positions:

    Screenshot showing an error on `while true { break 0; }` and `for _ in [()] { break 0; }`
  • #14243 diagnose unresolved field, method call and call expression:

    "Screenshot showing errors on various unresolved fields and methods
  • #14238 allow "Generate function" to create functions in a different local crate.

  • #14222, #14245 implement pattern mismatch diagnostics, but keep them disabled.

Fixes

  • #14185 (first contribution) fix running doctests for structs with lifetime parameters.

  • #14208 (first contribution) fix path resolution in the presence of functions and structs with the same name.

  • #14223 implement rendering of tuples in constant values.

  • #14225 removing nested dbg!()s in "Remove dbg!()".

  • #14176 fix associated item visibility in block-local impls.

  • #14239 load the sysroot in all CLI commands.

  • #14247 generate correct completion edits for missing macro arguments.

  • #14255 bring back the hex display in const hover.

Internal Improvements

  • #14040 introduce a MIR and use it for constant evaluation.

  • #14218, #14234 de-duplicate source roots that have overlapping include paths.

  • #14184 handle trait alias definitions.

  • #14244 report type metrics for patterns.

  • #14251 set unit type expectation for expression statements without a semicolon.

  • #14252 handle fields called as method calls as the fields they resolve to.

  • #14213 add API to get raw_ptr type.